[ 108.8058953] panic: kernel diagnostic assertion "pg->offset >= nextoff" failed: file "/syzkaller/managers/netbsd-kubsan/kernel/sys/miscfs/genfs/genfs_io.c", line 972 [ 108.8221599] cpu0: Begin traceback... [ 108.8459019] vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336 [ 108.8959117] kern_assert() at netbsd:kern_assert+0x63 [ 108.9459101] genfs_do_putpages() at netbsd:genfs_do_putpages+0xbfb sys/miscfs/genfs/genfs_io.c:972 [ 109.0059173] VOP_PUTPAGES() at netbsd:VOP_PUTPAGES+0x112 sys/kern/vnode_if.c:1632 [ 109.0559291] ffs_write() at netbsd:ffs_write+0xd08 sys/ufs/ufs/ufs_readwrite.c:342 [ 109.1059323] VOP_WRITE() at netbsd:VOP_WRITE+0x108 sys/kern/vnode_if.c:506 [ 109.1759440] vn_write() at netbsd:vn_write+0x277 sys/kern/vfs_vnops.c:609 [ 109.2359514] do_filewritev.part.1() at netbsd:do_filewritev.part.1+0x415 [ 109.2859628] sys_writev() at netbsd:sys_writev+0x54 do_filewritev sys/kern/sys_generic.c:381 [inline] [ 109.2859628] sys_writev() at netbsd:sys_writev+0x54 sys/kern/sys_generic.c:381 [ 109.3359688] sys___syscall() at netbsd:sys___syscall+0x1c8 sy_call sys/sys/syscallvar.h:65 [inline] [ 109.3359688] sys___syscall() at netbsd:sys___syscall+0x1c8 sys/kern/sys_syscall.c:77 [ 109.3959751] syscall() at netbsd:syscall+0x29a sy_call sys/sys/syscallvar.h:65 [inline] [ 109.3959751] syscall() at netbsd:syscall+0x29a sy_invoke sys/sys/syscallvar.h:94 [inline] [ 109.3959751] syscall() at netbsd:syscall+0x29a sys/arch/x86/x86/syscall.c:138 [ 109.4159779] --- syscall (number 198) --- [ 109.4159779] Skipping crash dump on recursive panic [ 109.4309336] 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 [ 109.4519420] Faulted in mid-traceback; aborting... [ 109.4569197] fatal breakpoint trap in supervisor mode [ 109.4569197] trap type 1 code 0 rip 0xffffffff8021dd9d cs 0x8 rflags 0x286 cr2 0x20000140 ilevel 0 rsp 0xffff9280b2ce6b10 [ 109.4727051] curlwp 0xffff8b46cbb1ea60 pid 623.4 lowest kstack 0xffff9280b2ce42c0 Stopped in pid 623.4 (syz-executor.0) 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 genfs_do_putpages() at netbsd:genfs_do_putpages+0xbfb sys/miscfs/genfs/genfs_io.c:972 VOP_PUTPAGES() at netbsd:VOP_PUTPAGES+0x112 sys/kern/vnode_if.c:1632 ffs_write() at netbsd:ffs_write+0xd08 sys/ufs/ufs/ufs_readwrite.c:342 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) --- [ 109.4800719] Skipping crash dump on recursive panic [ 109.4800719] 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 [ 109.4800719] Faulted in mid-traceback; aborting... [ 109.4800719] fatal breakpoint trap in supervisor mode [ 109.4800719] trap type 1 code 0 rip 0xffffffff8021dd9d cs 0x8 rflags 0x286 cr2 0x20000140 ilevel 0x8 rsp 0xffff9280b2ce5810 [ 109.4800719] curlwp 0xffff8b46cbb1ea60 pid 623.4 lowest kstack 0xffff9280b2ce42c0 Stopped in pid 623.4 (syz-executor.0) at netbsd:breakpoint+0x5: leave