diff options
| author | Jakub Kicinski <[email protected]> | 2023-12-18 23:19:04 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-12-19 14:20:40 +0000 |
| commit | 2130c519a401e576647040043cb46d6fdc361dcc (patch) | |
| tree | 23eabf7884fd7854517ff7632c6667abb290fee5 /tools/lib/bpf/elf.c | |
| parent | Merge branch 'add-pf-vf-mailbox-support' (diff) | |
| download | kernel-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
