twx-linux/drivers/net/wireless
Miri Korenblit 1801a94299 wifi: iwlwifi: trans: cancel restart work on op mode leave
If the restart work happens to run after the opmode left
(i.e. called iwl_trans_op_mode_leave), then the opmode memory (including
its mutex) is likely to be freed already, and trans->opmode is NULL.

Although the hw is stopped in that stage, which means that this restart
got aborted (i.e. STATUS_RESET_PENDING will be cleared),
it still can access trans->opmode (NULL pointer dereference)
or the opmodes memory (which is freed).

Fix this by canceling the restart wk in iwl_trans_op_mode_leave.
Also make sure that the restart wk is really aborted.

Fixes: 7391b2a4f7db ("wifi: iwlwifi: rework firmware error handling")
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Link: https://patch.msgid.link/20250306122425.801301ba1b8b.I6f6143f550b6335b699920c5d4b2b78449607a96@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2025-03-07 09:57:39 +01:00
..
admtek
ath wireless fixes for v6.14-rc3 2025-02-10 18:13:07 -08:00
atmel
broadcom bugfixes for 6.14: 2025-03-04 08:48:34 -08:00
intel wifi: iwlwifi: trans: cancel restart work on op mode leave 2025-03-07 09:57:39 +01:00
intersil
marvell wifi: mwifiex: decrease timeout waiting for host sleep from 10s to 5s 2024-12-09 17:59:45 +02:00
mediatek wifi: mt76: move napi_enable() from under BH 2025-01-27 14:30:50 -08:00
microchip wifi: wilc1000: unregister wiphy only after netdev registration 2025-01-15 18:24:33 +02:00
purelifi
quantenna pci-v6.14-changes 2025-01-25 16:03:40 -08:00
ralink wifi: rt2x00: Remove unused rfval values 2025-01-10 15:11:06 +02:00
realtek wifi: rtw88: add RTW88_LEDS depends on LEDS_CLASS to Kconfig 2025-01-16 21:26:05 +02:00
rsi
silabs wifi: wfx: Fix error handling in wfx_core_init() 2024-10-31 16:18:42 +02:00
st wifi: cw1200: Fix potential NULL dereference 2024-12-18 19:58:27 +02:00
ti wifi: wlcore: fix unbalanced pm_runtime calls 2025-01-10 14:51:26 +02:00
virtual wifi: mac80211_hwsim: add 6 GHz EHT Mesh capabilities 2024-12-04 16:40:41 +01:00
zydas
Kconfig
Makefile