aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/elf.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2023-12-18 23:19:04 +0000
committerDaniel Borkmann <[email protected]>2023-12-19 14:20:40 +0000
commit2130c519a401e576647040043cb46d6fdc361dcc (patch)
tree23eabf7884fd7854517ff7632c6667abb290fee5 /tools/lib/bpf/elf.c
parentMerge branch 'add-pf-vf-mailbox-support' (diff)
downloadkernel-2130c519a401e576647040043cb46d6fdc361dcc.tar.gz
kernel-2130c519a401e576647040043cb46d6fdc361dcc.zip
bpf: Use nla_ok() instead of checking nla_len directly
nla_len may also be too short to be sane, in which case after recent changes nla_len() will return a wrapped value. Fixes: 172db56d90d2 ("netlink: Return unsigned value for nla_len()") Reported-by: [email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/elf.c')
0 files changed, 0 insertions, 0 deletions