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.