Opened 2 years ago
Last modified 9 days ago
#17799 new bug
Kernel Panic when using MTP transfers with an Android phone
Reported by: | fatigatti | Owned by: | mmlr |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Drivers/USB/EHCI | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Samsung Galaxy A03 core (Android 11), Android File Transfer application.
Steps to reproduce: 1) Connect the phone in MTP mode and open Android File Transfer from the terminal. It may work a couple of times. Keep plugging/unplugging and reopening the app until it hangs with the message "device found, opening session" and nothing happens. 2) Kill the app using CTRL+C on the terminal. 3) Open the app again and it will crash the system (picture attached, sorry about the quality), in this case not allowing to continue and thus not registering to the syslog.
Attachments (3)
Change History (16)
by , 2 years ago
Attachment: | panicshow.jpg added |
---|
comment:1 by , 2 years ago
Component: | System/Kernel → Drivers/USB/EHCI |
---|---|
Owner: | changed from | to
comment:2 by , 2 years ago
comment:3 by , 2 years ago
I do. I couldn't reproduce this particular panic on USB3. However, when I switched the connection mode to tethering just to try things out I got #17797, which I reported yesterday. They are different and while I can get out of #17797 and resume working, this one needs a hard reset (I can type exit or co, but the it just prints the stack trace again).
There's also another bug: under certain circunstances that I need to investigate more but possibly include plugging and unplugging a few times the entire USB stack freezes. Ports work as charge only and after I disconnect all devices listusb keeps displaying them as present, and obviously new devices are not recognised.
comment:4 by , 2 years ago
Yes, so it's a problem with our USB2 driver itself, it seems. It's not surprising that USB3 isn't affected, the equivalent routines there have been "battle-tested" against stuff like this at this point :)
The problem in #17797 is unrelated to USB, it's a problem with the network stack itself somehow, probably related to device removal.
comment:5 by , 2 years ago
And, the other panic is an assertion failure which indeed can be gotten past (depending on severity, some indicate things so broken that continuing may make things worse.) This panic is a memory fault, much more serious and indeed can't be worked around.
comment:7 by , 2 years ago
Just updated to hrev56192, makes no difference. Still getting the page fault.
comment:9 by , 2 years ago
I re-tested for the picture and managed to get the same EHCI page fault and a different one (admittedly plugging, opening the app, changing the phone's mode, unplugging, doing nasty things).
comment:11 by , 5 weeks ago
Still getting a kernel panic here on ocassions. I couldn't even get the application to open.
comment:12 by , 10 days ago
Please retest after hrev58323. Unless the opening line and backtrace looks very near identical (page fault, etc.) please upload a new screenshot.
comment:13 by , 9 days ago
I can't seem to open the app any longer (it stays "probing device") but at least the kernel it's not panicking anymore. Will further test and try to discover what's happening with the application itself.
Any chance you have any USB3 ports, or any devices with USB3 ports, and can test connecting to those instead of a USB2 port and see if the behavior differs?