Skip to content
Commit 1336c662 authored by Alexei Starovoitov's avatar Alexei Starovoitov
Browse files

bpf: Clear per_cpu pointers during bpf_prog_realloc



bpf_prog_realloc copies contents of struct bpf_prog.
The pointers have to be cleared before freeing old struct.

Reported-by: default avatarIlya Leoshkevich <iii@linux.ibm.com>
Fixes: 700d4796 ("bpf: Optimize program stats")
Fixes: ca06f55b ("bpf: Add per-program recursion prevention mechanism")
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 6fdd671b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment