Re: [PATCH v4 bpf-next 4/5] bpf: load and verify kernel module BTFs

2020-11-13 Thread Andrii Nakryiko
On Fri, Nov 13, 2020 at 2:32 AM Jessica Yu wrote: > > +++ Andrii Nakryiko [11/11/20 12:11 -0800]: > >On Wed, Nov 11, 2020 at 2:13 AM Jessica Yu wrote: > >> > >> +++ Andrii Nakryiko [09/11/20 17:19 -0800]: > >> [snipped] > >> >diff --git a/kernel/module.c b/kernel/module.c > >> >index

Re: [PATCH v4 bpf-next 4/5] bpf: load and verify kernel module BTFs

2020-11-13 Thread Jessica Yu
+++ Andrii Nakryiko [11/11/20 12:11 -0800]: On Wed, Nov 11, 2020 at 2:13 AM Jessica Yu wrote: +++ Andrii Nakryiko [09/11/20 17:19 -0800]: [snipped] >diff --git a/kernel/module.c b/kernel/module.c >index a4fa44a652a7..f2996b02ab2e 100644 >--- a/kernel/module.c >+++ b/kernel/module.c >@@ -380,6

Re: [PATCH v4 bpf-next 4/5] bpf: load and verify kernel module BTFs

2020-11-11 Thread Andrii Nakryiko
On Wed, Nov 11, 2020 at 2:13 AM Jessica Yu wrote: > > +++ Andrii Nakryiko [09/11/20 17:19 -0800]: > [snipped] > >diff --git a/kernel/module.c b/kernel/module.c > >index a4fa44a652a7..f2996b02ab2e 100644 > >--- a/kernel/module.c > >+++ b/kernel/module.c > >@@ -380,6 +380,35 @@ static void

Re: [PATCH v4 bpf-next 4/5] bpf: load and verify kernel module BTFs

2020-11-11 Thread Jessica Yu
+++ Andrii Nakryiko [09/11/20 17:19 -0800]: [snipped] diff --git a/kernel/module.c b/kernel/module.c index a4fa44a652a7..f2996b02ab2e 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -380,6 +380,35 @@ static void *section_objs(const struct load_info *info, return (void

Re: [PATCH v4 bpf-next 4/5] bpf: load and verify kernel module BTFs

2020-11-10 Thread kernel test robot
Hi Andrii, I love your patch! Perhaps something to improve: [auto build test WARNING on bpf-next/master] url: https://github.com/0day-ci/linux/commits/Andrii-Nakryiko/Integrate-kernel-module-BTF-support/20201110-095309 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git

[PATCH v4 bpf-next 4/5] bpf: load and verify kernel module BTFs

2020-11-09 Thread Andrii Nakryiko
Add kernel module listener that will load/validate and unload module BTF. Module BTFs gets ID generated for them, which makes it possible to iterate them with existing BTF iteration API. They are given their respective module's names, which will get reported through GET_OBJ_INFO API. They are also