1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/intel/iwlwifi/mvm
Łukasz Bartosik f5cecf1d4c iwlwifi: fix warnings produced by kernel debug options
Fix warnings produced by:
- lockdep_assert_wiphy() in function reg_process_self_managed_hint(),
- wiphy_dereference() in function iwl_mvm_init_fw_regd().
Both function are expected to be called in critical section.

The warnings were discovered when running v5.15 kernel
with debug options enabled:

1)
Hardware name: Google Delbin/Delbin
RIP: 0010:reg_process_self_managed_hint+0x254/0x347 [cfg80211]
...
Call Trace:
regulatory_set_wiphy_regd_sync+0x3d/0xb0
iwl_mvm_init_mcc+0x49d/0x5a2
iwl_op_mode_mvm_start+0x1b58/0x2507
? iwl_mvm_reprobe_wk+0x94/0x94
_iwl_op_mode_start+0x146/0x1a3
iwl_opmode_register+0xda/0x13d
init_module+0x28/0x1000

2)
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:263 suspicious rcu_dereference_protected() usage!
...
Hardware name: Google Delbin/Delbin, BIOS Google_Delbin
Call Trace:
dump_stack_lvl+0xb1/0xe6
iwl_mvm_init_fw_regd+0x2e7/0x379
iwl_mvm_init_mcc+0x2c6/0x5a2
iwl_op_mode_mvm_start+0x1b58/0x2507
? iwl_mvm_reprobe_wk+0x94/0x94
_iwl_op_mode_start+0x146/0x1a3
iwl_opmode_register+0xda/0x13d
init_module+0x28/0x100

Fixes: a05829a722 ("cfg80211: avoid holding the RTNL when calling the driver")
Signed-off-by: Łukasz Bartosik <lb@semihalf.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211110215744.5487-1-lukasz.bartosik@semihalf.com
2021-11-22 20:38:46 +02:00
..
binding.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
coex.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
constants.h iwlwifi: mvm: add support for range request command version 13 2021-08-26 23:38:15 +03:00
d3.c iwlwifi: mvm: d3: use internal data representation 2021-10-28 12:04:11 +03:00
debugfs-vif.c iwlwifi: mvm: pass the clock type to iwl_mvm_get_sync_time() 2021-06-22 15:11:09 +03:00
debugfs.c iwlwifi: mvm: Support new version of BEACON_TEMPLATE_CMD. 2021-10-22 10:49:01 +03:00
debugfs.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
ftm-initiator.c iwlwifi: mvm: Support new version of ranging response notification 2021-10-22 10:49:01 +03:00
ftm-responder.c iwlwifi: mvm: add support for 160Mhz in ranging measurements 2021-10-22 10:48:58 +03:00
fw-api.h iwlwifi: mvm: add RFI-M support 2021-02-11 01:52:06 +02:00
fw.c iwlwifi: rename GEO_TX_POWER_LIMIT to PER_CHAIN_LIMIT_OFFSET_CMD 2021-10-28 12:04:11 +03:00
led.c iwlwifi: mvm: Fix fall-through warnings for Clang 2020-12-11 20:20:24 +02:00
mac-ctxt.c iwlwifi: rename CHANNEL_SWITCH_NOA_NOTIF to CHANNEL_SWITCH_START_NOTIF 2021-10-28 12:04:12 +03:00
mac80211.c iwlwifi: mvm: retry init flow if failed 2021-11-22 20:38:17 +02:00
Makefile iwlwifi: mvm: add RFI-M support 2021-02-11 01:52:06 +02:00
mvm.h iwlwifi: mvm: retry init flow if failed 2021-11-22 20:38:17 +02:00
nvm.c iwlwifi: mvm: fix WGDS table print in iwl_mvm_chub_update_mcc() 2021-10-28 12:04:11 +03:00
offloading.c iwlwifi: mvm: introduce iwl_proto_offload_cmd_v4 2021-06-22 16:57:56 +03:00
ops.c iwlwifi: fix warnings produced by kernel debug options 2021-11-22 20:38:46 +02:00
phy-ctxt.c iwlwifi: mvm: honour firmware SMPS requests 2021-06-22 15:11:34 +03:00
power.c iwlwifi: mvm: set inactivity timeouts also for PS-poll 2021-10-22 10:49:04 +03:00
quota.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
rfi.c iwlwifi: mvm: fix old-style static const declaration 2021-08-26 23:33:23 +03:00
rs-fw.c iwlwifi: mvm: Support version 3 of tlc_update_notif. 2021-10-22 10:49:00 +03:00
rs.c iwlwifi: mvm: Support new TX_RSP and COMPRESSED_BA_RES versions 2021-10-22 10:49:02 +03:00
rs.h iwlwifi: mvm: Support version 3 of tlc_update_notif. 2021-10-22 10:49:00 +03:00
rx.c iwlwifi: mvm: update definitions due to new rate & flags 2021-10-22 10:49:00 +03:00
rxmq.c iwlwifi: mvm: remove csi from iwl_mvm_pass_packet_to_mac80211() 2021-10-22 10:49:02 +03:00
scan.c iwlwifi: mvm: Use all Rx chains for roaming scan 2021-10-28 12:04:09 +03:00
sf.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
sta.c iwlwifi: mvm: simplify __iwl_mvm_set_sta_key() 2021-08-26 23:34:27 +03:00
sta.h iwlwifi: mvm: clean up queue sync implementation 2021-04-14 12:07:16 +03:00
tdls.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
testmode.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
time-event.c iwlwifi: mvm: Fix possible NULL dereference 2021-09-16 20:00:07 +03:00
time-event.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
tt.c iwlwifi: mvm: tt: Replace thermal_notify_framework 2021-04-22 13:11:35 +02:00
tx.c iwlwifi: mvm: reduce WARN_ON() in TX status path 2021-10-22 10:49:03 +03:00
utils.c iwlwifi: mvm: Support new TX_RSP and COMPRESSED_BA_RES versions 2021-10-22 10:49:02 +03:00