Re: r351680 kernel panic in login

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Sat, 21 Sep 2019 08:35:21 +0200
On 2019-09-21 07:55, KIRIYAMA Kazuhiko wrote:
> Hi,
> 
> I've installed r351680 in my note PC. But kernel panic at
> login:
> 
> Kernel page fault with the following non-sleepable locks held:
> exclusive sleep mutex axe0 (axe0) r = (0xfffff80003989ea0) locked 0 /usr/src/sys/dev/usb/usb_transfer.c:2266
> stack backtrace:
> #0 0xffffffff80c3dac3 at winess_debugger+0x73
> #1 0xffffffff80c3eae2 at winess_warn+0x442
> #2 0xffffffff81191943 at trap_pfault+0x53
> #3 0xffffffff81198f42 at trap+0x2b2
> #4 0xffffffff8116886c at caltrap+0x8
> #5 0xffffffff82f0dd82 at axe_bulk_read_callback+0x142
> #6 0xffffffff80a1e52a at usbd_callback_wrapoer+0x7aa
> #7 0xffffffff80a1c273 at usb_command_wrapper+0xb3
> #8 0xffffffff80a1b0ae at usb_callback_proc+0x8e
> #9 0xffffffff80a15dd5 at usb_process+0xe5
> #10 0xffffffff80b8f794 at fork_exit+0x84
> #11 0xffffffff811698ae at gork_trampoline+0xe
> 
> 
> Fatal trap12: page fault while in kernel mode
> cpuid = 3; apic id = 86
> fault virtual address  = 0x0
> fault code             = supervisor write data,page not present
> instruction pointer    = 0x20:0xffffffff82f0df41
> stack pointer          = 0x28:0xfffffe0000513a40
> frame pointer          = 0x28:0xfffffe0000513a80
> code segment           = base 0x0, limit 0xfffff, type 0x1b
>                         = DPL 0, pres 1, long 1, def32 0, gran 1
> processor eflags       = interrupt enabled, resume, IOPL = 0
> current process        = 15 (usbus0)
> trap number            = 12
> panic: page fault
> cpuid = 3
> time = 1568969574
> KDB: stack backtrace:
> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0000513700
> vpanic() at vpanic+0x19d/frame 0xfffffe0000513750
> panic() at panic+0x43/frame 0xfffffe00005137b0
> trap_fatal() at trap_fatal+0x39c/frame 0xfffffe0000513810
> trap_pfault() at trap_pfault+0x62/frame 0xfffffe0000513860
> trap() at trap+0x2b2/frame 0xfffffe0000513970
> calltrap() at calltrap+0x8/frame 0xfffffe0000513970
> --- trap 0xc, rip = 0xffffffff82f0d41, rsp = 0xfffffe0000513a40, rbp = 0xfffffe0000513a80 ---
> axe_rxeof() at axa_rxeof+0x151/frame 0xfffffe0000513a80
> axe_bulk_read_callback() at axe_bulk_read_callback+0x142/frame 0xfffffe0000513af0
> usbd_callback_wrapper() at usbd_callback_wrapper+0x7aa/fram 0xfffffe0000513b30
> usb_command_wrapper() at usb_command_wrapper+0xb3/frame 0xfffffe0000513b50
> usb_callback_proc() at usb_callback_proc+0x8e/frame 0xfffffe0000513b70
> usb_process() at usb_process+0xe5/frame 0xfffffe0000513bb0
> fork_exit() at fork_exit+0x84/frame 0xfffffe0000513bf0
> fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0000513bf0
> --- trap 0, rip = 0, rsp = 0, rbp = 0 ---
> KBD: enter: panic
> [ thread pid 15 tid 100047 ]
> Stopped at      kbd_enter+0x3b: movq   $0,kbd_why
> db>
> 
> I've rebooted and at single user mode I saved sevral specs
> in usb as follows:
> 
> # umane -a
> FreeBSD  13.0-CURRENT FreeBSD 13.0-CURRENT #0 r351680: Fri Sep 13 13:37:15 JST 2019     admin_at_tbedfc:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
> # dmesg
> ---<<BOOT>>---
> Copyright (c) 1992-2019 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
> 	The Regents of the University of California. All rights reserved.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 13.0-CURRENT #0 r351680: Fri Sep 13 13:37:15 JST 2019
>      admin_at_tbedfc:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
> FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)
> WARNING: WITNESS option enabled, expect reduced performance.
> VT(efifb): resolution 800x600
> CPU: Intel(R) Atom(TM) x5-Z8350  CPU _at_ 1.44GHz (1439.99-MHz K8-class CPU)
>    Origin="GenuineIntel"  Id=0x406c4  Family=0x6  Model=0x4c  Stepping=4
>    Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
>    Features2=0x43d8e3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,TSCDLT,AESNI,RDRAND>
>    AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
>    AMD Features2=0x101<LAHF,Prefetch>
>    Structured Extended Features=0x2282<TSCADJ,SMEP,ERMS,NFPUSG>
>    VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
>    TSC: P-state invariant, performance statistics
> real memory  = 4294967296 (4096 MB)
> avail memory = 3974008832 (3789 MB)
> Event timer "LAPIC" quality 600
> ACPI APIC Table: <ALASKA A M I >
> WARNING: L1 data cache covers fewer APIC IDs than a core (0 < 1)
> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
> FreeBSD/SMP: 1 package(s) x 4 core(s)
> random: registering fast source Intel Secure Key RNG
> random: fast provider: "Intel Secure Key RNG"
> random: unblocking device.
> ioapic0 <Version 2.0> irqs 0-114
> Launching APs: 2 3 1
> Timecounter "TSC" frequency 1439990442 Hz quality 1000
> random: entropy device external interface
> [ath_hal] loaded
> kbd1 at kbdmux0
> 000.000046 [4335] netmap_init               netmap: loaded module
> module_register_init: MOD_LOAD (vesa, 0xffffffff811b9cc0, 0) error 19
> nexus0
> efirtc0: <EFI Realtime Clock>
> efirtc0: registered as a time-of-day clock, resolution 1.000000s
> cryptosoft0: <software crypto>
> acpi0: <ALASKA A M I >
> acpi0: Power Button (fixed)
> unknown: I/O range not supported
> cpu0: <ACPI CPU> on acpi0
> attimer0: <AT timer> port 0x40-0x43,0x50-0x53 irq 0 on acpi0
> Timecounter "i8254" frequency 1193182 Hz quality 0
> Event timer "i8254" frequency 1193182 Hz quality 100
> atrtc0: <AT realtime clock> port 0x70-0x77 on acpi0
> atrtc0: Warning: Couldn't map I/O.
> atrtc0: registered as a time-of-day clock, resolution 1.000000s
> Event timer "RTC" frequency 32768 Hz quality 0
> hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff irq 8 on acpi0
> Timecounter "HPET" frequency 14318180 Hz quality 950
> Event timer "HPET" frequency 14318180 Hz quality 450
> Event timer "HPET1" frequency 14318180 Hz quality 440
> Event timer "HPET2" frequency 14318180 Hz quality 440
> Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> vgapci0: <VGA-compatible display> port 0xf000-0xf03f mem 0x90000000-0x90ffffff,0x80000000-0x8fffffff at device 2.0 on pci0
> vgapci0: Boot video device
> pci0: <multimedia> at device 3.0 (no driver attached)
> xhci0: <Intel Braswell USB 3.0 controller> mem 0x91800000-0x9180ffff at device 20.0 on pci0
> xhci0: 32 bytes context size, 64-bit DMA
> usbus0 on xhci0
> usbus0: 5.0Gbps Super Speed USB v3.0
> pci0: <encrypt/decrypt> at device 26.0 (no driver attached)
> isab0: <PCI-ISA bridge> at device 31.0 on pci0
> isa0: <ISA bus> on isab0
> acpi_button0: <Power Button> on acpi0
> acpi_lid0: <Control Method Lid Switch> on acpi0
> acpi_acad0: <AC Adapter> on acpi0
> acpi_tz0: <Thermal Zone> on acpi0
> sdhci_acpi0: <Intel Bay Trail/Braswell eMMC 4.5/4.5.1 Controller> iomem 0x9183a000-0x9183afff irq 45 on acpi0
> mmc0: <MMC/SD bus> on sdhci_acpi0
> sdhci_acpi1: <Intel Bay Trail/Braswell SDXC Controller> iomem 0x91836000-0x91836fff irq 47 on acpi0
> mmc1: <MMC/SD bus> on sdhci_acpi1
> uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
> atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
> atkbd0: <AT Keyboard> irq 1 on atkbdc0
> kbd0 at atkbd0
> atkbd0: [GIANT-LOCKED]
> atkbdc0: non-PNP ISA device will be removed from GENERIC in FreeBSD 12.
> est0: <Enhanced SpeedStep Frequency Control> on cpu0
> Timecounters tick every 1.000 msec
> ugen0.1: <0x8086 XHCI root HUB> at usbus0
> uhub0 on usbus0
> uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
> mmcsd0: 63GB <MMCHC DF4064 0.1 SN 14C58F7A MFG 10/2016 by 69 0x0000> at mmc0 200.0MHz/8bit/8192-block
> mmcsd0boot0: 4MB partition 1 at mmcsd0
> mmcsd0boot1: 4MB partition 2 at mmcsd0
> mmcsd0rpmb: 4MB partition 3 at mmcsd0
> mmcsd1: 128GB <SDHC SC128 8.0 SN 13C1CB3A MFG 12/2017 by 3 SD> at mmc1 50.0MHz/4bit/65535-block
> Trying to mount root from ufs:/dev/mmcsd0p2 [rw]...
> WARNING: WITNESS option enabled, expect reduced performance.
> uhub0: 13 ports with 13 removable, self powered
> ugen0.2: <ASIX Elec. Corp. AX88772> at usbus0
> ugen0.3: <SIPODEV USB Composite Device> at usbus0
> ukbd0 on uhub0
> ukbd0: <SIPODEV USB Composite Device, class 0/0, rev 1.10/1.05, addr 2> on usbus0
> kbd2 at ukbd0
> ugen0.4: <ELECOM MF-HMU2> at usbus0
> umass0 on uhub0
> umass0: <ELECOM MF-HMU2, class 0/0, rev 2.00/1.00, addr 3> on usbus0
> umass0:  SCSI over Bulk-Only; quirks = 0x8100
> umass0:0:0: Attached to scbus0
> da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
> da0: <ELECOM MF-HMU2 PMAP> Removable Direct Access SCSI device
> da0: Serial Number 07BA1B081C742B8A
> da0: 40.000MB/s transfers
> da0: 1912MB (3915776 512 byte sectors)
> da0: quirks=0x2<NO_6_BYTE>
> ugen0.5: <Alcor Micro, Corp. USB 2.0 Camera> at usbus0
> # df
> Filesystem    512-blocks    Used     Avail Capacity  Mounted on
> /dev/mmcsd0p2  111720120 6363664  96418848     6%    /
> devfs                  2       2         0   100%    /dev
> /dev/mmcsd1p1  241710968   65672 222308424     0%    /work
> linprocfs              8       8         0   100%    /compat/linux/proc
> tmpfs            7636728       8   7636720     0%    /compat/linux/dev/shm
> /dev/da0s3       1868552      32   1719040     0%    /mnt
> # pciconf -lv
> hostb0_at_pci0:0:0:0:	class=0x060000 card=0x72708086 chip=0x22808086 rev=0x36 hdr=0x00
>      vendor     = 'Intel Corporation'
>      device     = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register'
>      class      = bridge
>      subclass   = HOST-PCI
> vgapci0_at_pci0:0:2:0:	class=0x030000 card=0x72708086 chip=0x22b08086 rev=0x36 hdr=0x00
>      vendor     = 'Intel Corporation'
>      device     = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers'
>      class      = display
>      subclass   = VGA
> none0_at_pci0:0:3:0:	class=0x048000 card=0x72708086 chip=0x22b88086 rev=0x36 hdr=0x00
>      vendor     = 'Intel Corporation'
>      device     = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Imaging Unit'
>      class      = multimedia
> none1_at_pci0:0:11:0:	class=0x118000 card=0x72708086 chip=0x22dc8086 rev=0x36 hdr=0x00
>      vendor     = 'Intel Corporation'
>      device     = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller'
>      class      = dasp
> xhci0_at_pci0:0:20:0:	class=0x0c0330 card=0x72708086 chip=0x22b58086 rev=0x36 hdr=0x00
>      vendor     = 'Intel Corporation'
>      device     = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller'
>      class      = serial bus
>      subclass   = USB
> none2_at_pci0:0:26:0:	class=0x108000 card=0x72708086 chip=0x22988086 rev=0x36 hdr=0x00
>      vendor     = 'Intel Corporation'
>      device     = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine'
>      class      = encrypt/decrypt
> isab0_at_pci0:0:31:0:	class=0x060100 card=0x72708086 chip=0x229c8086 rev=0x36 hdr=0x00
>      vendor     = 'Intel Corporation'
>      device     = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU'
>      class      = bridge
>      subclass   = PCI-ISA
> #
> 
> Is there any suggetions?

This issue is already fixed in:

https://svnweb.freebsd.org/changeset/base/351692

--HPS
Received on Sat Sep 21 2019 - 04:36:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:21 UTC