aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorMichal Kubecek <[email protected]>2020-12-14 14:25:01 +0100
committerJakub Kicinski <[email protected]>2020-12-16 11:15:11 -0800
commitefb796f5571f030743e1d9c662cdebdad724f8c5 (patch)
tree493fa3c6ff755322258892c77dc8f9a99835608c /lib/test_overflow.c
parentf87675b836b324d270fd52f1f5e6d6bb9f4bd1d5 (diff)
ethtool: fix string set id check
Syzbot reported a shift of a u32 by more than 31 in strset_parse_request() which is undefined behavior. This is caused by range check of string set id using variable ret (which is always 0 at this point) instead of id (string set id from request). Fixes: 71921690f974 ("ethtool: provide string sets with STRSET_GET request") Reported-by: [email protected] Signed-off-by: Michal Kubecek <[email protected]> Link: https://lore.kernel.org/r/b54ed5c5fd972a59afea3e1badfb36d86df68799.1607952208.git.mkubecek@suse.cz Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions