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(ffffffff830afb12) at panic+0x1ba sys/kern/subr_prf.c:229 __assert(ffffffff83067464,ffffffff83077cc6,136,ffffffff82ff26ea) at __assert+0x29 buf_free_pages(fffffd806948a118) at buf_free_pages+0x23d sys/kern/vfs_biomem.c:299 buf_dealloc_mem(fffffd806948a118) at buf_dealloc_mem+0x14e sys/kern/vfs_biomem.c:179 buf_put(fffffd806948a118) at buf_put+0x1dc sys/kern/vfs_bio.c:127 brelse(fffffd806948a118) at brelse+0x395 sys/kern/vfs_bio.c:944 vinvalbuf(fffffd806efbdc28,2,fffffd807f7d7750,ffff80002a4a2f60,0,ffffffffffffffff) at vinvalbuf+0x52c sys/kern/vfs_subr.c:2022 ffs_truncate(fffffd805b44f100,0,4,fffffd807f7d7750) at ffs_truncate+0xf63 ufs_rmdir(ffff80003762d838) at ufs_rmdir+0x374 sys/ufs/ufs/ufs_vnops.c:1265 VOP_RMDIR(fffffd806e58e610,fffffd806efbdc28,ffff80003762d918) at VOP_RMDIR+0x19a sys/kern/vfs_vops.c:413 dounlinkat(ffff80002a4a2f60,ffffff9c,74e7c855dd30,8) at dounlinkat+0x2e0 sys/kern/vfs_syscalls.c:1885 syscall(ffff80003762da90) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x74e7c855dd20, count: 244 End of stack trace.