diff options
| author | Dan Carpenter <[email protected]> | 2022-05-26 10:24:05 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-06-07 17:40:53 +0000 |
| commit | fd58f7df2415ef747782e01f94880fefad1247cf (patch) | |
| tree | 685efd0a162b7eccaa94a85400ce365e1836d2c2 /net/switchdev/switchdev.c | |
| parent | bpf, arm64: Clear prog->jited_len along prog->jited (diff) | |
| download | kernel-fd58f7df2415ef747782e01f94880fefad1247cf.tar.gz kernel-fd58f7df2415ef747782e01f94880fefad1247cf.zip | |
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 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
