Re: [PATCH v2 bpf-next 2/2] selftests/bpf: Validate multiple ref release_on_unlock logic

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

 





On 12/1/22 10:34 AM, Dave Marchevsky wrote:
Modify list_push_pop_multiple to alloc and insert nodes 2-at-a-time.
Without the previous patch's fix, this block of code:

   bpf_spin_lock(lock);
   bpf_list_push_front(head, &f[i]->node);
   bpf_list_push_front(head, &f[i + 1]->node);
   bpf_spin_unlock(lock);

would fail check_reference_leak check as release_on_unlock logic would miss
a ref that should've been released.

Signed-off-by: Dave Marchevsky <davemarchevsky@xxxxxx>
cc: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>

Acked-by: Yonghong Song <yhs@xxxxxx>



[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