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 *117405 51650 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821dd9a9) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82233e0f,ffffffff8224a523,136,ffffffff82212125) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8057c25140) at buf_free_pages+0x1d3 sys/kern/vfs_biomem.c:299 buf_dealloc_mem(fffffd8057c25140) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:179 buf_put(fffffd8057c25140) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8057c25140) at brelse+0x27d sys/kern/vfs_bio.c:948 vinvalbuf(fffffd8059c35010,2,ffffffffffffffff,ffff80001d7414f8,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1981 ffs_truncate(fffffd8057ffdf08,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff80001d7d7dd8) at ufs_inactive+0x155 sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8059c35010,ffff80001d7414f8) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd8059c35010) at vrele+0xca sys/kern/vfs_subr.c:816 ktrsettrace(ffff8000ffffa010,80000100,fffffd8058ae5820,fffffd806c3bfba0) at ktrsettrace+0xb3 sys/kern/kern_ktrace.c:124 ktrops(ffff80001d7414f8,ffff8000ffffa010,0,80000100,fffffd8058ae5820,fffffd806c3bfba0) at ktrops+0x1a1 sys/kern/kern_ktrace.c:544 end trace frame: 0xffff80001d7d8040, 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(ffffffff821dd9a9) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82233e0f,ffffffff8224a523,136,ffffffff82212125) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8057c25140) at buf_free_pages+0x1d3 sys/kern/vfs_biomem.c:299 buf_dealloc_mem(fffffd8057c25140) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:179 buf_put(fffffd8057c25140) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8057c25140) at brelse+0x27d sys/kern/vfs_bio.c:948 vinvalbuf(fffffd8059c35010,2,ffffffffffffffff,ffff80001d7414f8,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1981 ffs_truncate(fffffd8057ffdf08,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff80001d7d7dd8) at ufs_inactive+0x155 sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8059c35010,ffff80001d7414f8) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd8059c35010) at vrele+0xca sys/kern/vfs_subr.c:816 ktrsettrace(ffff8000ffffa010,80000100,fffffd8058ae5820,fffffd806c3bfba0) at ktrsettrace+0xb3 sys/kern/kern_ktrace.c:124 ktrops(ffff80001d7414f8,ffff8000ffffa010,0,80000100,fffffd8058ae5820,fffffd806c3bfba0) at ktrops+0x1a1 sys/kern/kern_ktrace.c:544 doktrace(fffffd8058ae5820,4,100,0,ffff80001d7414f8) at doktrace+0x60d ktrsetchildren sys/kern/kern_ktrace.c:566 [inline] doktrace(fffffd8058ae5820,4,100,0,ffff80001d7414f8) at doktrace+0x60d sys/kern/kern_ktrace.c:488 sys_ktrace(ffff80001d7414f8,ffff80001d7d8198,ffff80001d7d81e0) at sys_ktrace+0xd5 sys/kern/kern_ktrace.c:529 syscall(ffff80001d7d8260) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc1a61f4ed10, count: -18 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d7d78d0 rbx 0xffff80001d7d7980 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8176a20f kprintf+0x15f r9 0x1 r10 0x2 r11 0x2e986c0a4dd9689e r12 0x3000000008 r13 0xffff80001d7d78e0 r14 0x100 r15 0x1 rip 0xffffffff8134cc68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d7d78c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=117405 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff80001d742398,0xffffffff8258ebe8 process=0xffff8000ffffa740 user=0xffff80001d7d3000, vmspace=0xfffffd8057f57ee0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 51650 138920 75348 0 2 0 syz-executor.1 *51650 117405 75348 0 7 0x4000000 syz-executor.1 75348 309233 95651 0 3 0x82 nanosleep syz-executor.1 83569 208201 95651 0 3 0x82 piperd syz-executor.0 74089 293807 0 0 3 0x14200 bored sosplice 95651 102752 41655 0 2 0x2 syz-fuzzer 95651 200502 41655 0 3 0x4000082 nanosleep syz-fuzzer 95651 381290 41655 0 3 0x4000082 thrsleep syz-fuzzer 95651 261564 41655 0 3 0x4000082 thrsleep syz-fuzzer 95651 28812 41655 0 3 0x4000082 thrsleep syz-fuzzer 95651 22110 41655 0 3 0x4000082 thrsleep syz-fuzzer 95651 339589 41655 0 3 0x4000082 thrsleep syz-fuzzer 95651 167332 41655 0 2 0x4000002 syz-fuzzer 41655 184007 22714 0 3 0x10008a pause ksh 22714 241358 83070 0 3 0x92 select sshd 3594 290627 1 0 3 0x100083 ttyopn getty 83070 472647 1 0 3 0x80 select sshd 53138 351635 94184 73 3 0x100090 kqread syslogd 94184 132800 1 0 3 0x100082 netio syslogd 69951 463238 1 77 3 0x100090 poll dhclient 29504 308464 1 0 3 0x80 poll dhclient 92891 135823 0 0 3 0x14200 bored smr 95124 349936 0 0 2 0x14200 zerothread 11797 299863 0 0 3 0x14200 aiodoned aiodoned 18906 110026 0 0 3 0x14200 syncer update 17896 104940 0 0 3 0x14200 cleaner cleaner 57450 121122 0 0 3 0x14200 reaper reaper 75140 332214 0 0 3 0x14200 pgdaemon pagedaemon 55185 19305 0 0 3 0x14200 bored crynlk 5569 334942 0 0 3 0x14200 bored crypto 15984 175333 0 0 3 0x40014200 acpi0 acpi0 99061 52895 0 0 3 0x14200 bored softnet 5922 262404 0 0 3 0x14200 bored systqmp 36318 321142 0 0 3 0x14200 bored systq 40696 187668 0 0 3 0x40014200 bored softclock 74240 502190 0 0 3 0x40014200 idle0 1 423346 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 9524 6352K 6793K 78643K 11331 0 pcb 13 8K 8K 78643K 49 0 rtable 99 2K 3K 78643K 405 0 ifaddr 83 15K 16K 78643K 139 0 counters 21 16K 16K 78643K 28 0 ioctlops 0 0K 2K 78643K 27 0 iov 0 0K 12K 78643K 255 0 mount 1 1K 1K 78643K 1 0 vnodes 1226 77K 77K 78643K 1659 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 52 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 493 0 sigio 0 0K 0K 78643K 4 0 proc 49 38K 63K 78643K 541 0 subproc 32 2K 2K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 10 0 in_multi 72 3K 4K 78643K 138 0 ether_multi 1 0K 0K 78643K 9 0 mrt 0 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 262 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 125 39K 43K 78643K 1994 0 UVM aobj 13 2K 2K 78643K 15 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 36 0 NDP 15 0K 0K 78643K 35 0 temp 121 3033K 3097K 78643K 77555 0 kqueue 3 4K 12K 78643K 27 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 14 0 8 1 0 1 1 0 8 0 rtpcb 80 45 0 43 1 0 1 1 0 8 0 rtentry 112 94 0 53 2 0 2 2 0 8 0 unpcb 120 141 0 133 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 48 0 48 1 1 0 1 0 8 0 tcpcb 544 78 0 74 1 0 1 1 0 8 0 ipq 40 5 0 5 1 1 0 1 0 8 0 ipqe 40 53 0 53 1 1 0 1 0 8 0 inpcb 280 240 0 233 1 0 1 1 0 8 0 nd6 48 20 0 16 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 397 0 222 16 3 13 13 0 8 0 art_table 32 398 0 222 2 0 2 2 0 8 0 art_node 16 93 0 55 1 0 1 1 0 8 0 sysvmsgpl 40 30 0 19 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 50 0 40 1 0 1 1 0 8 0 shmpl 112 13 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1961 0 564 88 0 88 88 0 8 0 ffsino 240 1961 0 564 83 0 83 83 0 8 0 nchpl 144 2911 0 1321 60 0 60 60 0 8 0 uvmvnodes 72 2383 0 0 44 0 44 44 0 8 0 vnodes 208 2383 0 0 126 0 126 126 0 8 0 namei 1024 7974 0 7974 4 3 1 1 0 8 1 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 528 5 0 3 2 1 1 1 0 8 0 scxspl 192 30163 0 30163 1 0 1 1 0 8 1 plimitpl 152 44 0 37 1 0 1 1 0 8 0 sigapl 424 668 0 639 4 0 4 4 0 8 0 futexpl 56 6733 0 6733 3 2 1 1 0 8 1 knotepl 112 147 0 128 1 0 1 1 0 8 0 kqueuepl 144 108 0 106 1 0 1 1 0 8 0 pipelkpl 16 114 0 104 1 0 1 1 0 8 0 pipepl 120 228 0 209 1 0 1 1 0 8 0 fdescpl 432 653 0 639 2 0 2 2 0 8 0 filepl 120 3315 0 3219 7 3 4 4 0 8 1 lockfpl 104 120 0 118 1 0 1 1 0 8 0 lockfspl 48 46 0 44 1 0 1 1 0 8 0 sessionpl 112 21 0 11 1 0 1 1 0 8 0 pgrppl 48 25 0 15 1 0 1 1 0 8 0 ucredpl 96 298 0 289 1 0 1 1 0 8 0 zombiepl 144 639 0 639 2 1 1 1 0 8 1 processpl 920 668 0 639 4 0 4 4 0 8 0 procpl 624 1123 0 1086 4 0 4 4 0 8 0 sosppl 128 7 0 7 2 2 0 1 0 8 0 sockpl 400 428 0 411 6 3 3 3 0 8 1 mcl64k 65536 26 0 26 4 3 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 14 0 14 5 4 1 1 0 8 1 mcl9k 9216 8 0 8 3 2 1 1 0 8 1 mcl8k 8192 10 0 10 4 3 1 1 0 8 1 mcl4k 4096 42 0 42 5 4 1 1 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 71078 0 71026 21 13 8 14 0 8 1 mtagpl 80 29 0 21 2 1 1 1 0 8 0 mbufpl 256 116015 0 115853 28 15 13 18 0 8 0 bufpl 280 8264 0 1687 470 0 470 470 0 8 0 anonpl 16 91895 0 76570 110 39 71 76 0 107 9 amapchunkpl 152 4014 0 3875 40 20 20 20 0 158 14 amappl16 192 3119 0 2281 70 24 46 53 0 8 4 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 87 0 81 1 0 1 1 0 8 0 amappl13 168 260 0 253 1 0 1 1 0 8 0 amappl12 160 55 0 54 2 1 1 1 0 8 0 amappl11 152 64 0 53 1 0 1 1 0 8 0 amappl10 144 204 0 199 1 0 1 1 0 8 0 amappl9 136 415 0 414 1 0 1 1 0 8 0 amappl8 128 427 0 390 2 0 2 2 0 8 0 amappl7 120 325 0 312 1 0 1 1 0 8 0 amappl6 112 30 0 22 1 0 1 1 0 8 0 amappl5 104 412 0 402 1 0 1 1 0 8 0 amappl4 96 624 0 593 1 0 1 1 0 8 0 amappl3 88 283 0 274 1 0 1 1 0 8 0 amappl2 80 3972 0 3907 2 0 2 2 0 8 0 amappl1 72 21361 0 20949 23 14 9 17 0 8 0 amappl 80 1409 0 1366 2 1 1 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 14 0 2 1 0 1 1 0 8 0 uaddrrnd 24 658 0 642 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 658 0 642 1 0 1 1 0 8 0 vmmpekpl 168 7770 0 7740 2 0 2 2 0 8 0 vmmpepl 168 84390 0 82467 170 71 99 113 0 357 15 vmsppl 272 657 0 642 4 2 2 2 0 8 0 pdppl 4096 1322 0 1286 6 1 5 6 0 8 0 pvpl 32 329673 0 311290 344 165 179 289 0 265 30 pmappl 200 657 0 642 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 281 0 53 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(ffffffff821dd9a9) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82233e0f,ffffffff8224a523,136,ffffffff82212125) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8057c25140) at buf_free_pages+0x1d3 sys/kern/vfs_biomem.c:299 buf_dealloc_mem(fffffd8057c25140) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:179 buf_put(fffffd8057c25140) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8057c25140) at brelse+0x27d sys/kern/vfs_bio.c:948 vinvalbuf(fffffd8059c35010,2,ffffffffffffffff,ffff80001d7414f8,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1981 ffs_truncate(fffffd8057ffdf08,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff80001d7d7dd8) at ufs_inactive+0x155 sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8059c35010,ffff80001d7414f8) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd8059c35010) at vrele+0xca sys/kern/vfs_subr.c:816 ktrsettrace(ffff8000ffffa010,80000100,fffffd8058ae5820,fffffd806c3bfba0) at ktrsettrace+0xb3 sys/kern/kern_ktrace.c:124 ktrops(ffff80001d7414f8,ffff8000ffffa010,0,80000100,fffffd8058ae5820,fffffd806c3bfba0) at ktrops+0x1a1 sys/kern/kern_ktrace.c:544 doktrace(fffffd8058ae5820,4,100,0,ffff80001d7414f8) at doktrace+0x60d ktrsetchildren sys/kern/kern_ktrace.c:566 [inline] doktrace(fffffd8058ae5820,4,100,0,ffff80001d7414f8) at doktrace+0x60d sys/kern/kern_ktrace.c:488 sys_ktrace(ffff80001d7414f8,ffff80001d7d8198,ffff80001d7d81e0) at sys_ktrace+0xd5 sys/kern/kern_ktrace.c:529 syscall(ffff80001d7d8260) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc1a61f4ed10, 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(ffffffff821dd9a9) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82233e0f,ffffffff8224a523,136,ffffffff82212125) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8057c25140) at buf_free_pages+0x1d3 sys/kern/vfs_biomem.c:299 buf_dealloc_mem(fffffd8057c25140) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:179 buf_put(fffffd8057c25140) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8057c25140) at brelse+0x27d sys/kern/vfs_bio.c:948 vinvalbuf(fffffd8059c35010,2,ffffffffffffffff,ffff80001d7414f8,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1981 ffs_truncate(fffffd8057ffdf08,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff80001d7d7dd8) at ufs_inactive+0x155 sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8059c35010,ffff80001d7414f8) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd8059c35010) at vrele+0xca sys/kern/vfs_subr.c:816 ktrsettrace(ffff8000ffffa010,80000100,fffffd8058ae5820,fffffd806c3bfba0) at ktrsettrace+0xb3 sys/kern/kern_ktrace.c:124 ktrops(ffff80001d7414f8,ffff8000ffffa010,0,80000100,fffffd8058ae5820,fffffd806c3bfba0) at ktrops+0x1a1 sys/kern/kern_ktrace.c:544 doktrace(fffffd8058ae5820,4,100,0,ffff80001d7414f8) at doktrace+0x60d ktrsetchildren sys/kern/kern_ktrace.c:566 [inline] doktrace(fffffd8058ae5820,4,100,0,ffff80001d7414f8) at doktrace+0x60d sys/kern/kern_ktrace.c:488 sys_ktrace(ffff80001d7414f8,ffff80001d7d8198,ffff80001d7d81e0) at sys_ktrace+0xd5 sys/kern/kern_ktrace.c:529 syscall(ffff80001d7d8260) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc1a61f4ed10, count: -18