Re: panic with today's kernel

From: Daniel Braniss <danny_at_cs.huji.ac.il>
Date: Fri, 07 Feb 2025 10:31:25 UTC
small correction, it’s a bit older than today’s. I will try today's once it
finishes compiling.


> On 7 Feb 2025, at 12:29, Daniel Braniss <danny@cs.huji.ac.il> wrote:
> 
> so far I have tested it on a a bhive host and this is a diskless boot:
> 
> FreeBSD 14.2-STABLE #0 huji-8a9b4731f: Thu Feb  6 17:40:15 IST 2025
>    danny@pe-55:/home/obj/pe-55/h/rnd/git/stable/14/amd64.amd64/sys/HUJI amd64
> …
> Fatal trap 12: page fault while in kernel mode
> cpuid = 2; apic id = 02
> fault virtual address   = 0x10
> fault code              = supervisor read data, page not present
> instruction pointer     = 0x20:0xffffffff82c1fc53
> stack pointer           = 0x28:0xfffffe00f92fbb70
> frame pointer           = 0x28:0xfffffe00f92fbba0
> 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         = 139 (zfs)
> rdi: fffffe00f92fbbb8 rsi: 0000000000000000 rdx: 0000000000000000
> rcx: 0000000000000001  r8: 000000002ce26ec8  r9: fffffe00d9bf69e0
> rax: 0000000000000000 rbx: fffffe00f92fbbb8 rbp: fffffe00f92fbba0
> r10: 0000000067a5de6f r11: 000000007fff159f r12: 0000000000000000
> r13: fffff800065521c0 r14: fffff800065521c0 r15: 0000000000000000
> trap number             = 12
> panic: page fault
> cpuid = 2
> time = 1738923631
> KDB: stack backtrace:
> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00f92fb860
> vpanic() at vpanic+0x161/frame 0xfffffe00f92fb990
> panic() at panic+0x43/frame 0xfffffe00f92fb9f0
> trap_fatal() at trap_fatal+0x40b/frame 0xfffffe00f92fba50
> trap_pfault() at trap_pfault+0x46/frame 0xfffffe00f92fbaa0
> calltrap() at calltrap+0x8/frame 0xfffffe00f92fbaa0
> --- trap 0xc, rip = 0xffffffff82c1fc53, rsp = 0xfffffe00f92fbb70, rbp = 0xfffffe00f92fbba0 ---
> unionfs_add_writecount() at unionfs_add_writecount+0x33/frame 0xfffffe00f92fbba0
> vn_truncate_locked() at vn_truncate_locked+0x5a/frame 0xfffffe00f92fbcb0
> kern_truncate() at kern_truncate+0x1cf/frame 0xfffffe00f92fbe00
> amd64_syscall() at amd64_syscall+0x115/frame 0xfffffe00f92fbf30
> fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe00f92fbf30
> --- syscall (479, FreeBSD ELF64, truncate), rip = 0x2f96d0ced12a, rsp = 0x2f96c6a28f28, rbp = 0x2f96c6a28f60 ---