[ 42.8017021] panic: kernel diagnostic assertion "pg->offset >= nextoff" failed: file "/syzkaller/managers/netbsd-kubsan/kernel/sys/miscfs/genfs/genfs_io.c", line 972 [ 42.8216472] cpu1: Begin traceback... [ 42.8316307] vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336 [ 42.8715330] kern_assert() at netbsd:kern_assert+0x63 [ 42.9014631] genfs_do_putpages() at netbsd:genfs_do_putpages+0xbfb sys/miscfs/genfs/genfs_io.c:972 [ 42.9413680] VOP_PUTPAGES() at netbsd:VOP_PUTPAGES+0x112 sys/kern/vnode_if.c:1632 [ 42.9712996] ffs_write() at netbsd:ffs_write+0x872 sys/ufs/ufs/ufs_readwrite.c:438 [ 43.0112058] VOP_WRITE() at netbsd:VOP_WRITE+0x108 sys/kern/vnode_if.c:506 [ 43.0511126] vn_write() at netbsd:vn_write+0x277 sys/kern/vfs_vnops.c:609 [ 43.0910216] do_filewritev.part.1() at netbsd:do_filewritev.part.1+0x415 [ 43.1309272] sys_writev() at netbsd:sys_writev+0x54 do_filewritev sys/kern/sys_generic.c:381 [inline] [ 43.1309272] sys_writev() at netbsd:sys_writev+0x54 sys/kern/sys_generic.c:381 [ 43.1608562] sys___syscall() at netbsd:sys___syscall+0x1c8 sy_call sys/sys/syscallvar.h:65 [inline] [ 43.1608562] sys___syscall() at netbsd:sys___syscall+0x1c8 sys/kern/sys_syscall.c:77 [ 43.2007649] syscall() at netbsd:syscall+0x29a sy_call sys/sys/syscallvar.h:65 [inline] [ 43.2007649] syscall() at netbsd:syscall+0x29a sy_invoke sys/sys/syscallvar.h:94 [inline] [ 43.2007649] syscall() at netbsd:syscall+0x29a sys/arch/x86/x86/syscall.c:138 [ 43.2107404] --- syscall (number 198) --- [ 43.2207182] Skipping crash dump on recursive panic [ 43.2207182] 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 [ 43.2406675] Faulted in mid-traceback; aborting... [ 43.2506447] fatal breakpoint trap in supervisor mode [ 43.2506447] trap type 1 code 0 rip 0xffffffff8021dd9d cs 0x8 rflags 0x286 cr2 0x20010000 ilevel 0 rsp 0xffffa900a60c2b10 [ 43.2606214] curlwp 0xffffec0610a4f580 pid 646.3 lowest kstack 0xffffa900a60c02c0 Stopped in pid 646.3 (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+0x872 sys/ufs/ufs/ufs_readwrite.c:438 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) --- [ 43.2705971] Skipping crash dump on recursive panic [ 43.2705971] 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 [ 43.2705971] Faulted in mid-traceback; aborting... [ 43.2705971] fatal breakpoint trap in supervisor mode [ 43.2705971] trap type 1 code 0 rip 0xffffffff8021dd9d cs 0x8 rflags 0x286 cr2 0x20010000 ilevel 0x8 rsp 0xffffa900a60c1810 [ 43.2705971] curlwp 0xffffec0610a4f580 pid 646.3 lowest kstack 0xffffa900a60c02c0 Stopped in pid 646.3 (syz-executor.0) at netbsd:breakpoint+0x5: leave