mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
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:700d4796ef("bpf: Optimize program stats") Fixes:ca06f55b90("bpf: Add per-program recursion prevention mechanism") Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
6fdd671baa
commit
1336c66247
1 changed files with 2 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue