]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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:54:19 +0000 (08:54 +0200)
commit381538ae75cfdcbda1ea7e3735ddb0cd369be67f
treeefabf9ffee237b52066f9ea8eecf412270f1d236
parent4ae9a73be7ac5805a841a6da2bc792c046936c1c
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