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

2021-04-06 Thread Toke Høiland-Jørgensen
Jiri Olsa writes: > 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. > > Signed-off-by: Jiri Olsa Acked-by: Toke Høiland-Jørge

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

2021-04-06 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. Signed-off-by: Jiri Olsa --- kernel/bpf/syscall.c| 23 +-- kern