Kernel crash during USB device enumeration or mounting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Device is an Adafruit microcontroller board running https:/
Device presents a composite USB device that includes MSC, CDC, HID, and MIDI
Device was commanded to forcibly reformat its MSC FAT12 filesystem and then reset, which causes a USB reset and re-enumeration.
This causes some USB kernel code to crash, much of the time, though not quite all the time.
I work for Adafruit and the maintainer of TinyUSB also works for Adafruit, so we can provide further help to track this down.
Attached is the dmesg file for the crash. I tried uploading the dump file from kdump, but launchpad is timing out. The dump file is available at:
https:/
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-image-
ProcVersionSign
Uname: Linux 5.4.0-21-generic x86_64
ApportVersion: 2.20.11-0ubuntu24
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
CurrentDesktop: X-Cinnamon
Date: Mon Apr 6 11:09:43 2020
HibernationDevice: RESUME=
InstallationDate: Installed on 2017-09-19 (929 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
IwConfig:
eno1 no wireless extensions.
lo no wireless extensions.
MachineType: Dell Inc. OptiPlex 7010
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.187
RfKill:
0: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
SourcePackage: linux
UpgradeStatus: Upgraded to focal on 2020-03-08 (28 days ago)
dmi.bios.date: 06/28/2018
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A29
dmi.board.name: 0WR7PY
dmi.board.vendor: Dell Inc.
dmi.board.version: A01
dmi.chassis.type: 15
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: OptiPlex 7010
dmi.product.sku: OptiPlex 7010
dmi.product.
dmi.sys.vendor: Dell Inc.
Key part of dmesg is:
[76704.227672] cdc_acm 1-1.4:1.0: failed to set dtr/rts 50213E2932141E0 FF kmalloc+ 0xa5/0x270
[76704.936301] usb 1-1.4: USB disconnect, device number 11
[76704.951638] blk_update_request: I/O error, dev sdc, sector 1110 op 0x1:(WRITE) flags 0x0 phys_seg 2 prio class 0
[76704.951644] Buffer I/O error on dev sdc1, logical block 1109, lost async page write
[76704.951647] Buffer I/O error on dev sdc1, logical block 1110, lost async page write
[76704.951656] blk_update_request: I/O error, dev sdc, sector 1128 op 0x1:(WRITE) flags 0x0 phys_seg 2 prio class 0
[76704.951658] Buffer I/O error on dev sdc1, logical block 1127, lost async page write
[76704.951661] Buffer I/O error on dev sdc1, logical block 1128, lost async page write
[76704.951679] blk_update_request: I/O error, dev sdc, sector 1150 op 0x1:(WRITE) flags 0x0 phys_seg 2 prio class 0
[76704.951682] Buffer I/O error on dev sdc1, logical block 1149, lost async page write
[76704.951684] Buffer I/O error on dev sdc1, logical block 1150, lost async page write
[76704.951689] blk_update_request: I/O error, dev sdc, sector 1174 op 0x1:(WRITE) flags 0x0 phys_seg 2 prio class 0
[76704.951691] Buffer I/O error on dev sdc1, logical block 1173, lost async page write
[76704.951693] Buffer I/O error on dev sdc1, logical block 1174, lost async page write
[76704.951717] blk_update_request: I/O error, dev sdc, sector 1194 op 0x1:(WRITE) flags 0x0 phys_seg 2 prio class 0
[76704.951718] Buffer I/O error on dev sdc1, logical block 1193, lost async page write
[76704.951719] Buffer I/O error on dev sdc1, logical block 1194, lost async page write
[76704.951722] blk_update_request: I/O error, dev sdc, sector 1212 op 0x1:(WRITE) flags 0x0 phys_seg 2 prio class 0
[76704.951734] blk_update_request: I/O error, dev sdc, sector 1232 op 0x1:(WRITE) flags 0x0 phys_seg 2 prio class 0
[76704.951739] blk_update_request: I/O error, dev sdc, sector 1252 op 0x1:(WRITE) flags 0x0 phys_seg 2 prio class 0
[76704.951748] blk_update_request: I/O error, dev sdc, sector 1272 op 0x1:(WRITE) flags 0x0 phys_seg 2 prio class 0
[76704.951751] blk_update_request: I/O error, dev sdc, sector 1290 op 0x1:(WRITE) flags 0x0 phys_seg 2 prio class 0
[76707.579590] usb 1-1.4: new full-speed USB device number 12 using ehci-pci
[76707.691410] usb 1-1.4: New USB device found, idVendor=239a, idProduct=8014, bcdDevice= 1.00
[76707.691413] usb 1-1.4: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[76707.691415] usb 1-1.4: Product: Metro M0 Express
[76707.691417] usb 1-1.4: Manufacturer: Adafruit Industries LLC
[76707.691418] usb 1-1.4: SerialNumber: DFAE9D970323D40
[76707.692717] general protection fault: 0000 [#1] SMP PTI
[76707.692723] CPU: 3 PID: 75883 Comm: kworker/3:1 Kdump: loaded Not tainted 5.4.0-21-generic #25-Ubuntu
[76707.692725] Hardware name: Dell Inc. OptiPlex 7010/0WR7PY, BIOS A29 06/28/2018
[76707.692732] Workqueue: usb_hub_wq hub_event
[76707.692738] RIP: 0010:__
[76707.692741] Code: 65 49 8b 50 08 65 4c 03 05 40 a0 76 4d 4d 8b 38 4d 85 ff 0f 84 93 01 00 00 41 8b 59 20 49 8b 39 48 8d 4a 01 4c 89 f8 4c 01 fb <48> 33 1b 49 33 99 70 01 00 00 65 48 0f c7 0f 0f 94 c0 84 c0 74 bd
[76707.692743] RSP: 0018:ffffa85b4...