Re: r351680 kernel panic in login

2019-09-20 Thread Hans Petter Selasky

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 = (0xf80003989ea0) locked 0 
/usr/src/sys/dev/usb/usb_transfer.c:2266
stack backtrace:
#0 0x80c3dac3 at winess_debugger+0x73
#1 0x80c3eae2 at winess_warn+0x442
#2 0x81191943 at trap_pfault+0x53
#3 0x81198f42 at trap+0x2b2
#4 0x8116886c at caltrap+0x8
#5 0x82f0dd82 at axe_bulk_read_callback+0x142
#6 0x80a1e52a at usbd_callback_wrapoer+0x7aa
#7 0x80a1c273 at usb_command_wrapper+0xb3
#8 0x80a1b0ae at usb_callback_proc+0x8e
#9 0x80a15dd5 at usb_process+0xe5
#10 0x80b8f794 at fork_exit+0x84
#11 0x811698ae 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:0x82f0df41
stack pointer  = 0x28:0xfe513a40
frame pointer  = 0x28:0xfe513a80
code segment   = base 0x0, limit 0xf, 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 0xfe513700
vpanic() at vpanic+0x19d/frame 0xfe513750
panic() at panic+0x43/frame 0xfe5137b0
trap_fatal() at trap_fatal+0x39c/frame 0xfe513810
trap_pfault() at trap_pfault+0x62/frame 0xfe513860
trap() at trap+0x2b2/frame 0xfe513970
calltrap() at calltrap+0x8/frame 0xfe513970
--- trap 0xc, rip = 0x82f0d41, rsp = 0xfe513a40, rbp = 
0xfe513a80 ---
axe_rxeof() at axa_rxeof+0x151/frame 0xfe513a80
axe_bulk_read_callback() at axe_bulk_read_callback+0x142/frame 
0xfe513af0
usbd_callback_wrapper() at usbd_callback_wrapper+0x7aa/fram 0xfe513b30
usb_command_wrapper() at usb_command_wrapper+0xb3/frame 0xfe513b50
usb_callback_proc() at usb_callback_proc+0x8e/frame 0xfe513b70
usb_process() at usb_process+0xe5/frame 0xfe513bb0
fork_exit() at fork_exit+0x84/frame 0xfe513bf0
fork_trampoline() at fork_trampoline+0xe/frame 0xfe513bf0
--- 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@tbedfc:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
# dmesg
---<>---
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@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 @ 1.44GHz (1439.99-MHz K8-class CPU)
   Origin="GenuineIntel"  Id=0x406c4  Family=0x6  Model=0x4c  Stepping=4
   
Features=0xbfebfbff
   
Features2=0x43d8e3bf
   AMD Features=0x28100800
   AMD Features2=0x101
   Structured Extended Features=0x2282
   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: 
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  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.46 [4335] netmap_init   netmap: loaded module
module_register_init: MOD_LOAD (vesa, 0x811b9cc0, 0) error 19
nexus0
efirtc0: 
efirtc0: registered as a time-of-day clock, resolution 1.00s
cryptosoft0: 
acpi0: 
acpi0: Power Button (fixed)
unknown: I/O range not supported
cpu0:  on acpi0
attimer0:  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:  port 0x70-0x77 on acpi0
atrtc0: Warning: Couldn't map I/O.
atrtc0: registered as a time-of-day clock, resol

r351680 kernel panic in login

2019-09-20 Thread KIRIYAMA Kazuhiko
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 = (0xf80003989ea0) locked 0 
/usr/src/sys/dev/usb/usb_transfer.c:2266
stack backtrace:
#0 0x80c3dac3 at winess_debugger+0x73
#1 0x80c3eae2 at winess_warn+0x442
#2 0x81191943 at trap_pfault+0x53
#3 0x81198f42 at trap+0x2b2
#4 0x8116886c at caltrap+0x8
#5 0x82f0dd82 at axe_bulk_read_callback+0x142
#6 0x80a1e52a at usbd_callback_wrapoer+0x7aa
#7 0x80a1c273 at usb_command_wrapper+0xb3
#8 0x80a1b0ae at usb_callback_proc+0x8e
#9 0x80a15dd5 at usb_process+0xe5
#10 0x80b8f794 at fork_exit+0x84
#11 0x811698ae 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:0x82f0df41
stack pointer  = 0x28:0xfe513a40
frame pointer  = 0x28:0xfe513a80
code segment   = base 0x0, limit 0xf, 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 0xfe513700
vpanic() at vpanic+0x19d/frame 0xfe513750
panic() at panic+0x43/frame 0xfe5137b0
trap_fatal() at trap_fatal+0x39c/frame 0xfe513810
trap_pfault() at trap_pfault+0x62/frame 0xfe513860
trap() at trap+0x2b2/frame 0xfe513970
calltrap() at calltrap+0x8/frame 0xfe513970
--- trap 0xc, rip = 0x82f0d41, rsp = 0xfe513a40, rbp = 
0xfe513a80 ---
axe_rxeof() at axa_rxeof+0x151/frame 0xfe513a80
axe_bulk_read_callback() at axe_bulk_read_callback+0x142/frame 
0xfe513af0
usbd_callback_wrapper() at usbd_callback_wrapper+0x7aa/fram 0xfe513b30
usb_command_wrapper() at usb_command_wrapper+0xb3/frame 0xfe513b50
usb_callback_proc() at usb_callback_proc+0x8e/frame 0xfe513b70
usb_process() at usb_process+0xe5/frame 0xfe513bb0
fork_exit() at fork_exit+0x84/frame 0xfe513bf0
fork_trampoline() at fork_trampoline+0xe/frame 0xfe513bf0
--- 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@tbedfc:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
# dmesg
---<>---
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@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 @ 1.44GHz (1439.99-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x406c4  Family=0x6  Model=0x4c  Stepping=4
  
Features=0xbfebfbff
  
Features2=0x43d8e3bf
  AMD Features=0x28100800
  AMD Features2=0x101
  Structured Extended Features=0x2282
  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: 
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  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.46 [4335] netmap_init   netmap: loaded module
module_register_init: MOD_LOAD (vesa, 0x811b9cc0, 0) error 19
nexus0
efirtc0: 
efirtc0: registered as a time-of-day clock, resolution 1.00s
cryptosoft0: 
acpi0: 
acpi0: Power Button (fixed)
unknown: I/O range not supported
cpu0:  on acpi0
attimer0:  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:  port 0x70-0x77 on acpi0
atrtc0: Warning: Couldn't map I/O.
atrtc0: registered as a time-of-day clock, resolution 1.00s
Event timer "RTC" frequency 32768 Hz quali