Re: [PATCH bpf 1/2] bpf: fix panic in prog load calls cleanup

2018-06-15 Thread Martin KaFai Lau
On Fri, Jun 15, 2018 at 02:30:47AM +0200, Daniel Borkmann wrote: > While testing I found that when hitting error path in bpf_prog_load() > where we jump to free_used_maps and prog contained BPF to BPF calls > that were JITed earlier, then we never clean up the bpf_prog_kallsyms_add() > done under j

[PATCH bpf 1/2] bpf: fix panic in prog load calls cleanup

2018-06-14 Thread Daniel Borkmann
While testing I found that when hitting error path in bpf_prog_load() where we jump to free_used_maps and prog contained BPF to BPF calls that were JITed earlier, then we never clean up the bpf_prog_kallsyms_add() done under jit_subprogs(). Add proper API to make BPF kallsyms deletion more clear an