[ 50.8888519] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/net/rtsock_shared.c:631:41, member access within misaligned address 0xfffff3a7735c340c for type 'struct rt_msghdr' which requires 8 byte alignment [ 50.9145628] cpu0: Begin traceback... [ 50.9389469] vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336 [ 50.9990876] isAlreadyReported() at netbsd:isAlreadyReported [ 51.0592294] HandleTypeMismatch.part.1() at netbsd:HandleTypeMismatch.part.1+0xcc [ 51.1193722] HandleTypeMismatch() at netbsd:HandleTypeMismatch+0x7b sys/../common/lib/libc/misc/ubsan.c:408 [ 51.1895396] route_output() at netbsd:route_output+0x17df sys/net/rtsock_shared.c:631 [ 51.2496821] raw_send() at netbsd:raw_send+0x20b sys/net/raw_usrreq.c:182 [ 51.3198485] route_send_wrapper() at netbsd:route_send_wrapper+0x9f route_send sys/net/rtsock_shared.c:464 [inline] [ 51.3198485] route_send_wrapper() at netbsd:route_send_wrapper+0x9f sys/net/rtsock_shared.c:1661 [ 51.3799889] sosend() at netbsd:sosend+0x15ac sys/kern/uipc_socket.c:1059 [ 51.4301137] soo_write() at netbsd:soo_write+0x88 sys/kern/sys_socket.c:122 [ 51.4902513] do_filewritev.part.1() at netbsd:do_filewritev.part.1+0x415 [ 51.5503966] sys_writev() at netbsd:sys_writev+0x54 do_filewritev sys/kern/sys_generic.c:381 [inline] [ 51.5503966] sys_writev() at netbsd:sys_writev+0x54 sys/kern/sys_generic.c:381 [ 51.6105547] sys___syscall() at netbsd:sys___syscall+0x1c8 sy_call sys/sys/syscallvar.h:65 [inline] [ 51.6105547] sys___syscall() at netbsd:sys___syscall+0x1c8 sys/kern/sys_syscall.c:77 [ 51.6706834] syscall() at netbsd:syscall+0x29a sy_call sys/sys/syscallvar.h:65 [inline] [ 51.6706834] syscall() at netbsd:syscall+0x29a sy_invoke sys/sys/syscallvar.h:94 [inline] [ 51.6706834] syscall() at netbsd:syscall+0x29a sys/arch/x86/x86/syscall.c:138 [ 51.6907338] --- syscall (number 198) --- [ 51.6907338] Skipping crash dump on recursive panic [ 51.7054357] 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 [ 51.7273057] Faulted in mid-traceback; aborting... [ 51.7321812] fatal breakpoint trap in supervisor mode [ 51.7321812] trap type 1 code 0 rip 0xffffffff8021e7cd cs 0x8 rflags 0x286 cr2 0x7f7ff7eef000 ilevel 0x4 rsp 0xffffaa00b2c3d6a0 [ 51.7489251] curlwp 0xfffff3a7857e41e0 pid 619.3 lowest kstack 0xffffaa00b2c3b2c0 Stopped in pid 619.3 (syz-executor.5) 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 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 route_output() at netbsd:route_output+0x17df sys/net/rtsock_shared.c:631 raw_send() at netbsd:raw_send+0x20b sys/net/raw_usrreq.c:182 route_send_wrapper() at netbsd:route_send_wrapper+0x9f route_send sys/net/rtsock_shared.c:464 [inline] route_send_wrapper() at netbsd:route_send_wrapper+0x9f sys/net/rtsock_shared.c:1661 sosend() at netbsd:sosend+0x15ac sys/kern/uipc_socket.c:1059 soo_write() at netbsd:soo_write+0x88 sys/kern/sys_socket.c:122 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) --- [ 51.7563810] Skipping crash dump on recursive panic [ 51.7563810] 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 [ 51.7563810] Faulted in mid-traceback; aborting... [ 51.7563810] fatal breakpoint trap in supervisor mode [ 51.7563810] trap type 1 code 0 rip 0xffffffff8021e7cd cs 0x8 rflags 0x286 cr2 0x7f7ff7eef000 ilevel 0x8 rsp 0xffffaa00b2c3c3a0 [ 51.7563810] curlwp 0xfffff3a7857e41e0 pid 619.3 lowest kstack 0xffffaa00b2c3b2c0 Stopped in pid 619.3 (syz-executor.5) at netbsd:breakpoint+0x5: leave