summaryrefslogtreecommitdiff
path: root/drivers/net/macsec.c
diff options
context:
space:
mode:
authorMichal Kubecek <mkubecek@suse.cz>2020-03-21 00:46:50 +0100
committerDavid S. Miller <davem@davemloft.net>2020-03-23 21:19:20 -0700
commit55b474c41e586a5c21c7ab81ff474eb6bacb4322 (patch)
treedbe0c6586fee9041e6b97e0a24432f89171409cd /drivers/net/macsec.c
parent12a5ba5a1994568d4ceaff9e78c6b0329d953386 (diff)
downloadlinux-next-55b474c41e586a5c21c7ab81ff474eb6bacb4322.tar.gz
netlink: check for null extack in cookie helpers
Unlike NL_SET_ERR_* macros, nl_set_extack_cookie_u64() and nl_set_extack_cookie_u32() helpers do not check extack argument for null and neither do their callers, as syzbot recently discovered for ethnl_parse_header(). Instead of fixing the callers and leaving the trap in place, add check of null extack to both helpers to make them consistent with NL_SET_ERR_* macros. v2: drop incorrect second Fixes tag Fixes: 2363d73a2f3e ("ethtool: reject unrecognized request flags") Reported-by: syzbot+258a9089477493cea67b@syzkaller.appspotmail.com Signed-off-by: Michal Kubecek <mkubecek@suse.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macsec.c')
0 files changed, 0 insertions, 0 deletions