Commit 876bf652 authored by Lorenz Bauer's avatar Lorenz Bauer Committed by Pu Lehui
Browse files

bpf: verifier: Use copy_array for jmp_history

mainline inclusion
from mainline-v5.14-rc1
commit 06ab6a50
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I932VT
CVE: CVE-2023-52452

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=06ab6a505583



--------------------------------

Eliminate a couple needless kfree / kmalloc cycles by using
copy_array for jmp_history.

Signed-off-by: default avatarLorenz Bauer <lmb@cloudflare.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210429134656.122225-3-lmb@cloudflare.com


Signed-off-by: default avatarPu Lehui <pulehui@huawei.com>
parent e33dfe14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment