Commit 8cb3a1ac authored by Johannes Berg's avatar Johannes Berg Committed by Zheng Zengkai
Browse files

mac80211: fix locking in ieee80211_start_ap error path

stable inclusion
from stable-v5.10.89
commit ac61b9c6c0549aaeb98194cf429d93c41bfe5f79
bugzilla: 186140 https://gitee.com/openeuler/kernel/issues/I4S8HA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ac61b9c6c0549aaeb98194cf429d93c41bfe5f79



--------------------------------

commit 87a27062 upstream.

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: 295b02c4 ("mac80211: Add FILS discovery support")
Reported-and-tested-by: default avatar <syzbot+11c342e5e30e9539cabd@syzkaller.appspotmail.com>
Link: https://lore.kernel.org/r/20211220090836.cee3d59a1915.I36bba9b79dc2ff4d57c3c7aa30dff9a003fe8c5c@changeid


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 99e775ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment