[ 40.6201201] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/kern_mutex.c:472:6, member access within null pointer of type 'struct kmutex_t' [ 40.6201201] cpu1: Begin traceback... [ 40.6401608] vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336 [ 40.6802780] isAlreadyReported() at netbsd:isAlreadyReported [ 40.7103504] HandleTypeMismatch.part.1() at netbsd:HandleTypeMismatch.part.1+0x15b [ 40.7404171] HandleTypeMismatch() at netbsd:HandleTypeMismatch+0x7b sys/../common/lib/libc/misc/ubsan.c:408 [ 40.7704901] mutex_enter() at netbsd:mutex_enter+0x1457 sys/kern/kern_mutex.c:472 [ 40.8105806] unp_accept() at netbsd:unp_accept+0x177 sys/kern/uipc_usrreq.c:849 [ 40.8406485] soaccept() at netbsd:soaccept+0x12f sys/kern/uipc_socket.c:802 [ 40.8707184] do_sys_accept() at netbsd:do_sys_accept+0x3de sys/kern/uipc_syscalls.c:244 [ 40.9007864] sys_paccept() at netbsd:sys_paccept+0xdd sys/kern/uipc_syscalls.c:321 [ 40.9308563] sys___syscall() at netbsd:sys___syscall+0x1c8 sy_call sys/sys/syscallvar.h:65 [inline] [ 40.9308563] sys___syscall() at netbsd:sys___syscall+0x1c8 sys/kern/sys_syscall.c:77 [ 40.9609313] syscall() at netbsd:syscall+0x29a sy_call sys/sys/syscallvar.h:65 [inline] [ 40.9609313] syscall() at netbsd:syscall+0x29a sy_invoke sys/sys/syscallvar.h:94 [inline] [ 40.9609313] syscall() at netbsd:syscall+0x29a sys/arch/x86/x86/syscall.c:138 [ 40.9709494] --- syscall (number 198) --- [ 40.9809714] Skipping crash dump on recursive panic [ 40.9809714] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/arch/amd64/amd64/db_machdep.c:153:24, member access within misaligned address 0x4 for type 'struct x86_64_frame' which requires 8 byte alignment [ 41.0010042] Faulted in mid-traceback; aborting... [ 41.0110298] fatal breakpoint trap in supervisor mode [ 41.0110298] trap type 1 code 0 rip 0xffffffff8021ddfd cs 0x8 rflags 0x282 cr2 0xffffa900a5ee2000 ilevel 0 rsp 0xffffa900a69278d0 [ 41.0210519] curlwp 0xfffff3b8ab5c6240 pid 548.4 lowest kstack 0xffffa900a69252c0 Stopped in pid 548.4 (syz-executor.0) at netbsd:breakpoint+0x5: leave ? breakpoint() at netbsd:breakpoint+0x5 db_panic() at netbsd:db_panic+0x109 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+0xa3 x86_curcpu sys/arch/amd64/compile/obj/GENERIC_SYZKALLER/./machine/cpu.h:67 [inline] db_panic() at netbsd:db_panic+0xa3 sys/ddb/db_panic.c:57 vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336 isAlreadyReported() at netbsd:isAlreadyReported HandleTypeMismatch.part.1() at netbsd:HandleTypeMismatch.part.1+0x15b HandleTypeMismatch() at netbsd:HandleTypeMismatch+0x7b sys/../common/lib/libc/misc/ubsan.c:408 mutex_enter() at netbsd:mutex_enter+0x1457 sys/kern/kern_mutex.c:472 unp_accept() at netbsd:unp_accept+0x177 sys/kern/uipc_usrreq.c:849 soaccept() at netbsd:soaccept+0x12f sys/kern/uipc_socket.c:802 do_sys_accept() at netbsd:do_sys_accept+0x3de sys/kern/uipc_syscalls.c:244 sys_paccept() at netbsd:sys_paccept+0xdd sys/kern/uipc_syscalls.c:321 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) --- [ 41.0310743] Skipping crash dump on recursive panic [ 41.0310743] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/arch/amd64/amd64/db_machdep.c:154:14, member access within misaligned address 0x4 for type 'struct x86_64_frame' which requires 8 byte alignment [ 41.0310743] Faulted in mid-traceback; aborting... [ 41.0310743] fatal breakpoint trap in supervisor mode [ 41.0310743] trap type 1 code 0 rip 0xffffffff8021ddfd cs 0x8 rflags 0x282 cr2 0xffffa900a5ee2000 ilevel 0x8 rsp 0xffffa900a69265d0 [ 41.0310743] curlwp 0xfffff3b8ab5c6240 pid 548.4 lowest kstack 0xffffa900a69252c0 Stopped in pid 548.4 (syz-executor.0) at netbsd:breakpoint+0x5: leave