[ 85.7605485] 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' [ 85.7850928] cpu1: Begin traceback... [ 85.8096551] vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336 [ 85.8833208] isAlreadyReported() at netbsd:isAlreadyReported [ 85.9569895] HandleTypeMismatch.part.1() at netbsd:HandleTypeMismatch.part.1+0x15b [ 86.0183746] HandleTypeMismatch() at netbsd:HandleTypeMismatch+0x7b sys/../common/lib/libc/misc/ubsan.c:408 [ 86.0920444] mutex_enter() at netbsd:mutex_enter+0x1457 sys/kern/kern_mutex.c:472 [ 86.1657107] unp_accept() at netbsd:unp_accept+0x177 sys/kern/uipc_usrreq.c:849 [ 86.2393783] soaccept() at netbsd:soaccept+0x12f sys/kern/uipc_socket.c:802 [ 86.3007665] do_sys_accept() at netbsd:do_sys_accept+0x3de sys/kern/uipc_syscalls.c:244 [ 86.3621572] sys_paccept() at netbsd:sys_paccept+0xdd sys/kern/uipc_syscalls.c:321 [ 86.4235488] sys___syscall() at netbsd:sys___syscall+0x1c8 sy_call sys/sys/syscallvar.h:65 [inline] [ 86.4235488] sys___syscall() at netbsd:sys___syscall+0x1c8 sys/kern/sys_syscall.c:77 [ 86.4972144] syscall() at netbsd:syscall+0x29a sy_call sys/sys/syscallvar.h:65 [inline] [ 86.4972144] syscall() at netbsd:syscall+0x29a sy_invoke sys/sys/syscallvar.h:94 [inline] [ 86.4972144] syscall() at netbsd:syscall+0x29a sys/arch/x86/x86/syscall.c:138 [ 86.5217700] --- syscall (number 198) --- [ 86.5217700] Skipping crash dump on recursive panic [ 86.5340449] 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 [ 86.5586940] Faulted in mid-traceback; aborting... [ 86.5586940] fatal breakpoint trap in supervisor mode [ 86.5708822] trap type 1 code 0 rip 0xffffffff8021ddbd cs 0x8 rflags 0x282 cr2 0x7d95b7e10ff8 ilevel 0 rsp 0xffff8080b3b558d0 [ 86.5831565] curlwp 0xfffff24be04cf760 pid 1395.3 lowest kstack 0xffff8080b3b532c0 Stopped in pid 1395.3 (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) --- [ 86.5954419] Skipping crash dump on recursive panic [ 86.5954419] 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 [ 86.5954419] Faulted in mid-traceback; aborting... [ 86.5954419] fatal breakpoint trap in supervisor mode [ 86.5954419] trap type 1 code 0 rip 0xffffffff8021ddbd cs 0x8 rflags 0x282 cr2 0x7d95b7e10ff8 ilevel 0x8 rsp 0xffff8080b3b545d0 [ 86.5954419] curlwp 0xfffff24be04cf760 pid 1395.3 lowest kstack 0xffff8080b3b532c0 Stopped in pid 1395.3 (syz-executor.0) at netbsd:breakpoint+0x5: leave