[ 48.5667291] panic: kernel diagnostic assertion "pg->wire_count != 0" failed: file "/syzkaller/managers/netbsd-kubsan/kernel/sys/uvm/uvm_page.c", line 1582 [ 48.5839794] cpu0: Begin traceback... [ 48.5967920] vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336 [ 48.6368886] kern_assert() at netbsd:kern_assert+0x63 [ 48.6769840] uvm_pageunwire() at netbsd:uvm_pageunwire+0x1e9 sys/uvm/uvm_page.c:1582 [ 48.7170816] uvm_fault_unwire_locked() at netbsd:uvm_fault_unwire_locked+0x32d sys/uvm/uvm_fault.c:2422 [ 48.7571811] uvm_fault_unwire() at netbsd:uvm_fault_unwire+0x31 sys/uvm/uvm_fault.c:2388 [ 48.7972704] genfs_directio() at netbsd:genfs_directio+0xa1a sys/miscfs/genfs/genfs_io.c:1749 [ 48.8373673] ffs_write() at netbsd:ffs_write+0xa7b sys/ufs/ufs/ufs_readwrite.c:354 [ 48.8674373] VOP_WRITE() at netbsd:VOP_WRITE+0x108 sys/kern/vnode_if.c:506 [ 48.9175627] vn_write() at netbsd:vn_write+0x277 sys/kern/vfs_vnops.c:609 [ 48.9676771] do_filewritev.part.1() at netbsd:do_filewritev.part.1+0x415 [ 49.0077732] sys_writev() at netbsd:sys_writev+0x54 do_filewritev sys/kern/sys_generic.c:381 [inline] [ 49.0077732] sys_writev() at netbsd:sys_writev+0x54 sys/kern/sys_generic.c:381 [ 49.0478684] sys___syscall() at netbsd:sys___syscall+0x1c8 sy_call sys/sys/syscallvar.h:65 [inline] [ 49.0478684] sys___syscall() at netbsd:sys___syscall+0x1c8 sys/kern/sys_syscall.c:77 [ 49.0879635] syscall() at netbsd:syscall+0x29a sy_call sys/sys/syscallvar.h:65 [inline] [ 49.0879635] syscall() at netbsd:syscall+0x29a sy_invoke sys/sys/syscallvar.h:94 [inline] [ 49.0879635] syscall() at netbsd:syscall+0x29a sys/arch/x86/x86/syscall.c:138 [ 49.0979870] --- syscall (number 198) --- [ 49.1097390] Skipping crash dump on recursive panic [ 49.1097390] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/arch/amd64/amd64/db_machdep.c:153:24, member access within misaligned address 0x3 for type 'struct x86_64_frame' which requires 8 byte alignment [ 49.1360393] Faulted in mid-traceback; aborting... [ 49.1411939] fatal breakpoint trap in supervisor mode [ 49.1411939] trap type 1 code 0 rip 0xffffffff8021e7cd cs 0x8 rflags 0x282 cr2 0x74618a1b7230 ilevel 0 rsp 0xffff9580a64a7bd0 [ 49.1581804] curlwp 0xffff9059f8f6b900 pid 1318.3 lowest kstack 0xffff9580a64a52c0 Stopped in pid 1318.3 (syz-executor.2) at netbsd:breakpoint+0x5: leave ? breakpoint() at netbsd:breakpoint+0x5 db_panic() at netbsd:db_panic+0xd1 sys/ddb/db_panic.c:67 vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336 isAlreadyReported() at netbsd:isAlreadyReported HandleTypeMismatch.part.1() at netbsd:HandleTypeMismatch.part.1+0xcc HandleTypeMismatch() at netbsd:HandleTypeMismatch+0x7b sys/../common/lib/libc/misc/ubsan.c:408 db_nextframe() at netbsd:db_nextframe+0x6f6 sys/arch/amd64/amd64/db_machdep.c:153 db_stack_trace_print() at netbsd:db_stack_trace_print+0x2c4 sys/arch/x86/x86/db_trace.c:277 db_panic() at netbsd:db_panic+0x8b x86_curcpu sys/arch/amd64/compile/obj/GENERIC_SYZKALLER/./machine/cpu.h:56 [inline] db_panic() at netbsd:db_panic+0x8b sys/ddb/db_panic.c:57 vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336 kern_assert() at netbsd:kern_assert+0x63 uvm_pageunwire() at netbsd:uvm_pageunwire+0x1e9 sys/uvm/uvm_page.c:1582 uvm_fault_unwire_locked() at netbsd:uvm_fault_unwire_locked+0x32d sys/uvm/uvm_fault.c:2422 uvm_fault_unwire() at netbsd:uvm_fault_unwire+0x31 sys/uvm/uvm_fault.c:2388 genfs_directio() at netbsd:genfs_directio+0xa1a sys/miscfs/genfs/genfs_io.c:1749 ffs_write() at netbsd:ffs_write+0xa7b sys/ufs/ufs/ufs_readwrite.c:354 VOP_WRITE() at netbsd:VOP_WRITE+0x108 sys/kern/vnode_if.c:506 vn_write() at netbsd:vn_write+0x277 sys/kern/vfs_vnops.c:609 do_filewritev.part.1() at netbsd:do_filewritev.part.1+0x415 sys_writev() at netbsd:sys_writev+0x54 do_filewritev sys/kern/sys_generic.c:381 [inline] sys_writev() at netbsd:sys_writev+0x54 sys/kern/sys_generic.c:381 sys___syscall() at netbsd:sys___syscall+0x1c8 sy_call sys/sys/syscallvar.h:65 [inline] sys___syscall() at netbsd:sys___syscall+0x1c8 sys/kern/sys_syscall.c:77 syscall() at netbsd:syscall+0x29a sy_call sys/sys/syscallvar.h:65 [inline] syscall() at netbsd:syscall+0x29a sy_invoke sys/sys/syscallvar.h:94 [inline] syscall() at netbsd:syscall+0x29a sys/arch/x86/x86/syscall.c:138 --- syscall (number 198) --- [ 49.1581804] Skipping crash dump on recursive panic [ 49.1581804] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/arch/amd64/amd64/db_machdep.c:154:14, member access within misaligned address 0x3 for type 'struct x86_64_frame' which requires 8 byte alignment [ 49.1581804] Faulted in mid-traceback; aborting... [ 49.1581804] fatal breakpoint trap in supervisor mode [ 49.1581804] trap type 1 code 0 rip 0xffffffff8021e7cd cs 0x8 rflags 0x282 cr2 0x74618a1b7230 ilevel 0x8 rsp 0xffff9580a64a68d0 [ 49.1581804] curlwp 0xffff9059f8f6b900 pid 1318.3 lowest kstack 0xffff9580a64a52c0 Stopped in pid 1318.3 (syz-executor.2) at netbsd:breakpoint+0x5: leave db{0}>