Skip to content
Commit 51d62f2f authored by Ilan Peer's avatar Ilan Peer Committed by Johannes Berg
Browse files

cfg80211: Save the regulatory domain with a lock



Saving the regulatory domain while setting custom regulatory domain
was done while accessing a RCU protected pointer but without any
protection.

Fix this by using RTNL while accessing the pointer.

Signed-off-by: default avatarIlan Peer <ilan.peer@intel.com>
Reported-by: default avatar <syzbot+27771d4abcd9b7a1f5d3@syzkaller.appspotmail.com>
Reported-by: default avatar <syzbot+db4035751c56c0079282@syzkaller.appspotmail.com>
Reported-by: default avatarHans de Goede <hdegoede@redhat.com>
Fixes: beee2469

 ("cfg80211: Save the regulatory domain when setting custom regulatory")
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210105165657.613e9a876829.Ia38d27dbebea28bf9c56d70691d243186ede70e7@changeid
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 70b6ff35
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment