Re: [PATCH wireless-drivers] mt7601u: fix kernel crash unplugging the device

From
Lorenzo Bianconi <hidden>
Date
2021-01-18 23:32:11
Reply to
Jakub Kicinski, 2021-01-18
On Sun, 17 Jan 2021 22:46:01 +0100 Lorenzo Bianconi wrote:
quoted
Fix the following kernel crash unplugging the usb dongle

[...]

Fixes: 23377c200b2eb ("mt7601u: fix possible memory leak when the device is disconnected")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
A few words of explanation beyond the stack trace without line info
would perhaps make the review quicker..
Hi Jakub,

right, sorry for that. I will add some more info here so Kalle can add
it to the commit log merging the patch.

"
The following crash log can occur unplugging the usb dongle since,
after the urb poison in mt7601u_free_tx_queue(), usb_submit_urb() will
always fail resulting in a skb kfree while the skb has been already
queued.
Fix the issue enqueuing the skb only if usb_submit_urb() succeed.
"

@Kalle: is it ok or do you prefer to resubmit? (sorry for the noise)

Regards,
Lorenzo



Acked-by: Jakub Kicinski <redacted>
  
Thread (5 messages) 5 messages, 4 authors, last reply 2021-01-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help