From: Pavel Andrianov <hidden> Date: 2016-06-15 12:45:07
lbs_mac_event_disconnected may free priv->currenttxskb
while lbs_hard_start_xmit accesses to it.
The patch adds a spinlock for mutual exclusion.
Tested on OLPC XO-1 (usb8388) and XO-1.5 (sd8686) with v4.7-rc3.
Confirmed that lbs_mac_event_disconnected is being called on the
station when hostapd on access point is given SIGHUP.
Signed-off-by: Pavel <redacted>
Tested-by: James Cameron <redacted>
---
drivers/net/wireless/marvell/libertas/cmdresp.c | 4 ++++
1 file changed, 4 insertions(+)
On Wednesday 15 June 2016 05:04 PM, Pavel Andrianov wrote:
lbs_mac_event_disconnected may free priv->currenttxskb
while lbs_hard_start_xmit accesses to it.
The patch adds a spinlock for mutual exclusion.
Tested on OLPC XO-1 (usb8388) and XO-1.5 (sd8686) with v4.7-rc3.
Confirmed that lbs_mac_event_disconnected is being called on the
station when hostapd on access point is given SIGHUP.
Signed-off-by: Pavel <redacted>
Tested-by: James Cameron <redacted>
Looks good to me.
Acked-by: Vaishali Thakkar <redacted>
From: Kalle Valo <hidden> Date: 2016-06-29 15:47:34
Pavel Andrianov [off-list ref] wrote:
lbs_mac_event_disconnected may free priv->currenttxskb
while lbs_hard_start_xmit accesses to it.
The patch adds a spinlock for mutual exclusion.
Tested on OLPC XO-1 (usb8388) and XO-1.5 (sd8686) with v4.7-rc3.
Confirmed that lbs_mac_event_disconnected is being called on the
station when hostapd on access point is given SIGHUP.
Signed-off-by: Pavel <redacted>
Tested-by: James Cameron <redacted>
Acked-by: Vaishali Thakkar <redacted>
Thanks, 1 patch applied to wireless-drivers-next.git:
f52b041aed77 libertas: Add spinlock to avoid race condition
--
Sent by pwcli
https://patchwork.kernel.org/patch/9178477/