]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: Save the regulatory domain with a lock
authorIlan Peer <ilan.peer@intel.com>
Tue, 5 Jan 2021 14:56:57 +0000 (16:56 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 8 Jan 2021 20:03:27 +0000 (21:03 +0100)
commitb97c8e303ed205f44493dc1a99e0e684e94617ea
treea231bd71a39a453047e4cc92e7bf8188ae0eff37
parentd6f6797157b6e95b2a743652894872668f145177
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: Ilan Peer <ilan.peer@intel.com>
Reported-by: syzbot+27771d4abcd9b7a1f5d3@syzkaller.appspotmail.com
Reported-by: syzbot+db4035751c56c0079282@syzkaller.appspotmail.com
Reported-by: Hans de Goede <hdegoede@redhat.com>
Fixes: 515ba470841e ("cfg80211: Save the regulatory domain when setting custom regulatory")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210105165657.613e9a876829.Ia38d27dbebea28bf9c56d70691d243186ede70e7@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c