Re: [PATCHv4 bpf-next 1/5] bpf: Allow trampoline re-attach for tracing and lsm programs

2021-04-14 Thread Jiri Olsa
On Tue, Apr 13, 2021 at 03:03:27PM -0700, Andrii Nakryiko wrote: > On Mon, Apr 12, 2021 at 9:28 AM Jiri Olsa wrote: > > > > Currently we don't allow re-attaching of trampolines. Once > > it's detached, it can't be re-attach even when the program > > is still loaded. > > > > Adding the possibility

Re: [PATCHv4 bpf-next 1/5] bpf: Allow trampoline re-attach for tracing and lsm programs

2021-04-13 Thread Andrii Nakryiko
On Mon, Apr 12, 2021 at 9:28 AM Jiri Olsa wrote: > > Currently we don't allow re-attaching of trampolines. Once > it's detached, it can't be re-attach even when the program > is still loaded. > > Adding the possibility to re-attach the loaded tracing and > lsm programs. > > Fixing missing unlock w

[PATCHv4 bpf-next 1/5] bpf: Allow trampoline re-attach for tracing and lsm programs

2021-04-12 Thread Jiri Olsa
Currently we don't allow re-attaching of trampolines. Once it's detached, it can't be re-attach even when the program is still loaded. Adding the possibility to re-attach the loaded tracing and lsm programs. Fixing missing unlock with proper cleanup goto jump reported by Julia. Reported-by: kern