]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix locking in ieee80211_start_ap error path
authorJohannes Berg <johannes.berg@intel.com>
Mon, 20 Dec 2021 09:22:40 +0000 (10:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Dec 2021 11:33:23 +0000 (11:33 +0000)
commit47abd89f5b37efac429411cc4e4297fb40db9ed5
tree07efc2f9615a937bf92fc9d5bd4e2fe80c64f7d3
parente5a8388b9a8aaf3c0d013df1e9ed1f77697ac1b3
mac80211: fix locking in ieee80211_start_ap error path

We need to hold the local->mtx to release the channel context,
as even encoded by the lockdep_assert_held() there. Fix it.

Cc: stable@vger.kernel.org
Fixes: bcf334812b99 ("mac80211: Add FILS discovery support")
Reported-and-tested-by: syzbot+11c342e5e30e9539cabd@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/20211220090836.cee3d59a1915.I36bba9b79dc2ff4d57c3c7aa30dff9a003fe8c5c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac80211/cfg.c