Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Ilya Leoshkevich <iii@linux.ibm.com> Fixes: 700d479 ("bpf: Optimize program stats") Fixes: ca06f55 ("bpf: Add per-program recursion prevention mechanism") Signed-off-by: Alexei Starovoitov <ast@kernel.org>
- Loading branch information