On Sun, Dec 13, 2020 at 08:32:33AM -0700, Anthony J. Bentley wrote: > Hi, > > This weekend I pulled out an X40T Thinkpad to route some packets. > I plugged in a ure(4) adapter (Cable Matters USB 3.0 to Gigabit) for > that purpose. However, after any reasonably large burst in traffic, > the machine would panic. > > There were two kinds of panics. The first happened many times. It > printed the following line: > > panic: ehci_allow_std: curlen == 0 > > The computer hung there every time: nothing else was printed, and there > was no ddb prompt. So unfortunately I have no other information. But it > was quite easy to trigger. > > The other panic only happened once. > > panic: kernel diagnostic assertion "m->m_len >= ETHER_HDR_LEN" failed: file > "/usr/src/sys/net/bpf.c" line 1446 > Stopped at db_enter+0x10: popq %rbp > TID PID UID PRFLAGS PFLAGS CPU COMMAND > 306986 2118 0 0x14000 0x200 1 drmwq > db_enter() at db_enter+0x10 > panic(ffffffffff81deb3ab) at panic+0x12a > __assert(fffffffff81e51b5a, ffffffff81de8907,5ax,fffffffff81e83b22) at > __assert+0x2b > bpf_mtab_ether(ffff8000006b2000,fffffd80ae9d0c00,1) at bpf_mtap_ether+0xff > ifiq_input(ffff8000006ff4c0,ffff800022521910) at ifiq_input+0xf1 > ure_rxeof(fffffd813b8a6cc0,ffff8000006ff7a8,0) at ure_rxeof+0x237 > usb_transfer_complete(fffffd813b8a6cc0) at usb_transfer_complete+0x1e4 > ehci_softintr(ffff80000069f000) at ehci_softintr+0x195 > softintr_dispatch(1) at softintr_dispatch+0xeb > Xsoftnet() at Xsoftnet+0x1f > acpicpu_idle() at acpicpu_idle+0x1ea > sched_idle(ffffffff820e5ff0) at sched_idle+0x27e > end trace frame: 0x0, count: 3 > https://www.openbsd.org/ddb.html describes the minimum info required in bug > reports. Insufficient info makes it difficult to find and fix bugs. > ddb{0}> > > The ps output is too long to transcribe, but I put screenshots at > https://roadrunner.page/tmp/ure2020/
Not the newest snapshot and I don't know if the problem was already fixed, but have this one here hanging for a while, somewhat related to ure(4) but on a OpenBSD/armv7 host: ddb> show panic kernel diagnostic assertion "p->p_wchan == NULL" failed: file "/usr/src/sys/ker n/kern_sched.c", line 353 ddb> trace db_enter rlv=0xc04e05c0 rfp=0xc93d1cc8 panic rlv=0xc0602404 rfp=0xc93d1ce0 sched_chooseproc+0x18c rlv=0xc0758464 rfp=0xc93d1d18 mi_switch+0x16c rlv=0xc0470d74 rfp=0xc93d1d60 tsleep+0x1d4 rlv=0xc0401484 rfp=0xc93d1d90 usbd_transfer+0x268 rlv=0xc04023c8 rfp=0xc93d1dc0 usbd_do_request_flags+0x164 rlv=0xc0401d5c rfp=0xc93d1dd0 usbd_do_request+0x20 rlv=0xc044d854 rfp=0xc93d1e08 ure_reset+0x70 rlv=0xc044e2f8 rfp=0xc93d1e18 ure_stop+0x10 rlv=0xc045051c rfp=0xc93d1e58 ure_start+0x32c rlv=0xc04ab558 rfp=0xc93d1e70 if_qstart_compat+0x30 rlv=0xc0387088 rfp=0xc93d1e90 ifq_serialize+0xc4 rlv=0xc0666d64 rfp=0xc93d1ea0 hfsc_deferred+0x34 rlv=0xc0488ca8 rfp=0xc93d1eb8 softclock_process_tick_timeout+0x150 rlv=0xc04877d4 rfp=0xc93d1ed8 softclock+0x8c rlv=0xc0754398 rfp=0xc93d1ef8 softintr_dispatch+0x88 rlv=0xc0712054 rfp=0xc93d1f20 arm_do_pending_intr+0x134 rlv=0xc0590ac0 rfp=0xc93d1f48 ampintc_irq_handler+0x1b4 rlv=0xc04dbf00 rfp=0xc93d1fa8 irq_entry+0x78 rlv=0xc0633084 rfp=0xc0a24f60 Bad frame pointer: 0xc0a24f60 ddb> dmesg (plus some U-Boot output): ddb> boot reboot rebooting... U-Boot SPL 2019.10 (Apr 11 2020 - 04:24:12 -0300) DRAM: 256 MiB Trying to boot from MMC1 U-Boot 2019.10 (Apr 11 2020 - 04:24:12 -0300) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi R1 DRAM: 256 MiB MMC: mmc@1c0f000: 0, mmc@1c10000: 1 Loading Environment from FAT... *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 starting USB... Bus usb@1c1a000: USB EHCI 1.00 Bus usb@1c1a400: USB OHCI 1.0 Bus usb@1c1b000: USB EHCI 1.00 scanning bus usb@1c1a000 for devices... 1 USB Device(s) found scanning bus usb@1c1a400 for devices... 1 USB Device(s) found scanning bus usb@1c1b000 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found EFI removable media binary efi/boot/bootarm.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk m...@1c0f000.blk... Card did not respond to voltage select! Scanning disk m...@1c10000.blk... Disk m...@1c10000.blk not ready Found 3 disks BootOrder not defined EFI boot manager: Cannot load any image 105748 bytes read in 11 ms (9.2 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC disks: sd0* >> OpenBSD/armv7 BOOTARM 1.12 boot> booting sd0a:/bsd: 4763348+700976+324192+589484 [269243+120+330832+293975]=0x0 EHCI failed to shut down host controller. OpenBSD/armv7 booting ... arg0 0xc09f084c arg1 0x0 arg2 0x47ef8000 Allocating page tables IRQ stack: p0x40a1f000 v0xc0a1f000 ABT stack: p0x40a20000 v0xc0a20000 UND stack: p0x40a21000 v0xc0a21000 SVC stack: p0x40a22000 v0xc0a22000 Creating L1 page table at 0x409f4000 Mapping kernel Constructing L2 page tables undefined page type 0x2 pa 0x40000000 va 0x40000000 pages 0x2000 attr 0x8 type 0x7 pa 0x42000000 va 0x42000000 pages 0x5ef8 attr 0x8 type 0x4 pa 0x47ef8000 va 0x47ef8000 pages 0x10 attr 0x8 type 0x7 pa 0x47f08000 va 0x47f08000 pages 0x2881 attr 0x8 type 0x2 pa 0x4a789000 va 0x4a789000 pages 0x69f attr 0x8 type 0x4 pa 0x4ae28000 va 0x4ae28000 pages 0x1 attr 0x8 type 0x2 pa 0x4ae29000 va 0x4ae29000 pages 0x3 attr 0x8 type 0x7 pa 0x4ae2c000 va 0x4ae2c000 pages 0x1 attr 0x8 type 0x2 pa 0x4ae2d000 va 0x4ae2d000 pages 0x100 attr 0x8 type 0x1 pa 0x4af2d000 va 0x4af2d000 pages 0x1a attr 0x8 type 0x0 pa 0x4af47000 va 0x4af47000 pages 0x7 attr 0x8 type 0x4 pa 0x4af4e000 va 0x4af4e000 pages 0x1 attr 0x8 type 0x6 pa 0x4af4f000 va 0x4af4f000 pages 0x1 attr 0x8000000000000008 type 0x4 pa 0x4af50000 va 0x4af50000 pages 0x2 attr 0x8 type 0x0 pa 0x4af52000 va 0x4af52000 pages 0x4 attr 0x8 type 0x4 pa 0x4af56000 va 0x4af56000 pages 0x2 attr 0x8 type 0x6 pa 0x4af58000 va 0x4af58000 pages 0x1 attr 0x8000000000000008 type 0x2 pa 0x4af59000 va 0x4af59000 pages 0x5026 attr 0x8 type 0x5 pa 0x4ff7f000 va 0x4ff7f000 pages 0x1 attr 0x8000000000000008 type 0x2 pa 0x4ff80000 va 0x4ff80000 pages 0x80 attr 0x8 pmap [ using 894784 bytes of bsd ELF symbol table ] Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2020 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 6.8-current (GENERIC) #341: Sun Oct 18 05:19:35 MDT 2020 dera...@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/GENERIC real mem = 175607808 (167MB) avail mem = 161497088 (154MB) random: boothowto does not indicate good seed mainbus0 at root: Xunlong Orange Pi R1 cpu0 at mainbus0 mpidr 0: ARM Cortex-A7 r0p5 cpu0: 32KB 32b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu0: 512KB 64b/line 8-way L2 cache cortex0 at mainbus0 psci0 at mainbus0: PSCI 0.0 simplebus0 at mainbus0: "soc" syscon0 at simplebus0: "syscon" sxiccmu0 at simplebus0 sxipio0 at simplebus0: 94 pins ampintc0 at simplebus0 nirq 160, ncpu 4: "interrupt-controller" sxirtc0 at simplebus0 sxiccmu1 at simplebus0 sxipio1 at simplebus0: 12 pins sxisyscon0 at simplebus0 "clock" at simplebus0 not configured "mixer" at simplebus0 not configured "dma-controller" at simplebus0 not configured "lcd-controller" at simplebus0 not configured sximmc0 at simplebus0 sdmmc0 at sximmc0: 4-bit, sd high-speed, mmc high-speed, dma sximmc1 at simplebus0 sdmmc1 at sximmc1: 4-bit, sd high-speed, mmc high-speed, dma "usb" at simplebus0 not configured "phy" at simplebus0 not configured ehci0 at simplebus0 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1 ohci0 at simplebus0: version 1.0 ehci1 at simplebus0 usb1 at ehci1: USB revision 2.0 uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1 "timer" at simplebus0 not configured dwxe0 at simplebus0: address 02:42:9c:62:1b:4e ukphy0 at dwxe0 phy 1: Generic IEEE 802.3u media interface, rev. 0: OUI 0x001105, model 0x0000 sxidog0 at simplebus0 com0 at simplebus0: ns16550, no working fifo com0: console "hdmi-phy" at simplebus0 not configured "codec-analog" at simplebus0 not configured "gpu" at simplebus0 not configured gpio0 at sxipio0: 32 pins gpio1 at sxipio0: 32 pins gpio2 at sxipio0: 32 pins gpio3 at sxipio0: 32 pins gpio4 at sxipio0: 32 pins gpio5 at sxipio0: 32 pins gpio6 at sxipio0: 32 pins gpio7 at sxipio1: 32 pins usb2 at ohci0: USB revision 1.0 uhub2 at usb2 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1 agtimer0 at mainbus0: tick rate 24000 KHz scsibus0 at sdmmc0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <SD/MMC, SU08G, 0080> removable sd0: 7580MB, 512 bytes/sector, 15523840 sectors sdmmc1: bad CIS ptr 0 sdmmc1: can't read CIS sdmmc1: i/o init failed manufacturer 0x024c, product 0x8179 at sdmmc1 function 1 not configured ure0 at uhub1 port 1 configuration 1 interface 0 "Realtek USB 10/100 LAN" rev 2.10/20.00 addr 2 ure0: RTL8152 (0x4c10), address c0:74:2b:ff:d4:b2 rlphy0 at ure0 phy 0: RTL8201E 10/100 PHY, rev. 2 vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets bootfile: sd0a:/bsd boot device: sd0 root on sd0a (39f5723681e8c0bf.a) swap on sd0b dump on sd0b -- db