OSDN Git Service

mac80211_hwsim: require at least one channel
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 Aug 2018 16:17:03 +0000 (18:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:55:50 +0000 (08:55 +0200)
commit32c7667fbcbd058f8e5c055e48de5bcd282c2463
treebbe1593a65c2c2b336a1d9349e4824034a5d0a8a
parent2466b26094bc775ad73e2830de97f47511d83d66
mac80211_hwsim: require at least one channel

[ Upstream commit 484004339d4514fde425f6e8a9f6a6cc979bb0c3 ]

Syzbot continues to try to create mac80211_hwsim radios, and
manages to pass parameters that are later checked with WARN_ON
in cfg80211 - catch another one in hwsim directly.

Reported-by: syzbot+2a12f11c306afe871c1f@syzkaller.appspotmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mac80211_hwsim.c