Re: bpf: bpf helper with locks

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

 





On 9/13/21 8:03 AM, Tal Lossos wrote:
Hello!
I was planning on writing a bpf helper that calls a kernel function
which has locks in it.
While researching about it I've encountered this mail:
https://lists.linuxfoundation.org/pipermail/iovisor-dev/2017-October/001137.html
Is this still relevant? If not, do I need to do something special in
order to implement it? or can I implement it just like any other bpf
helper.

Please see the patch set:
  https://lore.kernel.org/bpf/20200825192124.710397-1-jolsa@xxxxxxxxxx/
which implemented bpf_d_path() helper. To prevent deadlock or other issues, the helper is restricted to selective contexts.
  https://lore.kernel.org/bpf/20200825192124.710397-11-jolsa@xxxxxxxxxx/
more are added recently, please check the kernel source.



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