Re: [PATCH bpf] bpf: Fix use after free in bpf_get_prog_name

2019-10-22 Thread Alexei Starovoitov
On Tue, Oct 22, 2019 at 2:30 PM Daniel Borkmann wrote: > > There is one more problematic case I noticed while recently fixing BPF > kallsyms > handling in cd7455f1013e ("bpf: Fix use after free in subprog's jited symbol > removal") and that is bpf_get_prog_name(). > > If BTF has been attached to

[PATCH bpf] bpf: Fix use after free in bpf_get_prog_name

2019-10-22 Thread Daniel Borkmann
There is one more problematic case I noticed while recently fixing BPF kallsyms handling in cd7455f1013e ("bpf: Fix use after free in subprog's jited symbol removal") and that is bpf_get_prog_name(). If BTF has been attached to the prog, then we may be able to fetch the function signature type id