diff options
author | Jakub Kicinski | 2023-12-18 15:19:04 -0800 |
---|---|---|
committer | Daniel Borkmann | 2023-12-19 15:20:40 +0100 |
commit | 2130c519a401e576647040043cb46d6fdc361dcc (patch) | |
tree | 23eabf7884fd7854517ff7632c6667abb290fee5 /tools/lib | |
parent | f7dd48ea76be30666f0614d6a06061185ed38c60 (diff) |
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: syzbot+f43a23b6e622797c7a28@syzkaller.appspotmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/bpf/20231218231904.260440-1-kuba@kernel.org
Diffstat (limited to 'tools/lib')
0 files changed, 0 insertions, 0 deletions