Michal Kubecek efb796f557 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: syzbot+96523fb438937cd01220@syzkaller.appspotmail.com
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Link: https://lore.kernel.org/r/b54ed5c5fd972a59afea3e1badfb36d86df68799.1607952208.git.mkubecek@suse.cz
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-12-16 11:15:11 -08:00
..
2020-12-15 13:22:29 -08:00
2020-10-30 11:59:54 -07:00
2020-12-16 11:15:11 -08:00
2020-12-15 13:22:29 -08:00
2020-12-15 13:22:29 -08:00
2020-10-30 11:43:42 -07:00
2020-10-30 11:34:09 -07:00
2020-12-12 10:07:56 -08:00
2020-12-15 13:22:29 -08:00
2020-11-12 17:00:13 -08:00
2020-10-28 09:14:49 -03:00
2020-11-23 17:44:11 -08:00
2020-12-12 10:07:56 -08:00
2020-10-29 19:27:45 +01:00
2020-10-29 19:27:45 +01:00