panic: kernel diagnostic assertion "pg->wire_count == 1" failed: file "/syzkaller/managers/main/kernel/sys/kern/vfs_biomem.c", line 310 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *361562 77606 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821dc23b) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82231e1a,ffffffff82245cfe,136,ffffffff8220e73e) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8051d20380) at buf_free_pages+0x1d3 sys/kern/vfs_biomem.c:299 buf_dealloc_mem(fffffd8051d20380) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:179 buf_put(fffffd8051d20380) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8051d20380) at brelse+0x27d sys/kern/vfs_bio.c:948 vinvalbuf(fffffd8057c144e8,2,ffffffffffffffff,ffff80001d7519d8,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1981 ffs_truncate(fffffd8057d080f8,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff80001e845ae8) at ufs_inactive+0x155 sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8057c144e8,ffff80001d7519d8) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd8057c144e8) at vrele+0xca sys/kern/vfs_subr.c:816 ktrsettrace(ffff8000fffff590,80000010,fffffd80543e89d0,fffffd806c3bfae0) at ktrsettrace+0xb3 sys/kern/kern_ktrace.c:124 ktrops(ffff80001d7519d8,ffff8000fffff590,0,80000010,fffffd80543e89d0,fffffd806c3bfae0) at ktrops+0x1a1 sys/kern/kern_ktrace.c:544 end trace frame: 0xffff80001e845d50, count: 0 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic kernel diagnostic assertion "pg->wire_count == 1" failed: file "/syzkaller/managers/main/kernel/sys/kern/vfs_biomem.c", line 310 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821dc23b) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82231e1a,ffffffff82245cfe,136,ffffffff8220e73e) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8051d20380) at buf_free_pages+0x1d3 sys/kern/vfs_biomem.c:299 buf_dealloc_mem(fffffd8051d20380) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:179 buf_put(fffffd8051d20380) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8051d20380) at brelse+0x27d sys/kern/vfs_bio.c:948 vinvalbuf(fffffd8057c144e8,2,ffffffffffffffff,ffff80001d7519d8,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1981 ffs_truncate(fffffd8057d080f8,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff80001e845ae8) at ufs_inactive+0x155 sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8057c144e8,ffff80001d7519d8) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd8057c144e8) at vrele+0xca sys/kern/vfs_subr.c:816 ktrsettrace(ffff8000fffff590,80000010,fffffd80543e89d0,fffffd806c3bfae0) at ktrsettrace+0xb3 sys/kern/kern_ktrace.c:124 ktrops(ffff80001d7519d8,ffff8000fffff590,0,80000010,fffffd80543e89d0,fffffd806c3bfae0) at ktrops+0x1a1 sys/kern/kern_ktrace.c:544 doktrace(fffffd80543e89d0,14,10,0,ffff80001d7519d8) at doktrace+0x60d ktrsetchildren sys/kern/kern_ktrace.c:566 [inline] doktrace(fffffd80543e89d0,14,10,0,ffff80001d7519d8) at doktrace+0x60d sys/kern/kern_ktrace.c:488 sys_ktrace(ffff80001d7519d8,ffff80001e845ea8,ffff80001e845ef0) at sys_ktrace+0xd5 sys/kern/kern_ktrace.c:529 syscall(ffff80001e845f70) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6fca01657d0, count: -18 ddb> show registers rdi 0xffffffff82114f97 db_enter+0x17 rsi 0xe109 __ALIGN_SIZE+0xd109 rbp 0xffff80001e8455e0 rbx 0xffff80001e845690 rdx 0xe10a __ALIGN_SIZE+0xd10a rcx 0xffff800020a31000 rax 0xffff800020a31000 r8 0xffff80001e8455a0 r9 0x1 r10 0xffff800000a03500 r11 0x5036efbc5fe179f0 r12 0x3000000008 r13 0xffff80001e8455f0 r14 0x100 r15 0x1 rip 0xffffffff82114f98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001e8455d0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=361562 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff80001d752ae8,0xffffffff825ace30 process=0xffff8000ffffb938 user=0xffff80001e841000, vmspace=0xfffffd8058a29ab0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 77606 258914 91699 0 2 0 syz-executor.0 *77606 361562 91699 0 7 0x4000000 syz-executor.0 18034 105571 0 0 3 0x14200 acct acct 91699 161066 64454 0 3 0x82 nanosleep syz-executor.0 40280 343855 0 0 3 0x14200 bored sosplice 46785 61172 64454 0 3 0x82 piperd syz-executor.1 64454 91012 25834 0 3 0x82 thrsleep syz-fuzzer 64454 344005 25834 0 3 0x4000082 nanosleep syz-fuzzer 64454 355078 25834 0 2 0x4000002 syz-fuzzer 64454 209327 25834 0 3 0x4000082 thrsleep syz-fuzzer 64454 208948 25834 0 3 0x4000082 thrsleep syz-fuzzer 64454 332388 25834 0 3 0x4000082 thrsleep syz-fuzzer 64454 335435 25834 0 3 0x4000082 thrsleep syz-fuzzer 64454 48625 25834 0 3 0x4000082 thrsleep syz-fuzzer 25834 131690 4100 0 3 0x10008a pause ksh 4100 131608 96974 0 3 0x92 select sshd 21023 92773 1 0 3 0x100083 ttyin getty 96974 487717 1 0 3 0x80 select sshd 71331 118501 40314 73 3 0x100090 kqread syslogd 40314 270560 1 0 3 0x100082 netio syslogd 27648 60480 1 77 3 0x100090 poll dhclient 34287 402580 1 0 3 0x80 poll dhclient 14046 260263 0 0 3 0x14200 bored smr 64588 204689 0 0 2 0x14200 zerothread 7957 44148 0 0 3 0x14200 aiodoned aiodoned 17305 237771 0 0 3 0x14200 syncer update 56957 237723 0 0 3 0x14200 cleaner cleaner 63867 176754 0 0 3 0x14200 reaper reaper 45699 159184 0 0 3 0x14200 pgdaemon pagedaemon 6369 428511 0 0 3 0x14200 bored crynlk 75238 509369 0 0 3 0x14200 bored crypto 27688 120279 0 0 3 0x40014200 acpi0 acpi0 83939 301166 0 0 3 0x14200 bored softnet 9408 57544 0 0 3 0x14200 bored systqmp 83415 509242 0 0 3 0x14200 bored systq 64070 334600 0 0 3 0x40014200 bored softclock 58535 222920 0 0 3 0x40014200 idle0 1 195362 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9512 6347K 6864K 78643K 12038 0 pcb 13 8K 8K 78643K 93 0 rtable 115 4K 4K 78643K 390 0 ifaddr 89 17K 18K 78643K 171 0 counters 21 16K 16K 78643K 36 0 ioctlops 0 0K 2K 78643K 39 0 iov 0 0K 12K 78643K 61 0 mount 1 1K 1K 78643K 1 0 vnodes 1225 77K 78K 78643K 1677 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 32 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 360 0 sigio 0 0K 0K 78643K 2 0 proc 49 38K 54K 78643K 423 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 29 0 in_multi 92 4K 4K 78643K 132 0 ether_multi 1 0K 0K 78643K 12 0 mrt 0 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 228 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 136 104K 104K 78643K 1711 0 UVM aobj 16 2K 2K 78643K 22 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 62 0 NDP 13 0K 0K 78643K 34 0 temp 110 3036K 3100K 78643K 26475 0 kqueue 3 4K 10K 78643K 34 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 9 0 3 1 0 1 1 0 8 0 rtpcb 80 158 0 156 1 0 1 1 0 8 0 rtentry 112 62 0 16 2 0 2 2 0 8 0 unpcb 120 238 0 230 1 0 1 1 0 8 0 syncache 264 10 0 10 3 3 0 1 0 8 0 tcpqe 32 185 0 185 1 1 0 1 0 8 0 tcpcb 544 148 0 144 2 0 2 2 0 8 1 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 90 0 90 1 1 0 1 0 8 0 inpcb 280 436 0 429 5 3 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 10 0 3 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 256 0 44 15 1 14 14 0 8 0 art_table 32 258 0 44 2 0 2 2 0 8 0 art_node 16 59 0 17 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 26 0 16 1 0 1 1 0 8 0 shmpl 112 20 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1955 0 561 88 0 88 88 0 8 0 ffsino 240 1955 0 561 83 0 83 83 0 8 0 nchpl 144 2672 0 1085 60 0 60 60 0 8 0 uvmvnodes 72 2334 0 0 43 0 43 43 0 8 0 vnodes 208 2334 0 0 123 0 123 123 0 8 0 namei 1024 7600 0 7600 5 4 1 1 0 8 1 vcpupl 1984 9 0 0 2 0 2 2 0 8 0 vmpool 528 9 0 0 1 0 1 1 0 8 0 scxspl 192 24803 0 24803 6 5 1 1 0 8 1 plimitpl 152 37 0 30 1 0 1 1 0 8 0 sigapl 424 545 0 515 4 0 4 4 0 8 0 futexpl 56 7471 0 7471 4 3 1 1 0 8 1 knotepl 112 114 0 95 1 0 1 1 0 8 0 kqueuepl 144 78 0 73 1 0 1 1 0 8 0 pipelkpl 16 128 0 118 1 0 1 1 0 8 0 pipepl 120 256 0 237 1 0 1 1 0 8 0 fdescpl 432 529 0 515 2 0 2 2 0 8 0 filepl 120 3678 0 3582 5 1 4 4 0 8 1 lockfpl 104 164 0 163 1 0 1 1 0 8 0 lockfspl 48 76 0 75 1 0 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 22 0 12 1 0 1 1 0 8 0 ucredpl 96 565 0 558 1 0 1 1 0 8 0 zombiepl 144 515 0 515 2 1 1 1 0 8 1 processpl 920 545 0 515 4 0 4 4 0 8 0 procpl 624 949 0 911 4 0 4 4 0 8 0 sosppl 128 6 0 6 3 3 0 1 0 8 0 sockpl 400 834 0 817 8 4 4 4 0 8 2 mcl64k 65536 37 0 37 5 4 1 1 0 8 1 mcl16k 16384 3 0 3 1 1 0 1 0 8 0 mcl12k 12288 8 0 8 3 3 0 1 0 8 0 mcl9k 9216 3 0 3 2 2 0 1 0 8 0 mcl8k 8192 4 0 4 1 1 0 1 0 8 0 mcl4k 4096 38 0 38 5 4 1 1 0 8 1 mcl2k2 2112 2 0 2 2 2 0 1 0 8 0 mcl2k 2048 63486 0 63440 20 13 7 17 0 8 0 mtagpl 80 162 0 32 4 1 3 3 0 8 0 mbufpl 256 104207 0 103868 36 14 22 29 0 8 0 bufpl 280 5913 0 552 384 0 384 384 0 8 0 anonpl 16 76432 0 62579 99 38 61 73 0 107 0 amapchunkpl 152 3497 0 3348 38 31 7 20 0 158 0 amappl16 192 2518 0 1689 55 13 42 46 0 8 0 amappl15 184 31 0 28 1 0 1 1 0 8 0 amappl14 176 73 0 68 1 0 1 1 0 8 0 amappl13 168 265 0 262 1 0 1 1 0 8 0 amappl12 160 42 0 38 2 1 1 1 0 8 0 amappl11 152 51 0 41 1 0 1 1 0 8 0 amappl10 144 22 0 17 1 0 1 1 0 8 0 amappl9 136 381 0 379 1 0 1 1 0 8 0 amappl8 128 329 0 295 2 0 2 2 0 8 0 amappl7 120 113 0 100 1 0 1 1 0 8 0 amappl6 112 24 0 19 1 0 1 1 0 8 0 amappl5 104 463 0 450 1 0 1 1 0 8 0 amappl4 96 677 0 648 1 0 1 1 0 8 0 amappl3 88 153 0 148 1 0 1 1 0 8 0 amappl2 80 3340 0 3273 2 0 2 2 0 8 0 amappl1 72 19038 0 18626 23 14 9 17 0 8 0 amappl 80 1196 0 1148 3 1 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 64 21 0 6 1 0 1 1 0 8 0 uaddrrnd 24 538 0 515 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 538 0 515 1 0 1 1 0 8 0 vmmpekpl 168 7341 0 7310 2 0 2 2 0 8 0 vmmpepl 168 69631 0 67712 139 54 85 105 0 357 1 vmsppl 272 537 0 515 3 1 2 2 0 8 0 pdppl 4096 1082 0 1039 8 2 6 6 0 8 0 pvpl 32 276308 0 259437 360 212 148 281 0 265 2 pmappl 200 537 0 515 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 291 0 51 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821dc23b) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82231e1a,ffffffff82245cfe,136,ffffffff8220e73e) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8051d20380) at buf_free_pages+0x1d3 sys/kern/vfs_biomem.c:299 buf_dealloc_mem(fffffd8051d20380) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:179 buf_put(fffffd8051d20380) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8051d20380) at brelse+0x27d sys/kern/vfs_bio.c:948 vinvalbuf(fffffd8057c144e8,2,ffffffffffffffff,ffff80001d7519d8,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1981 ffs_truncate(fffffd8057d080f8,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff80001e845ae8) at ufs_inactive+0x155 sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8057c144e8,ffff80001d7519d8) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd8057c144e8) at vrele+0xca sys/kern/vfs_subr.c:816 ktrsettrace(ffff8000fffff590,80000010,fffffd80543e89d0,fffffd806c3bfae0) at ktrsettrace+0xb3 sys/kern/kern_ktrace.c:124 ktrops(ffff80001d7519d8,ffff8000fffff590,0,80000010,fffffd80543e89d0,fffffd806c3bfae0) at ktrops+0x1a1 sys/kern/kern_ktrace.c:544 doktrace(fffffd80543e89d0,14,10,0,ffff80001d7519d8) at doktrace+0x60d ktrsetchildren sys/kern/kern_ktrace.c:566 [inline] doktrace(fffffd80543e89d0,14,10,0,ffff80001d7519d8) at doktrace+0x60d sys/kern/kern_ktrace.c:488 sys_ktrace(ffff80001d7519d8,ffff80001e845ea8,ffff80001e845ef0) at sys_ktrace+0xd5 sys/kern/kern_ktrace.c:529 syscall(ffff80001e845f70) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6fca01657d0, count: -18 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821dc23b) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82231e1a,ffffffff82245cfe,136,ffffffff8220e73e) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8051d20380) at buf_free_pages+0x1d3 sys/kern/vfs_biomem.c:299 buf_dealloc_mem(fffffd8051d20380) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:179 buf_put(fffffd8051d20380) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8051d20380) at brelse+0x27d sys/kern/vfs_bio.c:948 vinvalbuf(fffffd8057c144e8,2,ffffffffffffffff,ffff80001d7519d8,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1981 ffs_truncate(fffffd8057d080f8,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff80001e845ae8) at ufs_inactive+0x155 sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8057c144e8,ffff80001d7519d8) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd8057c144e8) at vrele+0xca sys/kern/vfs_subr.c:816 ktrsettrace(ffff8000fffff590,80000010,fffffd80543e89d0,fffffd806c3bfae0) at ktrsettrace+0xb3 sys/kern/kern_ktrace.c:124 ktrops(ffff80001d7519d8,ffff8000fffff590,0,80000010,fffffd80543e89d0,fffffd806c3bfae0) at ktrops+0x1a1 sys/kern/kern_ktrace.c:544 doktrace(fffffd80543e89d0,14,10,0,ffff80001d7519d8) at doktrace+0x60d ktrsetchildren sys/kern/kern_ktrace.c:566 [inline] doktrace(fffffd80543e89d0,14,10,0,ffff80001d7519d8) at doktrace+0x60d sys/kern/kern_ktrace.c:488 sys_ktrace(ffff80001d7519d8,ffff80001e845ea8,ffff80001e845ef0) at sys_ktrace+0xd5 sys/kern/kern_ktrace.c:529 syscall(ffff80001e845f70) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6fca01657d0, count: -18