summaryrefslogtreecommitdiff
path: root/kernel/bpf/btf.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-05-26 13:24:05 +0300
committerAlexei Starovoitov <ast@kernel.org>2022-06-07 20:40:53 +0300
commitfd58f7df2415ef747782e01f94880fefad1247cf (patch)
tree685efd0a162b7eccaa94a85400ce365e1836d2c2 /kernel/bpf/btf.c
parent10f3b29c65bb2fe0d47c2945cd0b4087be1c5218 (diff)
downloadlinux-fd58f7df2415ef747782e01f94880fefad1247cf.tar.xz
bpf: Use safer kvmalloc_array() where possible
The kvmalloc_array() function is safer because it has a check for integer overflows. These sizes come from the user and I was not able to see any bounds checking so an integer overflow seems like a realistic concern. Fixes: 0dcac2725406 ("bpf: Add multi kprobe link") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/Yo9VRVMeHbALyjUH@kili Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/btf.c')
0 files changed, 0 insertions, 0 deletions