Re: [PATCH bpf v4] bpf: fix a potential deadlock with bpf_map_do_batch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 19, 2020 at 3:49 PM Yonghong Song <yhs@xxxxxx> wrote:
>
>
> To fix the issue, for htab_lru_map_lookup_and_delete_batch() in CPU0,
> let us do bpf_lru_push_free() out of the htab bucket lock. This can
> avoid the above deadlock scenario.
>
> Fixes: 057996380a42 ("bpf: Add batch ops to all htab bpf map")
> Reported-by: syzbot+a38ff3d9356388f2fb83@xxxxxxxxxxxxxxxxxxxxxxxxx
> Reported-by: syzbot+122b5421d14e68f29cd1@xxxxxxxxxxxxxxxxxxxxxxxxx
> Suggested-by: Hillf Danton <hdanton@xxxxxxxx>
> Suggested-by: Martin KaFai Lau <kafai@xxxxxx>
> Acked-by: Brian Vazquez <brianvv@xxxxxxxxxx>
> Acked-by: Martin KaFai Lau <kafai@xxxxxx>
> Reviewed-by: Jakub Sitnicki <jakub@xxxxxxxxxxxxxx>
> Signed-off-by: Yonghong Song <yhs@xxxxxx>

Applied. Thanks



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux