USB related kernel panic

classic Classic list List threaded Threaded
1 message Options
pki
Reply | Threaded
Open this post in threaded view
|

USB related kernel panic

pki
>Synopsis: 'adb logcat' crashes the system sometimes
>Category: kernel
>Environment:
        System      : OpenBSD 6.4
        Details     : OpenBSD 6.4 (GENERIC.MP) #364: Thu Oct 11 13:30:23 MDT 2018
                         [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
I'm using adb to do some development on my phone. Some operations, like unplugging
the phone after I installed some software on it, or even doing 'adb logcat' do cause
a kernel panic.

Here is the trace from the last one (re-typed from the screen do may contain some
omissions):

panic: ehci_device_clear_toggle: queue active
Stopped at       db_enter+0x12:  popq    %r11
    TID     PID     UID    PRFLAGS        PFLAGS   CPU  COMMAND
*445224  215644    1000        0x3     0x4000000     2K adb
 350002  55901      107   0x100010     0x4000000     0  vmd
 110027  42681       35       0x12             0     3  X
  45385  16411     1000        0x2     0x4000000     1  sasc
db_enter() at db_enter+0x12
panic() at panic+0x12
ehci_device_clear_toggle3652ba680ff3d3c) at ehci_device_clear_toggle+0x44
usbd_clear_endpoint_stall(43be4d155b292354) at usbd_clear_endpoint_stall+0x41
ugen_do_read(e01d9de137ec3213,ffff8000335c94a0,ffff800000ff8000,ffffff03ff714248) at ugen_do_read_0x35b
ugenread(e01d9de13749e93f,ffff8000335c94a0,ffff8000335c93a0) at ugenread+0x47
spec_read(3a0ba19f005da454) at spec-read+0xab
VOP_READ(6b860e373cb34,a181140375a814a6,ffffff03ff714248,ffffff0100000000) at VOP_READ+0x49
vn_read(311b4e70bbd131ee,ffffff01dc5eb4c8,10) at vn_read+0xf5
dofilereadv(fe1d0ce85f7a81a1,30,ffff8000335a4090,3,ffff8000335c95d0) at dofilereadv+0xe0
sys_read(c261dbb90e8b47bd,a181140375a814a6,18) at syst_read+0x5c
syscall(ac3cbbae58898f4) at syscall+0x32a
Xsyscall(0,3,1a1c99d36550,3,3,1a1c74bebe00) at Xsyscall+0x128

>How-To-Repeat:
It's not deterministic. Just using the thing in my pattern for a few weeks would result
in a likely crash.
>Fix:
none found


dmesg:
OpenBSD 6.4 (GENERIC.MP) #364: Thu Oct 11 13:30:23 MDT 2018
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17038782464 (16249MB)
avail mem = 16513114112 (15748MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf21f0 (81 entries)
bios0: vendor Dell Inc. version "A11" date 04/02/2012
bios0: Dell Inc. Precision T1600
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC TCPA SSDT MCFG HPET BOOT SSDT SSDT DMAR
acpi0: wakeup devices EHC1(S3) EHC2(S3) HDEF(S4) GLAN(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E31225 @ 3.10GHz, 3093.49 MHz, 06-2a-07
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU E31225 @ 3.10GHz, 3092.98 MHz, 06-2a-07
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Xeon(R) CPU E31225 @ 3.10GHz, 3092.98 MHz, 06-2a-07
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Xeon(R) CPU E31225 @ 3.10GHz, 3092.98 MHz, 06-2a-07
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf8000000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (RP01)
acpiprt2 at acpi0: bus -1 (RP02)
acpiprt3 at acpi0: bus 3 (RP03)
acpiprt4 at acpi0: bus -1 (RP04)
acpiprt5 at acpi0: bus -1 (RP05)
acpiprt6 at acpi0: bus -1 (RP06)
acpiprt7 at acpi0: bus -1 (RP07)
acpiprt8 at acpi0: bus -1 (RP08)
acpiprt9 at acpi0: bus 1 (PEG0)
acpiprt10 at acpi0: bus -1 (PEG1)
acpiprt11 at acpi0: bus -1 (PEG2)
acpiprt12 at acpi0: bus -1 (PEG3)
acpiprt13 at acpi0: bus 4 (P0P1)
acpicpu0 at acpi0: C3(350@104 mwait.1@0x20), C2(500@80 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(350@104 mwait.1@0x20), C2(500@80 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(350@104 mwait.1@0x20), C2(500@80 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(350@104 mwait.1@0x20), C2(500@80 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicmos0 at acpi0
"PNP0A05" at acpi0 not configured
tpm0 at acpi0: TPM_ addr 0xfed40000/0x5000: device 0x0000104a rev 0x4e
acpibtn0 at acpi0: PWRB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
cpu0: Enhanced SpeedStep 3093 MHz: speeds: 3101, 3100, 2800, 2600, 2400, 2200, 2000, 1800, 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Xeon E3-1200 Host" rev 0x09
ppb0 at pci0 dev 1 function 0 "Intel Core 2G PCIE" rev 0x09: msi
pci1 at ppb0 bus 1
"Atheros AR9485" rev 0x01 at pci1 dev 0 function 0 not configured
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics P3000" rev 0x09
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1920x1080, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
puc0 at pci0 dev 22 function 3 "Intel 6 Series KT" rev 0x04: ports: 16 com
com4 at puc0 port 0 apic 2 int 17: ns16550a, 16 byte fifo
com4: probed fifo depth: 0 bytes
em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x04: msi, address d4:be:d9:a4:a7:82
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x04: msi
azalia0: codecs: Realtek ALC269, Intel/0x2805, using Realtek ALC269
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb4: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 2 "Intel 6 Series PCIE" rev 0xb4: msi
pci3 at ppb2 bus 3
bge0 at pci3 dev 0 function 0 "Broadcom BCM5722" rev 0x00, BCM5755 C0 (0xa200): msi, address 00:10:18:e3:4c:22
brgphy0 at bge0 phy 1: BCM5722 10/100/1000baseT PHY, rev. 0
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa4
pci4 at ppb3 bus 4
pcib0 at pci0 dev 31 function 0 "Intel C206 LPC" rev 0x04
ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x04: msi, AHCI 1.3
ahci0: port 0: 3.0Gb/s
ahci0: port 1: 6.0Gb/s
ahci0: port 2: 3.0Gb/s
ahci0: port 3: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, ST9500423AS, 0005> SCSI3 0/direct fixed naa.5000c50051756b89
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
sd1 at scsibus1 targ 1 lun 0: <ATA, WDC WD5000LPCX-0, 02.0> SCSI3 0/direct fixed naa.50014ee6b1d41576
sd1: 476940MB, 512 bytes/sector, 976773168 sectors
sd2 at scsibus1 targ 2 lun 0: <ATA, WDC WD3200AZRX-0, 01.0> SCSI3 0/direct fixed naa.50014ee657859dcd
sd2: 305245MB, 512 bytes/sector, 625142448 sectors
sd3 at scsibus1 targ 3 lun 0: <ATA, WDC WD3200AAKX-0, 15.0> SCSI3 0/direct fixed naa.50014ee25d9394e2
sd3: 305245MB, 512 bytes/sector, 625142448 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x04: apic 2 int 18
iic0 at ichiic0
sdtemp0 at iic0 addr 0x19: ts3000b3
sdtemp1 at iic0 addr 0x1b: ts3000b3
spdmem0 at iic0 addr 0x51: 8GB DDR3 SDRAM ECC PC3-10600 with thermal sensor
spdmem1 at iic0 addr 0x53: 8GB DDR3 SDRAM ECC PC3-10600 with thermal sensor
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
vmm0 at mainbus0: VMX/EPT
uhub2 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
umass0 at uhub2 port 4 configuration 1 interface 0 "Prolific Technology Inc. Mass Storage Device" rev 2.00/1.00 addr 3
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
cd0 at scsibus2 targ 1 lun 0: <hp, DVD-RAM GH40L, RB12> SCSI0 5/cdrom removable
uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
ugen0 at uhub3 port 1 "Hewlett-Packard HP ScanJet 2200C" rev 1.10/1.00 addr 3
umass1 at uhub3 port 2 configuration 1 interface 0 "IOMEGA CDRW86522EXT3-B" rev 2.00/0.02 addr 4
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
cd1 at scsibus3 targ 1 lun 0: <IOMEGA, CDRW86522EXT3-B, QOP3> SCSI0 5/cdrom removable
uhidev0 at uhub3 port 3 configuration 1 interface 0 "DELL Dell USB Entry Keyboard" rev 1.10/1.78 addr 5
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub3 port 4 configuration 1 interface 0 "Logitech Trackball" rev 1.10/2.20 addr 6
uhidev1: iclass 3/1
ums0 at uhidev1: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
uhub4 at uhub3 port 5 configuration 1 interface 0 "Terminus Technology USB 2.0 Hub [MTT]" rev 2.00/1.00 addr 7
uhub5 at uhub4 port 5 configuration 1 interface 0 "Terminus Technology USB 2.0 Hub [MTT]" rev 2.00/1.00 addr 8
ulpt0 at uhub3 port 6 configuration 1 interface 0 "Samsung Electronics Co., Ltd. ML-1640 Series" rev 1.10/1.00 addr 9
ulpt0: using bi-directional mode
uvideo0 at uhub3 port 8 configuration 1 interface 0 "Etron Technology, Inc. USB2.0 Camera" rev 2.00/1.01 addr 10
video0 at uvideo0
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
softraid0: trying to bring up sd4 degraded
softraid0: sd4 was not shutdown properly
sd4 at scsibus5 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
sd4: 476937MB, 512 bytes/sector, 976767473 sectors
softraid0: roaming device  -> sd0a
softraid0: sd5 was not shutdown properly
sd5 at scsibus5 targ 2 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
sd5: 305242MB, 512 bytes/sector, 625136753 sectors
root on sd4a (40ea0fa6106b7b96.a) swap on sd4b dump on sd4b
WARNING: / was not properly unmounted
uhub4: device problem, disabling port 2
ugen1 at uhub4 port 2 "Sony H4113" rev 2.00/4.04 addr 11

usbdevs:
Controller /dev/usb0:
addr 01: 8086:0000 Intel, EHCI root hub
         high speed, self powered, config 1, rev 1.00
         driver: uhub0
addr 02: 8087:0024 Intel, Rate Matching Hub
         high speed, self powered, config 1, rev 0.00
         driver: uhub2
addr 03: 067b:3507 Prolific Technology Inc., Mass Storage Device
         high speed, self powered, config 1, rev 1.00, iSerialNumber 0
         driver: umass0
Controller /dev/usb1:
addr 01: 8086:0000 Intel, EHCI root hub
         high speed, self powered, config 1, rev 1.00
         driver: uhub1
addr 02: 8087:0024 Intel, Rate Matching Hub
         high speed, self powered, config 1, rev 0.00
         driver: uhub3
addr 03: 03f0:0605 Hewlett-Packard, HP ScanJet 2200C
         full speed, self powered, config 1, rev 1.00
         driver: ugen0
addr 04: 059b:0056 IOMEGA, CDRW86522EXT3-B
         high speed, power 96 mA, config 1, rev 0.02, iSerialNumber 0349900538
         driver: umass1
addr 05: 413c:2107 DELL, Dell USB Entry Keyboard
         low speed, power 100 mA, config 1, rev 1.78
         driver: uhidev0
addr 06: 046d:c404 Logitech, Trackball
         low speed, power 100 mA, config 1, rev 2.20
         driver: uhidev1
addr 07: 1a40:0201 Terminus Technology, USB 2.0 Hub [MTT]
         high speed, self powered, config 1, rev 1.00
         driver: uhub4
addr 08: 1a40:0201 Terminus Technology, USB 2.0 Hub [MTT]
         high speed, self powered, config 1, rev 1.00
         driver: uhub5
addr 09: 04e8:3292 Samsung Electronics Co., Ltd., ML-1640 Series
         full speed, self powered, config 1, rev 1.00, iSerialNumber 144QBKDSA00913E.
         driver: ulpt0
addr 10: 1e4e:0102 Etron Technology, Inc., USB2.0 Camera
         high speed, power 100 mA, config 1, rev 1.01
         driver: uvideo0
addr 11: 0fce:51f7 Sony, H4113
         high speed, power 500 mA, config 1, rev 4.04, iSerialNumber CQ30004CLH
         driver: ugen1