syzbot


freebsd boot error: Fatal trap NUM: page fault while in kernel mode (2)

Status: fixed on 2023/08/09 22:10
Reported-by: syzbot+287a99dc3e232aac3889@syzkaller.appspotmail.com
Fix commit: ccdb28275db7 vm_phys_enq_range: no alignment assert for npages==0
First crash: 476d, last: 475d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
freebsd freebsd boot error: Fatal trap NUM: page fault while in kernel mode 159 644d 646d 0/2 auto-obsoleted due to no activity on 2023/04/17 21:00
freebsd freebsd boot error: Fatal trap NUM: page fault while in kernel mode (4) 1 217d 217d 2/2 fixed on 2024/04/25 19:36
freebsd freebsd boot error: Fatal trap NUM: page fault while in kernel mode (3) 1 348d 348d 2/2 fixed on 2023/12/10 08:58

Sample crash report:
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0xfffff7800067ddcc
fault code		= supervisor read data, page not present
instruction pointer	= 0x20:0xffffffff81590e52
stack pointer	        = 0x28:0xffffffff849787f0
frame pointer	        = 0x28:0xffffffff849787f0
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= resume, IOPL = 0
current process		= 0 ()
rdi: fffffe00033eee60 rsi: 0000000000000000 rdx: ffffffff83898400
rcx: fffff78000000000  r8: 0000000000000000  r9: 0000000000000000
rax: 000000000067ddcc rbx: fffffe00033eee30 rbp: ffffffff849787f0
r10: 0000000000000000 r11: 0000000000000002 r12: fffffe00033eee25
r13: 0000000000000000 r14: 0000000000000000 r15: 0000000000000001
trap number		= 12
panic: page fault
cpuid = 0
time = 1
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0xc6/frame 0xffffffff84977f10
kdb_backtrace() at kdb_backtrace+0xd0/frame 0xffffffff84978070
vpanic() at vpanic+0x271/frame 0xffffffff84978210
panic() at panic+0xb5/frame 0xffffffff849782d0
trap_fatal() at trap_fatal+0x7ee/frame 0xffffffff849783f0
trap_pfault() at trap_pfault+0x17b/frame 0xffffffff84978530
trap() at trap+0x5f3/frame 0xffffffff84978720
calltrap() at calltrap+0x8/frame 0xffffffff84978720
--- trap 0xc, rip = 0xffffffff81590e52, rsp = 0xffffffff849787f0, rbp = 0xffffffff849787f0 ---
__asan_load8_noabort() at __asan_load8_noabort+0x82/frame 0xffffffff849787f0
vm_phys_enq_range() at vm_phys_enq_range+0x2c/frame 0xffffffff84978840
vm_phys_alloc_contig() at vm_phys_alloc_contig+0xd18/frame 0xffffffff84978920
vm_page_find_contig_domain() at vm_page_find_contig_domain+0xfa/frame 0xffffffff84978990
vm_page_alloc_noobj_contig_domain() at vm_page_alloc_noobj_contig_domain+0x178/frame 0xffffffff84978a90
startup_alloc() at startup_alloc+0xe7/frame 0xffffffff84978b10
uma_startup1() at uma_startup1+0x1b5/frame 0xffffffff84978e90
vm_mem_init() at vm_mem_init+0x60/frame 0xffffffff84978eb0
mi_startup() at mi_startup+0x4b7/frame 0xffffffff84978ff0
btext() at btext+0x3d
KDB: enter: panic
[ thread pid 0 tid 0 ]
Stopped at      kdb_enter+0x6e: movq    $0,0x217c2a7(%rip)
db> 

Crashes (51):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/04 18:35 freebsd-src 78cc000cbae9 f390e608 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 17:14 freebsd-src 8e4aa6317eb8 f390e608 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 17:14 freebsd-src 8e4aa6317eb8 f390e608 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 15:55 freebsd-src b23dbabb7f3e f390e608 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 15:55 freebsd-src b23dbabb7f3e f390e608 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 15:55 freebsd-src b23dbabb7f3e f390e608 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 13:52 freebsd-src f0ab805200fc 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 13:52 freebsd-src f0ab805200fc 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 13:52 freebsd-src f0ab805200fc 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 12:31 freebsd-src b5a3a89c5067 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 12:31 freebsd-src b5a3a89c5067 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 12:31 freebsd-src b5a3a89c5067 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 11:11 freebsd-src dd3055a75f3f 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 11:11 freebsd-src dd3055a75f3f 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 11:11 freebsd-src dd3055a75f3f 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 09:52 freebsd-src b306c604df54 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 09:52 freebsd-src b306c604df54 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 09:52 freebsd-src b306c604df54 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 01:40 freebsd-src 21d6c29f344d 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 01:40 freebsd-src 21d6c29f344d 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 01:40 freebsd-src 21d6c29f344d 74621247 console log report ci-freebsd-main freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 16:35 freebsd-src 301e69218ccb f390e608 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 16:35 freebsd-src 301e69218ccb f390e608 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 16:35 freebsd-src 301e69218ccb f390e608 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 15:16 freebsd-src b23dbabb7f3e f390e608 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 15:16 freebsd-src b23dbabb7f3e f390e608 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 15:16 freebsd-src b23dbabb7f3e f390e608 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 14:33 freebsd-src bbe017e0415a 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 14:33 freebsd-src bbe017e0415a 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 14:33 freebsd-src bbe017e0415a 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 13:12 freebsd-src f0ab805200fc 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 13:12 freebsd-src f0ab805200fc 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 13:12 freebsd-src f0ab805200fc 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 11:51 freebsd-src b5a3a89c5067 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 11:51 freebsd-src b5a3a89c5067 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 11:51 freebsd-src b5a3a89c5067 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 10:32 freebsd-src b306c604df54 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 10:32 freebsd-src b306c604df54 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 10:32 freebsd-src b306c604df54 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 02:21 freebsd-src 21d6c29f344d 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 02:21 freebsd-src 21d6c29f344d 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
2023/08/04 02:21 freebsd-src 21d6c29f344d 74621247 console log report ci-freebsd-i386 freebsd boot error: Fatal trap NUM: page fault while in kernel mode
* Struck through repros no longer work on HEAD.