diff options
author | Dan Carpenter <[email protected]> | 2022-05-26 13:24:05 +0300 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-06-07 10:40:53 -0700 |
commit | fd58f7df2415ef747782e01f94880fefad1247cf (patch) | |
tree | 685efd0a162b7eccaa94a85400ce365e1836d2c2 /tools/perf/scripts/python | |
parent | 10f3b29c65bb2fe0d47c2945cd0b4087be1c5218 (diff) |
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/Yo9VRVMeHbALyjUH@kili
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions