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

2020-11-06 Thread Andrii Nakryiko
On Thu, Nov 5, 2020 at 10:44 PM Greg Kroah-Hartman wrote: > > On Thu, Nov 05, 2020 at 09:51:09PM -0800, Andrii Nakryiko wrote: > > 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

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

2020-11-05 Thread Greg Kroah-Hartman
On Thu, Nov 05, 2020 at 09:51:09PM -0800, Andrii Nakryiko wrote: > 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

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

2020-11-05 Thread Andrii Nakryiko
On Thu, Nov 5, 2020 at 8:45 AM Greg Kroah-Hartman wrote: > > On Thu, Nov 05, 2020 at 08:39:25AM -0800, Jakub Kicinski wrote: > > On Wed, 4 Nov 2020 20:51:39 -0800 Andrii Nakryiko wrote: > > > Add kernel module listener that will load/validate and unload module BTF. > > > Module BTFs gets ID genera

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

2020-11-05 Thread Jakub Kicinski
On Thu, 5 Nov 2020 17:46:16 +0100 Greg Kroah-Hartman wrote: > On Thu, Nov 05, 2020 at 08:39:25AM -0800, Jakub Kicinski wrote: > > On Wed, 4 Nov 2020 20:51:39 -0800 Andrii Nakryiko wrote: > > > Add kernel module listener that will load/validate and unload module BTF. > > > Module BTFs gets ID gene

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

2020-11-05 Thread Greg Kroah-Hartman
On Thu, Nov 05, 2020 at 08:39:25AM -0800, Jakub Kicinski wrote: > On Wed, 4 Nov 2020 20:51:39 -0800 Andrii Nakryiko wrote: > > 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 exist

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

2020-11-05 Thread Jakub Kicinski
On Wed, 4 Nov 2020 20:51:39 -0800 Andrii Nakryiko wrote: > 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,

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

2020-11-04 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