[ 40.8396029] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/net/rtsock_shared.c:631:41, member access within misaligned address 0xffffab1124c9b68c for type 'struct rt_msghdr50' which requires 8 byte alignment [ 40.8396029] cpu1: Begin traceback... [ 40.8596284] vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336 [ 40.9097245] isAlreadyReported() at netbsd:isAlreadyReported [ 40.9598224] HandleTypeMismatch.part.1() at netbsd:HandleTypeMismatch.part.1+0xcc [ 41.0099162] HandleTypeMismatch() at netbsd:HandleTypeMismatch+0x7b sys/../common/lib/libc/misc/ubsan.c:408 [ 41.0600199] compat_50_route_output() at netbsd:compat_50_route_output+0x1a4a sys/net/rtsock_shared.c:631 [ 41.1101142] raw_send() at netbsd:raw_send+0x20b sys/net/raw_usrreq.c:182 [ 41.1602084] compat_50_route_send_wrapper() at netbsd:compat_50_route_send_wrapper+0x9f compat_50_route_send sys/net/rtsock_shared.c:464 [inline] [ 41.1602084] compat_50_route_send_wrapper() at netbsd:compat_50_route_send_wrapper+0x9f sys/net/rtsock_shared.c:1663 [ 41.2103093] sosend() at netbsd:sosend+0x15ac sys/kern/uipc_socket.c:1059 [ 41.2503862] soo_write() at netbsd:soo_write+0x88 sys/kern/sys_socket.c:122 [ 41.3004858] do_filewritev.part.1() at netbsd:do_filewritev.part.1+0x415 [ 41.3505766] sys_writev() at netbsd:sys_writev+0x54 do_filewritev sys/kern/sys_generic.c:381 [inline] [ 41.3505766] sys_writev() at netbsd:sys_writev+0x54 sys/kern/sys_generic.c:381 [ 41.4006757] sys___syscall() at netbsd:sys___syscall+0x1c8 sy_call sys/sys/syscallvar.h:65 [inline] [ 41.4006757] sys___syscall() at netbsd:sys___syscall+0x1c8 sys/kern/sys_syscall.c:77 [ 41.4507702] syscall() at netbsd:syscall+0x29a sy_call sys/sys/syscallvar.h:65 [inline] [ 41.4507702] syscall() at netbsd:syscall+0x29a sy_invoke sys/sys/syscallvar.h:94 [inline] [ 41.4507702] syscall() at netbsd:syscall+0x29a sys/arch/x86/x86/syscall.c:138 [ 41.4708097] --- syscall (number 198) --- [ 41.4708097] Skipping crash dump on recursive panic [ 41.4708097] 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 [ 41.5008672] Faulted in mid-traceback; aborting... [ 41.5008672] fatal breakpoint trap in supervisor mode [ 41.5108861] trap type 1 code 0 rip 0xffffffff8021e7cd cs 0x8 rflags 0x286 cr2 0x7311c3830000 ilevel 0x4 rsp 0xffffba00b1de16a0 [ 41.5209065] curlwp 0xffffab1134a1f4a0 pid 631.4 lowest kstack 0xffffba00b1ddf2c0 Stopped in pid 631.4 (syz-executor.4) 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 compat_50_route_output() at netbsd:compat_50_route_output+0x1a4a sys/net/rtsock_shared.c:631 raw_send() at netbsd:raw_send+0x20b sys/net/raw_usrreq.c:182 compat_50_route_send_wrapper() at netbsd:compat_50_route_send_wrapper+0x9f compat_50_route_send sys/net/rtsock_shared.c:464 [inline] compat_50_route_send_wrapper() at netbsd:compat_50_route_send_wrapper+0x9f sys/net/rtsock_shared.c:1663 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) --- [ 41.5209065] Skipping crash dump on recursive panic [ 41.5209065] 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 [ 41.5209065] Faulted in mid-traceback; aborting... [ 41.5209065] fatal breakpoint trap in supervisor mode [ 41.5209065] trap type 1 code 0 rip 0xffffffff8021e7cd cs 0x8 rflags 0x286 cr2 0x7311c3830000 ilevel 0x8 rsp 0xffffba00b1de03a0 [ 41.5209065] curlwp 0xffffab1134a1f4a0 pid 631.4 lowest kstack 0xffffba00b1ddf2c0 Stopped in pid 631.4 (syz-executor.4) at netbsd:breakpoint+0x5: leave