Files
twx-linux/drivers
Carl Huang 023fdb64ee ath10k: fix use-after-free in ath10k_wmi_cmd_send_nowait
commit 9ef0f58ed7 upstream.

The skb may be freed in tx completion context before
trace_ath10k_wmi_cmd is called. This can be easily captured when
KASAN(Kernel Address Sanitizer) is enabled. The fix is to move
trace_ath10k_wmi_cmd before the send operation. As the ret has no
meaning in trace_ath10k_wmi_cmd then, so remove this parameter too.

Signed-off-by: Carl Huang <cjhuang@codeaurora.org>
Tested-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-13 09:11:33 +02:00
..
…
2018-07-22 14:25:52 +02:00
…
…
…
…
…
…
…
…
…
…
…
2018-08-22 07:48:38 +02:00
…
…
…
…
…
…
…
…
…
…
2018-07-25 10:18:17 +02:00
…
…
…
…
…
…
…
…
…
2018-10-10 08:52:04 +02:00
…
…
…
…
…
…