On Thu, Jul 25, 2019 at 12:11 PM Alexei Starovoitov
On Thu, Jul 25, 2019 at 11:53 AM neirac <cneirabustos@...> wrote:
please figure out how to get pidns_info w/o calling into getname_kernel().
I have changed getname_kernel interface to specify the allocation type,
all previous callers preserve GFP_KERNEL as the allocation type, after this change
getname_kernel could be used with GFP_ATOMIC in ebpf helpers.
If this change goes in, I could complete bpf_get_current_pidns_info helper.
Let me know your thoughts.
Looks like we can call filename_lookup() directly. We do not need to
We know the exact path name. We can do a atomic allocation inside the helper.
Carlos, could you take a look along this line? In this way, we do not
need to change
any files under linux/fs.