panic: kernel diagnostic assertion "pg->wire_count == 1" failed: file "/syzkaller/managers/main/kernel/sys/kern/vfs_biomem.c", line 310 Starting stack trace... panic(ffffffff830b085d) at panic+0x1ba sys/kern/subr_prf.c:229 __assert(ffffffff83066e73,ffffffff83073d18,136,ffffffff82fefcf8) at __assert+0x29 buf_free_pages(fffffd806ef9f008) at buf_free_pages+0x23d sys/kern/vfs_biomem.c:299 buf_dealloc_mem(fffffd806ef9f008) at buf_dealloc_mem+0x14e sys/kern/vfs_biomem.c:179 buf_put(fffffd806ef9f008) at buf_put+0x1dc sys/kern/vfs_bio.c:127 brelse(fffffd806ef9f008) at brelse+0x395 sys/kern/vfs_bio.c:944 vinvalbuf(fffffd806f8fe1d0,2,ffffffffffffffff,ffff80002a4af968,0,ffffffffffffffff) at vinvalbuf+0x52c sys/kern/vfs_subr.c:2022 ffs_truncate(fffffd8060ec03c0,0,0,ffffffffffffffff) at ffs_truncate+0xf63 ufs_inactive(ffff80002f1b7178) at ufs_inactive+0x203 sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd806f8fe1d0,ffff80002a4af968) at VOP_INACTIVE+0xfe sys/kern/vfs_vops.c:495 vrele(fffffd806f8fe1d0) at vrele+0x120 sys/kern/vfs_subr.c:824 ktrsettrace(ffff80002a465128,a0c7df9b,fffffd8072403b18,fffffd807f7d7820) at ktrsettrace+0xe7 sys/kern/kern_ktrace.c:122 ktrops(ffff80002a4af968,ffff80002a465128,0,a0c7df9b,fffffd8072403b18,fffffd807f7d7820) at ktrops+0x271 sys/kern/kern_ktrace.c:564 doktrace(fffffd8072403b18,4,20c7df9b,0,ffff80002a4af968) at doktrace+0x6dd ktrsetchildren sys/kern/kern_ktrace.c:586 [inline] doktrace(fffffd8072403b18,4,20c7df9b,0,ffff80002a4af968) at doktrace+0x6dd sys/kern/kern_ktrace.c:508 sys_ktrace(ffff80002a4af968,ffff80002f1b75e0,ffff80002f1b7530) at sys_ktrace+0x11c sys/kern/kern_ktrace.c:549 syscall(ffff80002f1b75e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd9224e29220, count: 240 End of stack trace.