1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/ath/ath10k
Brian Norris d987f783a4 ath10k: don't assume 'vif' is non-NULL in flush()
mac80211 may call us with vif == NULL, if the station is not currently
active (e.g., not associated). It is trivially easy to reproduce a crash
by suspending the system when not connected to an AP:

[   65.533934] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
...
[   65.574521] pc : ath10k_flush+0x30/0xd0 [ath10k_core]
[   65.574538] lr : __ieee80211_flush_queues+0x180/0x244 [mac80211]
[   65.599680] Process kworker/u12:1 (pid: 57, stack limit = 0x(____ptrval____))
[   65.599682] Call trace:
[   65.599695]  ath10k_flush+0x30/0xd0 [ath10k_core]
[   65.642064]  __ieee80211_flush_queues+0x180/0x244 [mac80211]
[   65.642079]  ieee80211_flush_queues+0x34/0x40 [mac80211]
[   65.642095]  __ieee80211_suspend+0xfc/0x47c [mac80211]
[   65.658611]  ieee80211_suspend+0x30/0x3c [mac80211]
[   65.658627]  wiphy_suspend+0x15c/0x3a8 [cfg80211]
[   65.672810]  dpm_run_callback+0xf0/0x1f0
[   65.672814]  __device_suspend+0x3ac/0x4f8
[   65.672819]  async_suspend+0x34/0xbc
[   65.684096]  async_run_entry_fn+0x54/0x104
[   65.684099]  worker_thread+0x4cc/0x72c
[   65.684102]  kthread+0x134/0x13c
[   65.684105]  ret_from_fork+0x10/0x18

