panic: kernel diagnostic assertion "pg->wire_count == 1" failed: file "/syzkaller/managers/main/kernel/sys/kern/vfs_biomem.c", line 329 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *197153 6778 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff821e7a0d,ffffffff821f9391,149,ffffffff821c25b1) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8026dcc400) at buf_free_pages+0x1ee sys/kern/vfs_biomem.c:318 buf_dealloc_mem(fffffd8026dcc400) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:194 buf_put(fffffd8026dcc400) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8026dcc400) at brelse+0x257 sys/kern/vfs_bio.c:922 vinvalbuf(fffffd803c15a1a0,2,ffffffffffffffff,ffff8000ffff3650,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1977 ffs_truncate(fffffd803ce6ca50,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff8000179856f8) at ufs_inactive+0x159 sys/ufs/ufs/ufs_inode.c:85 VOP_INACTIVE(fffffd803c15a1a0,ffff8000ffff3650) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd803c15a1a0) at vrele+0xca sys/kern/vfs_subr.c:813 ktrsettrace(ffff8000ffff66d0,80000010,fffffd803c15a5b0,fffffd803f7c6a80) at ktrsettrace+0xab sys/kern/kern_ktrace.c:121 ktrops(ffff8000ffff3650,ffff8000ffff66d0,0,80000010,fffffd803c15a5b0,fffffd803f7c6a80) at ktrops+0x1a1 sys/kern/kern_ktrace.c:539 end trace frame: 0xffff800017985960, 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 329 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff821e7a0d,ffffffff821f9391,149,ffffffff821c25b1) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8026dcc400) at buf_free_pages+0x1ee sys/kern/vfs_biomem.c:318 buf_dealloc_mem(fffffd8026dcc400) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:194 buf_put(fffffd8026dcc400) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8026dcc400) at brelse+0x257 sys/kern/vfs_bio.c:922 vinvalbuf(fffffd803c15a1a0,2,ffffffffffffffff,ffff8000ffff3650,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1977 ffs_truncate(fffffd803ce6ca50,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff8000179856f8) at ufs_inactive+0x159 sys/ufs/ufs/ufs_inode.c:85 VOP_INACTIVE(fffffd803c15a1a0,ffff8000ffff3650) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd803c15a1a0) at vrele+0xca sys/kern/vfs_subr.c:813 ktrsettrace(ffff8000ffff66d0,80000010,fffffd803c15a5b0,fffffd803f7c6a80) at ktrsettrace+0xab sys/kern/kern_ktrace.c:121 ktrops(ffff8000ffff3650,ffff8000ffff66d0,0,80000010,fffffd803c15a5b0,fffffd803f7c6a80) at ktrops+0x1a1 sys/kern/kern_ktrace.c:539 doktrace(fffffd803c15a5b0,14,10,0,ffff8000ffff3650) at doktrace+0x5e4 ktrsetchildren sys/kern/kern_ktrace.c:561 [inline] doktrace(fffffd803c15a5b0,14,10,0,ffff8000ffff3650) at doktrace+0x5e4 sys/kern/kern_ktrace.c:483 sys_ktrace(ffff8000ffff3650,ffff800017985ab8,ffff800017985b00) at sys_ktrace+0xd5 sys/kern/kern_ktrace.c:524 syscall(ffff800017985b80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff82,0,4,d3e1b0e4010) at Xsyscall+0x128 end of kernel end trace frame: 0xd406d82d0d0, count: -18 ddb> show registers rdi 0xffffffff81bd23b7 db_enter+0x17 rsi 0x19800 acpi_pdirpa+0x5668 rbp 0xffff8000179851e0 rbx 0xffff800017985290 rdx 0x19801 acpi_pdirpa+0x5669 rcx 0xffff800014921000 rax 0xffff800014921000 r8 0xffff8000179851a0 r9 0x1 r10 0xffff800000a64400 r11 0xffe7e5addbdde129 r12 0x3000000008 r13 0xffff8000179851f0 r14 0x100 r15 0x1 rip 0xffffffff81bd23b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000179851d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=197153 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2508,0xffff8000ffff2790 process=0xffff8000ffff7450 user=0xffff800017980000, vmspace=0xfffffd803f014bb0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 70233 512690 21500 0 2 0 syz-executor.1 70233 23529 21500 0 3 0x4000080 fsleep syz-executor.1 6778 135728 33212 0 2 0 syz-executor.0 * 6778 197153 33212 0 7 0x4000000 syz-executor.0 21500 256083 5518 0 3 0x82 nanosleep syz-executor.1 33212 256456 5518 0 3 0x82 nanosleep syz-executor.0 61429 501213 1 0 3 0x100083 ttyin getty 40865 28129 0 0 3 0x14200 acct acct 21927 521562 0 0 3 0x14200 bored sosplice 5518 439753 31779 0 3 0x82 thrsleep syz-fuzzer 5518 236259 31779 0 3 0x4000082 thrsleep syz-fuzzer 5518 409042 31779 0 3 0x4000082 thrsleep syz-fuzzer 5518 29640 31779 0 3 0x4000082 thrsleep syz-fuzzer 5518 87436 31779 0 3 0x4000082 kqread syz-fuzzer 5518 14693 31779 0 3 0x4000082 thrsleep syz-fuzzer 5518 424645 31779 0 3 0x4000082 thrsleep syz-fuzzer 5518 314117 31779 0 3 0x4000082 thrsleep syz-fuzzer 31779 131135 67498 0 3 0x10008a pause ksh 67498 38823 50728 0 3 0x92 select sshd 50728 134360 1 0 3 0x80 select sshd 7205 493244 2849 73 3 0x100090 kqread syslogd 2849 109189 1 0 3 0x100082 netio syslogd 35917 420884 1 77 3 0x100090 poll dhclient 67779 10582 1 0 3 0x80 poll dhclient 27558 2674 0 0 2 0x14200 zerothread 9000 320686 0 0 3 0x14200 aiodoned aiodoned 73626 314505 0 0 3 0x14200 syncer update 82089 339715 0 0 3 0x14200 cleaner cleaner 54890 95696 0 0 3 0x14200 reaper reaper 80529 500615 0 0 3 0x14200 pgdaemon pagedaemon 35825 53117 0 0 3 0x14200 bored crynlk 51801 152079 0 0 3 0x14200 bored crypto 66884 385616 0 0 3 0x40014200 acpi0 acpi0 37313 470177 0 0 3 0x14200 bored softnet 74674 125432 0 0 3 0x14200 bored systqmp 84291 44261 0 0 3 0x14200 bored systq 29169 343022 0 0 3 0x40014200 bored softclock 33656 217808 0 0 3 0x40014200 idle0 76431 335447 0 0 3 0x14200 bored smr 1 83976 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 Kern Lim devbuf 9609 6405K 7430K 78643K 24211 0 0 pcb 13 10K 12K 78643K 1113 0 0 rtable 120 8K 9K 78643K 3306 0 0 ifaddr 101 22K 23K 78643K 727 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 280 0 0 iov 0 0K 32K 78643K 1143 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1209 76K 77K 78643K 6914 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 90 0 0 VM map 55 13K 13K 78643K 86 0 0 sem 12 0K 1K 78643K 1357 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 4690 0 0 sigio 0 0K 0K 78643K 94 0 0 proc 50 38K 63K 78643K 2122 0 0 subproc 32 2K 2K 78643K 595 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 438 0 0 in_multi 37 2K 2K 78643K 602 0 0 ether_multi 1 0K 0K 78643K 51 0 0 mrt 0 0K 0K 78643K 27 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 1066 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 201 496K 498K 78643K 13717 0 0 UVM aobj 130 4K 4K 78643K 139 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 1049 0 0 NDP 24 0K 1K 78643K 243 0 0 temp 254 3541K 4180K 78643K 217575 0 0 kqueue 0 0K 0K 78643K 55 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 153 0 146 1 0 1 1 0 8 0 rtpcb 80 442 0 440 1 0 1 1 0 8 0 rtentry 112 680 0 636 2 0 2 2 0 8 0 unpcb 120 2248 0 2240 2 1 1 2 0 8 0 syncache 264 29 0 29 14 14 0 1 0 8 0 sackhl 24 3 0 3 2 2 0 1 0 8 0 tcpqe 32 25 0 25 8 8 0 1 0 8 0 tcpcb 544 2211 0 2207 29 28 1 13 0 8 0 ipq 40 34 0 34 15 15 0 1 0 8 0 ipqe 40 549 0 549 15 15 0 1 0 8 0 inpcb 280 5945 0 5937 44 43 1 9 0 8 0 rttmr 72 7 0 7 4 4 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 87 0 83 4 3 1 1 0 8 0 pkpcb 40 24 0 24 9 9 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 74 0 74 24 24 0 1 0 8 0 art_heap8 4096 19 0 18 12 11 1 3 0 8 0 art_heap4 256 2632 0 2406 48 33 15 23 0 8 0 art_table 32 2651 0 2424 5 3 2 3 0 8 0 art_node 16 679 0 639 1 0 1 1 0 8 0 sysvmsgpl 40 88 0 63 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 1355 0 1345 1 0 1 1 0 8 0 shmpl 112 137 0 9 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9402 0 8000 46 0 46 46 0 8 0 ffsino 240 9402 0 8000 83 0 83 83 0 8 0 nchpl 144 17537 0 17094 60 41 19 60 0 8 0 uvmvnodes 72 7993 0 0 146 0 146 146 0 8 0 vnodes 208 7993 0 0 421 0 421 421 0 8 0 namei 1024 71042 0 71042 9 8 1 1 0 8 1 vcpupl 1984 53 0 0 7 0 7 7 0 8 0 vmpool 520 84 0 31 7 3 4 4 0 8 0 scsiplug 64 9 0 9 8 8 0 1 0 8 0 scxspl 192 71071 0 71071 45 44 1 7 0 8 1 plimitpl 152 441 0 434 1 0 1 1 0 8 0 sigapl 432 4766 0 4752 2 0 2 2 0 8 0 futexpl 56 132914 0 132913 10 9 1 1 0 8 0 knotepl 112 1742 0 1723 3 2 1 3 0 8 0 kqueuepl 104 4401 0 4399 7 6 1 4 0 8 0 pipepl 112 3066 0 3047 15 14 1 2 0 8 0 fdescpl 424 4767 0 4752 2 0 2 2 0 8 0 filepl 120 53524 0 53428 35 31 4 11 0 8 1 lockfpl 104 1944 0 1943 1 0 1 1 0 8 0 lockfspl 48 630 0 629 1 0 1 1 0 8 0 sessionpl 112 54 0 44 1 0 1 1 0 8 0 pgrppl 48 98 0 88 1 0 1 1 0 8 0 ucredpl 96 15952 0 15944 1 0 1 1 0 8 0 zombiepl 144 4756 0 4756 1 0 1 1 0 8 1 processpl 864 4787 0 4756 4 0 4 4 0 8 0 procpl 632 11231 0 11191 8 4 4 5 0 8 0 sosppl 128 66 0 66 19 19 0 1 0 8 0 sockpl 384 8764 0 8747 64 61 3 14 0 8 1 mcl64k 65536 740 0 740 46 45 1 29 0 8 1 mcl16k 16384 65 0 65 28 28 0 1 0 8 0 mcl12k 12288 152 0 152 20 20 0 1 0 8 0 mcl9k 9216 69 0 69 28 27 1 1 0 8 1 mcl8k 8192 206 0 206 24 23 1 1 0 8 1 mcl4k 4096 491 0 491 11 10 1 1 0 8 1 mcl2k2 2112 43 0 43 20 20 0 1 0 8 0 mcl2k 2048 71808 0 71766 29 23 6 12 0 8 0 mtagpl 80 232 0 230 10 9 1 1 0 8 0 mbufpl 256 156019 0 155906 109 97 12 33 0 8 0 bufpl 256 27066 0 19072 500 0 500 500 0 8 0 anonpl 16 671924 0 654445 307 214 93 109 0 62 5 amapchunkpl 152 28742 0 28605 114 98 16 19 0 158 9 amappl16 192 31503 0 30358 336 277 59 81 0 8 0 amappl15 184 1749 0 1748 6 5 1 1 0 8 0 amappl14 176 407 0 403 1 0 1 1 0 8 0 amappl13 168 192 0 190 6 5 1 1 0 8 0 amappl12 160 1026 0 1020 1 0 1 1 0 8 0 amappl11 152 670 0 659 1 0 1 1 0 8 0 amappl10 144 354 0 352 2 1 1 1 0 8 0 amappl9 136 1688 0 1681 1 0 1 1 0 8 0 amappl8 128 1205 0 1159 2 0 2 2 0 8 0 amappl7 120 503 0 496 1 0 1 1 0 8 0 amappl6 112 619 0 609 1 0 1 1 0 8 0 amappl5 104 1450 0 1439 1 0 1 1 0 8 0 amappl4 96 4530 0 4497 1 0 1 1 0 8 0 amappl3 88 1031 0 1015 1 0 1 1 0 8 0 amappl2 80 36362 0 36283 3 1 2 3 0 8 0 amappl1 72 101808 0 101389 27 18 9 20 0 8 0 amappl 80 12056 0 11984 2 0 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 138 0 9 3 0 3 3 0 8 0 uaddrrnd 24 4851 0 4752 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4851 0 4752 1 0 1 1 0 8 0 vmmpekpl 168 36577 0 36535 4 1 3 3 0 8 0 vmmpepl 168 602106 0 599632 581 434 147 159 0 357 35 vmsppl 272 4766 0 4752 10 8 2 2 0 8 1 pdppl 4096 9708 0 9619 19 7 12 12 0 8 0 pvpl 32 1907737 0 1887590 827 528 299 329 0 265 102 pmappl 200 4850 0 4783 5 1 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 962 0 323 19 0 19 19 0 8 0