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 *501074 24143 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823c3829) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff8242c22b,ffffffff82443e07,136,ffffffff823fe0bc) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8057764030) at buf_free_pages+0x1d3 sys/kern/vfs_biomem.c:299 buf_dealloc_mem(fffffd8057764030) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:179 buf_put(fffffd8057764030) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8057764030) at brelse+0x27d sys/kern/vfs_bio.c:948 vinvalbuf(fffffd8053b8b688,2,ffffffffffffffff,ffff80001d6f4af0,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1981 ffs_truncate(fffffd805a1a7878,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff80001e77fe28) at ufs_inactive+0x155 sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8053b8b688,ffff80001d6f4af0) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd8053b8b688) at vrele+0xca sys/kern/vfs_subr.c:816 ktrsettrace(ffff8000ffffa3a8,80001334,fffffd80595081b0,fffffd806c3bfa80) at ktrsettrace+0xb3 sys/kern/kern_ktrace.c:124 ktrops(ffff80001d6f4af0,ffff8000ffffa3a8,0,80001334,fffffd80595081b0,fffffd806c3bfa80) at ktrops+0x1a1 sys/kern/kern_ktrace.c:544 end trace frame: 0xffff80001e780090, 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(ffffffff823c3829) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff8242c22b,ffffffff82443e07,136,ffffffff823fe0bc) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8057764030) at buf_free_pages+0x1d3 sys/kern/vfs_biomem.c:299 buf_dealloc_mem(fffffd8057764030) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:179 buf_put(fffffd8057764030) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8057764030) at brelse+0x27d sys/kern/vfs_bio.c:948 vinvalbuf(fffffd8053b8b688,2,ffffffffffffffff,ffff80001d6f4af0,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1981 ffs_truncate(fffffd805a1a7878,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff80001e77fe28) at ufs_inactive+0x155 sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8053b8b688,ffff80001d6f4af0) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd8053b8b688) at vrele+0xca sys/kern/vfs_subr.c:816 ktrsettrace(ffff8000ffffa3a8,80001334,fffffd80595081b0,fffffd806c3bfa80) at ktrsettrace+0xb3 sys/kern/kern_ktrace.c:124 ktrops(ffff80001d6f4af0,ffff8000ffffa3a8,0,80001334,fffffd80595081b0,fffffd806c3bfa80) at ktrops+0x1a1 sys/kern/kern_ktrace.c:544 doktrace(fffffd80595081b0,4,1334,0,ffff80001d6f4af0) at doktrace+0x60d ktrsetchildren sys/kern/kern_ktrace.c:566 [inline] doktrace(fffffd80595081b0,4,1334,0,ffff80001d6f4af0) at doktrace+0x60d sys/kern/kern_ktrace.c:488 sys_ktrace(ffff80001d6f4af0,ffff80001e7801e8,ffff80001e780230) at sys_ktrace+0xd5 sys/kern/kern_ktrace.c:529 syscall(ffff80001e7802b0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb9784be1130, count: -18 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001e77f920 rbx 0xffff80001e77f9d0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81ad22df kprintf+0x15f r9 0x1 r10 0x2 r11 0xd86d4ae4fb70a0de r12 0x3000000008 r13 0xffff80001e77f930 r14 0x100 r15 0x1 rip 0xffffffff81897608 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001e77f910 ss 0 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=501074 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6f3290,0xffffffff827ca1d0 process=0xffff800020840760 user=0xffff80001e77b000, vmspace=0xfffffd8058111ef0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 24143 229728 58338 0 2 0 syz-executor.0 *24143 501074 58338 0 7 0x4000000 syz-executor.0 58338 389169 77577 0 3 0x82 nanosleep syz-executor.0 48538 433364 0 0 3 0x14280 nfsidl nfsio 30247 133464 0 0 3 0x14280 nfsidl nfsio 95500 332516 0 0 3 0x14280 nfsidl nfsio 51322 180251 0 0 3 0x14280 nfsidl nfsio 39071 501123 0 0 3 0x14280 nfsidl nfsio 76128 243747 0 0 3 0x14280 nfsidl nfsio 35064 472602 0 0 3 0x14280 nfsidl nfsio 15380 117613 0 0 3 0x14280 nfsidl nfsio 38765 443335 0 0 3 0x14280 nfsidl nfsio 84294 315411 0 0 3 0x14280 nfsidl nfsio 9303 190201 0 0 3 0x14280 nfsidl nfsio 89272 333305 0 0 3 0x14280 nfsidl nfsio 21424 225751 0 0 3 0x14280 nfsidl nfsio 75810 307938 0 0 3 0x14280 nfsidl nfsio 21488 166768 0 0 3 0x14280 nfsidl nfsio 98133 430989 0 0 3 0x14280 nfsidl nfsio 37099 270442 0 0 3 0x14280 nfsidl nfsio 14775 48737 0 0 3 0x14280 nfsidl nfsio 66029 307347 0 0 3 0x14280 nfsidl nfsio 62982 315137 0 0 3 0x14280 nfsidl nfsio 14371 151411 0 0 3 0x14200 bored sosplice 75108 79458 77577 0 3 0x82 piperd syz-executor.1 77577 239469 64009 0 3 0x82 thrsleep syz-fuzzer 77577 346562 64009 0 3 0x4000082 nanosleep syz-fuzzer 77577 517634 64009 0 3 0x4000082 thrsleep syz-fuzzer 77577 151480 64009 0 3 0x4000082 thrsleep syz-fuzzer 77577 20983 64009 0 2 0x4000002 syz-fuzzer 77577 390536 64009 0 3 0x4000082 thrsleep syz-fuzzer 77577 166123 64009 0 3 0x4000082 thrsleep syz-fuzzer 64009 468028 94721 0 3 0x10008a pause ksh 94721 324853 50893 0 3 0x92 select sshd 78192 470276 1 0 3 0x100083 ttyin getty 50893 516513 1 0 3 0x80 select sshd 51320 49147 58457 73 3 0x100090 kqread syslogd 58457 101230 1 0 3 0x100082 netio syslogd 79447 10225 1 77 3 0x100090 poll dhclient 41228 339552 1 0 3 0x80 poll dhclient 92270 479400 0 0 3 0x14200 bored smr 61877 445770 0 0 2 0x14200 zerothread 75775 419990 0 0 3 0x14200 aiodoned aiodoned 91219 476181 0 0 3 0x14200 syncer update 9863 330838 0 0 3 0x14200 cleaner cleaner 81650 253185 0 0 3 0x14200 reaper reaper 3171 283328 0 0 3 0x14200 pgdaemon pagedaemon 24069 129705 0 0 3 0x14200 bored crynlk 70029 11694 0 0 3 0x14200 bored crypto 55715 128419 0 0 3 0x40014200 acpi0 acpi0 38279 380169 0 0 3 0x14200 bored softnet 92055 53762 0 0 3 0x14200 bored systqmp 37739 176154 0 0 3 0x14200 bored systq 37715 230563 0 0 3 0x40014200 bored softclock 4920 481351 0 0 3 0x40014200 idle0 1 147752 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 9475 6333K 6585K 78643K 10911 0 pcb 13 8K 8K 78643K 53 0 rtable 110 3K 7K 78643K 382 0 ifaddr 55 12K 13K 78643K 119 0 counters 21 16K 16K 78643K 29 0 ioctlops 0 0K 4K 78643K 49 0 iov 0 0K 16K 78643K 34 0 mount 1 1K 1K 78643K 1 0 vnodes 1215 76K 77K 78643K 1344 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 34 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 259 0 proc 50 38K 55K 78643K 411 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 35 0 in_multi 54 3K 3K 78643K 91 0 ether_multi 1 0K 0K 78643K 9 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 210 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 124 39K 43K 78643K 1475 0 UVM aobj 10 2K 2K 78643K 10 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 44 0 NDP 8 0K 0K 78643K 23 0 temp 83 3841K 3907K 78643K 24641 0 kqueue 3 4K 8K 78643K 15 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 33 0 31 1 0 1 1 0 8 0 rtentry 112 76 0 30 2 0 2 2 0 8 0 unpcb 120 239 0 231 1 0 1 1 0 8 0 syncache 264 9 0 9 4 3 1 1 0 8 1 tcpqe 32 74 0 74 1 1 0 1 0 8 0 tcpcb 544 119 0 115 1 0 1 1 0 8 0 inpcb 280 301 0 294 3 1 2 2 0 8 1 nd6 48 11 0 4 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 pfrktable 1344 20 0 20 1 1 0 1 0 8 0 pftag 88 3 0 3 1 1 0 1 0 8 0 pfrule 1360 9 0 6 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 314 0 96 16 1 15 15 0 8 0 art_table 32 316 0 96 2 0 2 2 0 8 0 art_node 16 75 0 33 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 4 1 0 1 1 0 8 0 semapl 112 32 0 22 1 0 1 1 0 8 0 shmpl 112 8 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1725 0 328 88 0 88 88 0 8 0 ffsino 240 1725 0 328 83 0 83 83 0 8 0 nchpl 144 2236 0 647 60 0 60 60 0 8 0 uvmvnodes 72 1853 0 0 34 0 34 34 0 8 0 vnodes 208 1853 0 0 98 0 98 98 0 8 0 namei 1024 5844 0 5844 3 2 1 1 0 8 1 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 528 5 0 3 3 2 1 1 0 8 0 pfiaddrpl 120 6 0 6 1 1 0 1 0 8 0 scxspl 192 24292 0 24291 4 3 1 1 0 8 0 plimitpl 152 34 0 27 1 0 1 1 0 8 0 sigapl 424 463 0 414 6 0 6 6 0 8 0 futexpl 56 4753 0 4753 2 1 1 1 0 8 1 knotepl 112 85 0 66 1 0 1 1 0 8 0 kqueuepl 144 298 0 295 1 0 1 1 0 8 0 pipelkpl 16 102 0 92 1 0 1 1 0 8 0 pipepl 120 204 0 185 1 0 1 1 0 8 0 fdescpl 432 428 0 414 2 0 2 2 0 8 0 filepl 120 2620 0 2524 5 1 4 4 0 8 1 lockfpl 104 66 0 65 1 0 1 1 0 8 0 lockfspl 48 27 0 26 1 0 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 20 0 10 1 0 1 1 0 8 0 ucredpl 96 179 0 172 1 0 1 1 0 8 0 zombiepl 144 414 0 414 2 1 1 1 0 8 1 processpl 920 463 0 414 7 0 7 7 0 8 0 procpl 624 728 0 672 5 0 5 5 0 8 0 sosppl 128 4 0 4 2 1 1 1 0 8 1 sockpl 400 575 0 558 5 2 3 3 0 8 1 mcl64k 65536 20 0 20 4 3 1 1 0 8 1 mcl12k 12288 9 0 9 3 3 0 1 0 8 0 mcl9k 9216 4 0 4 3 2 1 1 0 8 1 mcl8k 8192 6 0 6 4 3 1 1 0 8 1 mcl4k 4096 22 0 22 5 4 1 1 0 8 1 mcl2k2 2112 2 0 2 1 1 0 1 0 8 0 mcl2k 2048 73982 0 73945 15 9 6 13 0 8 0 mtagpl 80 32 0 23 2 1 1 1 0 8 0 mbufpl 256 119195 0 119098 12 2 10 11 0 8 0 bufpl 280 5329 0 127 372 0 372 372 0 8 0 anonpl 16 58615 0 45019 87 22 65 83 0 107 0 amapchunkpl 152 2614 0 2487 19 12 7 19 0 158 0 amappl16 192 1839 0 918 51 4 47 47 0 8 0 amappl15 184 143 0 142 1 0 1 1 0 8 0 amappl14 176 24 0 20 1 0 1 1 0 8 0 amappl13 168 72 0 68 1 0 1 1 0 8 0 amappl12 160 39 0 36 2 1 1 1 0 8 0 amappl11 152 198 0 188 1 0 1 1 0 8 0 amappl10 144 25 0 20 1 0 1 1 0 8 0 amappl9 136 375 0 373 1 0 1 1 0 8 0 amappl8 128 338 0 299 2 0 2 2 0 8 0 amappl7 120 114 0 102 1 0 1 1 0 8 0 amappl6 112 30 0 21 1 0 1 1 0 8 0 amappl5 104 389 0 376 1 0 1 1 0 8 0 amappl4 96 471 0 443 1 0 1 1 0 8 0 amappl3 88 111 0 106 1 0 1 1 0 8 0 amappl2 80 2682 0 2614 2 0 2 2 0 8 0 amappl1 72 17183 0 16777 23 14 9 17 0 8 0 amappl 80 961 0 920 1 0 1 1 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 9 0 0 1 0 1 1 0 8 0 uaddrrnd 24 433 0 417 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 433 0 417 1 0 1 1 0 8 0 vmmpekpl 168 6896 0 6862 2 0 2 2 0 8 0 vmmpepl 168 58146 0 56151 190 67 123 147 0 357 36 vmsppl 272 432 0 417 3 1 2 2 0 8 0 pdppl 4096 872 0 836 6 1 5 6 0 8 0 pvpl 32 217587 0 200867 313 110 203 303 0 265 46 pmappl 200 432 0 417 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 258 0 30 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(ffffffff823c3829) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff8242c22b,ffffffff82443e07,136,ffffffff823fe0bc) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8057764030) at buf_free_pages+0x1d3 sys/kern/vfs_biomem.c:299 buf_dealloc_mem(fffffd8057764030) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:179 buf_put(fffffd8057764030) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8057764030) at brelse+0x27d sys/kern/vfs_bio.c:948 vinvalbuf(fffffd8053b8b688,2,ffffffffffffffff,ffff80001d6f4af0,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1981 ffs_truncate(fffffd805a1a7878,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff80001e77fe28) at ufs_inactive+0x155 sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8053b8b688,ffff80001d6f4af0) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd8053b8b688) at vrele+0xca sys/kern/vfs_subr.c:816 ktrsettrace(ffff8000ffffa3a8,80001334,fffffd80595081b0,fffffd806c3bfa80) at ktrsettrace+0xb3 sys/kern/kern_ktrace.c:124 ktrops(ffff80001d6f4af0,ffff8000ffffa3a8,0,80001334,fffffd80595081b0,fffffd806c3bfa80) at ktrops+0x1a1 sys/kern/kern_ktrace.c:544 doktrace(fffffd80595081b0,4,1334,0,ffff80001d6f4af0) at doktrace+0x60d ktrsetchildren sys/kern/kern_ktrace.c:566 [inline] doktrace(fffffd80595081b0,4,1334,0,ffff80001d6f4af0) at doktrace+0x60d sys/kern/kern_ktrace.c:488 sys_ktrace(ffff80001d6f4af0,ffff80001e7801e8,ffff80001e780230) at sys_ktrace+0xd5 sys/kern/kern_ktrace.c:529 syscall(ffff80001e7802b0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb9784be1130, 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(ffffffff823c3829) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff8242c22b,ffffffff82443e07,136,ffffffff823fe0bc) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8057764030) at buf_free_pages+0x1d3 sys/kern/vfs_biomem.c:299 buf_dealloc_mem(fffffd8057764030) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:179 buf_put(fffffd8057764030) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8057764030) at brelse+0x27d sys/kern/vfs_bio.c:948 vinvalbuf(fffffd8053b8b688,2,ffffffffffffffff,ffff80001d6f4af0,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1981 ffs_truncate(fffffd805a1a7878,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff80001e77fe28) at ufs_inactive+0x155 sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8053b8b688,ffff80001d6f4af0) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd8053b8b688) at vrele+0xca sys/kern/vfs_subr.c:816 ktrsettrace(ffff8000ffffa3a8,80001334,fffffd80595081b0,fffffd806c3bfa80) at ktrsettrace+0xb3 sys/kern/kern_ktrace.c:124 ktrops(ffff80001d6f4af0,ffff8000ffffa3a8,0,80001334,fffffd80595081b0,fffffd806c3bfa80) at ktrops+0x1a1 sys/kern/kern_ktrace.c:544 doktrace(fffffd80595081b0,4,1334,0,ffff80001d6f4af0) at doktrace+0x60d ktrsetchildren sys/kern/kern_ktrace.c:566 [inline] doktrace(fffffd80595081b0,4,1334,0,ffff80001d6f4af0) at doktrace+0x60d sys/kern/kern_ktrace.c:488 sys_ktrace(ffff80001d6f4af0,ffff80001e7801e8,ffff80001e780230) at sys_ktrace+0xd5 sys/kern/kern_ktrace.c:529 syscall(ffff80001e7802b0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb9784be1130, count: -18