Fixes: 9de4162f09 ("ath10k: add peer flush in ath10k_flush for STATION")
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-11-16 15:07:42 +02:00
..
ahb.c ath10k: add device type enum to ath10k_bus_params 2018-09-06 19:13:58 +03:00
ahb.h ath10k: expose hif ops for ahb 2016-01-28 10:47:28 +02:00
bmi.c ath10k: download firmware via diag Copy Engine for QCA6174 and QCA9377. 2018-09-06 19:10:05 +03:00
bmi.h ath10k: download firmware via diag Copy Engine for QCA6174 and QCA9377. 2018-09-06 19:10:05 +03:00
ce.c ath10k: introduce CE_ATTR_POLL attribute for polling pipe 2018-09-06 18:55:22 +03:00
ce.h ath10k: introduce CE_ATTR_POLL attribute for polling pipe 2018-09-06 18:55:22 +03:00
core.c ath10k: add QMI message handshake for wcn3990 client 2018-10-13 20:31:56 +03:00
core.h ath10k: add QMI message handshake for wcn3990 client 2018-10-13 20:31:56 +03:00
coredump.c ath10k: add memory dump support for QCA9888 and QCA99X0 2018-05-25 12:46:05 +03:00
coredump.h ath10k: add memory dump support QCA9984 2018-03-29 11:54:32 +03:00
debug.c ath10k: remove unnecessary comparison of unsigned integer with < 0 2018-10-13 20:23:56 +03:00
debug.h ath10k: add debug mask for QMI layer 2018-10-13 20:31:47 +03:00
debugfs_sta.c ath10k: add debugfs support to get power save state change of STA 2018-10-01 17:02:08 +03:00
hif.h ath10k: add support to get target info from hif ops 2018-04-19 18:52:51 +03:00
htc.c ath10k: DMA related fixes for high latency devices 2018-09-06 19:14:37 +03:00
htc.h ath10k: sdio: allocate correct size for RECV_1MORE_BLOCK rx packets 2018-07-02 17:21:37 +03:00
htt.c ath10k: add inlined wrappers for htt tx ops 2018-04-19 19:19:28 +03:00
htt.h ath10k: remove duplicated includes 2018-10-01 16:57:18 +03:00
htt_rx.c ath10k: htt: remove some dead code 2018-10-13 20:26:49 +03:00
htt_tx.c ath10k: htt: High latency TX support 2018-09-06 19:15:17 +03:00
hw.c ath10k: add missing sanity check on diag download 2018-10-02 07:49:09 +03:00
hw.h ath10k: add bus type check in ath10k_init_hw_params 2018-09-06 19:14:08 +03:00
Kconfig ath10k: add QMI message handshake for wcn3990 client 2018-10-13 20:31:56 +03:00
mac.c ath10k: don't assume 'vif' is non-NULL in flush() 2018-11-16 15:07:42 +02:00
mac.h ath10k: add waiting htt tx complete before wow enable 2018-09-03 19:57:03 +03:00
Makefile ath10k: add QMI message handshake for wcn3990 client 2018-10-13 20:31:56 +03:00
p2p.c ath10k: remove ath10k_vif_to_arvif() 2017-02-14 19:38:15 +02:00
p2p.h ath10k: implement handling of p2p noa event 2015-03-07 09:57:42 +02:00
pci.c ath10k: allocate small size dma memory in ath10k_pci_diag_write_mem 2018-10-13 20:25:49 +03:00
pci.h ath10k: optimize pci diag mem read & write operations 2018-09-06 19:09:44 +03:00
qmi.c ath10k: add QMI message handshake for wcn3990 client 2018-10-13 20:31:56 +03:00
qmi.h ath10k: add QMI message handshake for wcn3990 client 2018-10-13 20:31:56 +03:00
qmi_wlfw_v01.c ath10k: add qmi service helpers for wcn3990 qmi client 2018-10-13 20:31:05 +03:00
qmi_wlfw_v01.h ath10k: add qmi service helpers for wcn3990 qmi client 2018-10-13 20:31:05 +03:00
rx_desc.h ath10k: htt: High latency RX support 2018-09-06 19:15:26 +03:00
sdio.c ath10k: add device type enum to ath10k_bus_params 2018-09-06 19:13:58 +03:00
sdio.h ath10k: rename HTC_HOST_MAX_MSG_PER_BUNDLE define 2018-06-28 12:56:05 +03:00
snoc.c ath10k: add QMI message handshake for wcn3990 client 2018-10-13 20:31:56 +03:00
snoc.h ath10k: add QMI message handshake for wcn3990 client 2018-10-13 20:31:56 +03:00
spectral.c ath10k: fix spectral scan for QCA9984 and QCA9888 chipsets 2018-06-14 18:09:45 +03:00
spectral.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
swap.c ath10k: update copyright year 2017-12-27 12:22:01 +02:00
swap.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
targaddrs.h ath10k: support extended board data download for dual-band QCA9984 2018-09-06 18:54:11 +03:00
testmode.c ath10k: re-enable the firmware fallback mechanism for testmode 2018-05-14 16:44:41 +02:00
testmode.h ath10k: add testmode 2014-09-11 23:42:36 +03:00
testmode_i.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
thermal.c ath10k: update copyright year 2017-12-27 12:22:01 +02:00
thermal.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
trace.c
trace.h ath10k: fix use-after-free in ath10k_wmi_cmd_send_nowait 2018-03-26 18:13:03 +03:00
txrx.c ath10k: DMA related fixes for high latency devices 2018-09-06 19:14:37 +03:00
txrx.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
usb.c ath10k: add device type enum to ath10k_bus_params 2018-09-06 19:13:58 +03:00
usb.h ath10k: add initial USB support 2017-08-03 14:31:01 +03:00
wmi-ops.h ath10k: support NET_DETECT WoWLAN feature 2018-10-13 20:18:02 +03:00
wmi-tlv.c ath10k: support NET_DETECT WoWLAN feature 2018-10-13 20:18:02 +03:00
wmi-tlv.h ath10k: support NET_DETECT WoWLAN feature 2018-10-13 20:18:02 +03:00
wmi.c ath10k: add debugfs support to get power save state change of STA 2018-10-01 17:02:08 +03:00
wmi.h ath10k: support NET_DETECT WoWLAN feature 2018-10-13 20:18:02 +03:00
wow.c ath10k: support NET_DETECT WoWLAN feature 2018-10-13 20:18:02 +03:00
wow.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00