cfg80211: regulatory: reject invalid hints
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Aug 2020 08:46:48 +0000 (10:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:14:34 +0000 (19:14 +0200)
commit548c1175051d986132046080e94b058c41e469f0
tree5ccfe9dca7932ad14d7b81e87be8325de007cce6
parent9206b03e7fc9cd92062269a67d828b6132ae3549
cfg80211: regulatory: reject invalid hints

commit 47caf685a6854593348f216e0b489b71c10cbe03 upstream.

Reject invalid hints early in order to not cause a kernel
WARN later if they're restored to or similar.

Reported-by: syzbot+d451401ffd00a60677ee@syzkaller.appspotmail.com
Link: https://syzkaller.appspot.com/bug?extid=d451401ffd00a60677ee
Link: https://lore.kernel.org/r/20200819084648.13956-1-johannes@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/reg.c