Bug 153551 - Kernel panic on Nexus 5X USB unplug while tethering
Summary: Kernel panic on Nexus 5X USB unplug while tethering
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: Greg Kroah-Hartman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-22 17:37 UTC by Jose Marino
Modified: 2018-12-21 09:05 UTC (History)
2 users (show)

See Also:
Kernel Version: 4.7.2
Subsystem:
Regression: No
Bisected commit-id:


Attachments
kernel panic log from /sys/fs/pstore (25.72 KB, text/plain)
2016-08-22 17:37 UTC, Jose Marino
Details
testpatch (on 4.8-rc3) (1.73 KB, patch)
2016-08-23 12:39 UTC, Mathias Nyman
Details | Diff

Description Jose Marino 2016-08-22 17:37:48 UTC
Created attachment 229711 [details]
kernel panic log from /sys/fs/pstore

I'm using my phone (Nexus 5X running Android) to tether a USB connection to my laptop (XPS 15 9550). I plug the phone through the USB-C connection and in the phone I  select USB tethering. Initially things look normal: a usb0 network interface appears in the laptop and it tries to get an IP with dhcp. However, I observe two different behaviors depending on whether it's a fresh boot, or I have suspend/resumed the laptop. In a fresh boot everything works fine, I get an IP and the connection works as expected. If I unplug the phone, everything also works as expected.

However, after a suspend/resume cycle, I plug the phone in but the laptop never connects to it. The usb0 interface still appears, but the dhcp daemon is unable to get any response and finally times out. The fun part happens when I unplug the phone. I consistently get a kernel panic.

I managed to get some logs of the oops+panic from pstore. Find them attached. In this particular situation this is what I did:
- Boot laptop (archlinux with kernel 4.7.2)
- Suspend/resume
- Plug Nexus 5X
- After a few seconds unplug Nexus 5X
Comment 1 Greg Kroah-Hartman 2016-08-22 20:56:00 UTC
On Mon, Aug 22, 2016 at 05:37:48PM +0000, bugzilla-daemon@bugzilla.kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=153551
> 
>             Bug ID: 153551
>            Summary: Kernel panic on Nexus 5X USB unplug while tethering

Please send to the linux-usb@vger.kernel.org mailing list.
Comment 2 Mathias Nyman 2016-08-23 12:39:06 UTC
Created attachment 229821 [details]
testpatch (on 4.8-rc3)
Comment 3 Richard van der Hoff 2018-12-21 09:05:50 UTC
I think this is the same as bug 155541

Note You need to log in before you can comment on or make changes to this bug.