Re: net/wireless/reg.c:144 suspicious rcu_dereference_check() usage!

From: Kalle Valo
Date: Fri Jan 22 2021 - 07:23:09 EST


Borislav Petkov <bp@xxxxxxxxx> writes:

> On Fri, Jan 22, 2021 at 11:11:24AM +0100, Borislav Petkov wrote:
>> Hi,
>>
>> this triggers is on 5.11-rc3 + tip/x86/urgent (shouldn't matter tho),
>> 32-bit kernel:
>
> This looks like a multiple wireless drivers issue, this is on another
> 32-bit machine with ath5k this time:
>
> [ 23.810222] ath5k 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
> [ 23.847597] ath5k 0000:03:00.0: registered as 'phy0'
> [ 24.504999] ath: EEPROM regdomain: 0x65
> [ 24.516125] ath: EEPROM indicates we should expect a direct regpair map
> [ 24.527286] ath: Country alpha2 being used: 00
> [ 24.535435] ath: Regpair used: 0x65
>
> [ 24.551461] =============================
> [ 24.561941] WARNING: suspicious RCU usage
> [ 24.572030] 5.11.0-rc3+ #1 Not tainted
> [ 24.580276] -----------------------------
> [ 24.590764] net/wireless/reg.c:144 suspicious rcu_dereference_check() usage!
> [ 24.601730]

Can you try this commit:

51d62f2f2c50 cfg80211: Save the regulatory domain with a lock

https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211.git/commit/?id=51d62f2f2c50

--
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches