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 *406707 54595 0 0 0x4000000 0 syz-executor.1 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(ffffffff821e4dfe,ffffffff821f90eb,149,ffffffff821c1e1e) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd80399eb300) at buf_free_pages+0x1ee sys/kern/vfs_biomem.c:318 buf_dealloc_mem(fffffd80399eb300) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:194 buf_put(fffffd80399eb300) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd80399eb300) at brelse+0x257 sys/kern/vfs_bio.c:922 vinvalbuf(fffffd80282e11a0,2,ffffffffffffffff,ffff800014d32c70,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1977 ffs_truncate(fffffd80380174b0,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff8000159490e8) at ufs_inactive+0x159 sys/ufs/ufs/ufs_inode.c:85 VOP_INACTIVE(fffffd80282e11a0,ffff800014d32c70) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd80282e11a0) at vrele+0xca sys/kern/vfs_subr.c:813 ktrsettrace(ffff8000ffffbb08,80000100,fffffd803c3b4d20,fffffd803f7c6a20) at ktrsettrace+0xab sys/kern/kern_ktrace.c:121 ktrops(ffff800014d32c70,ffff8000ffffbb08,0,80000100,fffffd803c3b4d20,fffffd803f7c6a20) at ktrops+0x1a1 sys/kern/kern_ktrace.c:539 end trace frame: 0xffff800015949350, 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(ffffffff821e4dfe,ffffffff821f90eb,149,ffffffff821c1e1e) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd80399eb300) at buf_free_pages+0x1ee sys/kern/vfs_biomem.c:318 buf_dealloc_mem(fffffd80399eb300) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:194 buf_put(fffffd80399eb300) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd80399eb300) at brelse+0x257 sys/kern/vfs_bio.c:922 vinvalbuf(fffffd80282e11a0,2,ffffffffffffffff,ffff800014d32c70,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1977 ffs_truncate(fffffd80380174b0,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff8000159490e8) at ufs_inactive+0x159 sys/ufs/ufs/ufs_inode.c:85 VOP_INACTIVE(fffffd80282e11a0,ffff800014d32c70) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd80282e11a0) at vrele+0xca sys/kern/vfs_subr.c:813 ktrsettrace(ffff8000ffffbb08,80000100,fffffd803c3b4d20,fffffd803f7c6a20) at ktrsettrace+0xab sys/kern/kern_ktrace.c:121 ktrops(ffff800014d32c70,ffff8000ffffbb08,0,80000100,fffffd803c3b4d20,fffffd803f7c6a20) at ktrops+0x1a1 sys/kern/kern_ktrace.c:539 doktrace(fffffd803c3b4d20,4,100,0,ffff800014d32c70) at doktrace+0x5e4 ktrsetchildren sys/kern/kern_ktrace.c:561 [inline] doktrace(fffffd803c3b4d20,4,100,0,ffff800014d32c70) at doktrace+0x5e4 sys/kern/kern_ktrace.c:483 sys_ktrace(ffff800014d32c70,ffff8000159494a8,ffff8000159494f0) at sys_ktrace+0xd8 sys/kern/kern_ktrace.c:524 syscall(ffff800015949570) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff82,0,4,e1688b88010) at Xsyscall+0x128 end of kernel end trace frame: 0xe18e8c19060, count: -18 ddb> show registers rdi 0xffffffff81e953f7 db_enter+0x17 rsi 0x1633e acpi_pdirpa+0x21a6 rbp 0xffff800015948bd0 rbx 0xffff800015948c80 rdx 0x1633f acpi_pdirpa+0x21a7 rcx 0xffff800015971000 rax 0xffff800015971000 r8 0xffff800015948b90 r9 0x1 r10 0xffff800000a4aa40 r11 0x8f3073cbf9148fd8 r12 0x3000000008 r13 0xffff800015948be0 r14 0x100 r15 0x1 rip 0xffffffff81e953f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015948bc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=406707 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff800014d333d8,0xffffffff82573c28 process=0xffff8000ffff77b0 user=0xffff800015944000, vmspace=0xfffffd803f014110 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 54595 70626 13137 0 2 0 syz-executor.1 *54595 406707 13137 0 7 0x4000000 syz-executor.1 17776 443035 37630 0 3 0x82 nanosleep syz-executor.0 13137 102150 37630 0 3 0x82 nanosleep syz-executor.1 23338 433411 1 0 3 0x100083 ttyin getty 59257 297393 0 0 3 0x14200 bored sosplice 37630 258963 80889 0 3 0x82 thrsleep syz-fuzzer 37630 372980 80889 0 3 0x4000082 nanosleep syz-fuzzer 37630 161791 80889 0 3 0x4000082 thrsleep syz-fuzzer 37630 338207 80889 0 3 0x4000082 thrsleep syz-fuzzer 37630 488895 80889 0 3 0x4000082 thrsleep syz-fuzzer 37630 420585 80889 0 3 0x4000082 kqread syz-fuzzer 37630 77749 80889 0 3 0x4000082 thrsleep syz-fuzzer 37630 278750 80889 0 3 0x4000082 thrsleep syz-fuzzer 80889 431000 7680 0 3 0x10008a pause ksh 7680 146895 10605 0 3 0x92 select sshd 10605 239150 1 0 3 0x80 select sshd 83243 154771 21552 73 3 0x100010 biowait syslogd 21552 116404 1 0 3 0x100082 netio syslogd 17455 171495 0 0 2 0x14200 zerothread 50029 26685 0 0 3 0x14200 aiodoned aiodoned 87609 409195 0 0 3 0x14200 syncer update 28881 284297 0 0 3 0x14200 cleaner cleaner 59810 196509 0 0 3 0x14200 reaper reaper 31545 161359 0 0 3 0x14200 pgdaemon pagedaemon 44203 121780 0 0 3 0x14200 bored crynlk 88124 242439 0 0 3 0x14200 bored crypto 97868 131725 0 0 3 0x40014200 acpi0 acpi0 5823 297221 0 0 3 0x14200 bored softnet 5456 402487 0 0 3 0x14200 bored systqmp 63982 340029 0 0 3 0x14200 bored systq 79088 368258 0 0 3 0x40014200 bored softclock 66581 220747 0 0 3 0x40014200 idle0 37655 188315 0 0 3 0x14200 bored smr 1 202946 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 9567 7064K 7643K 78643K 21092 0 0 pcb 13 10K 12K 78643K 906 0 0 rtable 121 12K 13K 78643K 1862 0 0 ifaddr 83 19K 21K 78643K 980 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 196 0 0 iov 0 0K 32K 78643K 4774 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1199 75K 77K 78643K 5453 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 68 0 0 VM map 2 0K 0K 78643K 24 0 0 sem 12 0K 1K 78643K 817 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 4793 0 0 sigio 0 0K 0K 78643K 77 0 0 proc 45 30K 55K 78643K 2134 0 0 subproc 32 2K 2K 78643K 578 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 288 0 0 in_multi 33 2K 2K 78643K 595 0 0 ether_multi 1 0K 0K 78643K 46 0 0 mrt 2 0K 0K 78643K 64 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 1085 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 112 22K 39K 78643K 14018 0 0 UVM aobj 130 4K 4K 78643K 142 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 964 0 0 NDP 22 0K 1K 78643K 320 0 0 temp 226 3544K 4188K 78643K 121163 0 0 kqueue 0 0K 0K 78643K 50 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 104 0 98 1 0 1 1 0 8 0 rtpcb 80 560 0 560 16 15 1 1 0 8 1 rtentry 112 561 0 518 2 0 2 2 0 8 0 unpcb 120 2340 0 2325 2 1 1 2 0 8 0 syncache 264 23 0 23 12 12 0 1 0 8 0 tcpqe 32 5326 0 5326 4 4 0 1 0 8 0 tcpcb 544 2291 0 2287 45 44 1 15 0 8 0 ipq 40 45 0 45 19 19 0 1 0 8 0 ipqe 40 677 0 677 19 19 0 1 0 8 0 inpcb 280 5347 0 5343 43 42 1 9 0 8 0 rttmr 72 22 0 22 12 12 0 1 0 8 0 nd6 48 78 0 74 7 6 1 1 0 8 0 pkpcb 40 33 0 33 10 10 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 114 0 114 19 19 0 1 0 8 0 art_heap8 4096 14 0 13 7 6 1 4 0 8 0 art_heap4 256 2587 0 2367 50 36 14 17 0 8 0 art_table 32 2601 0 2380 3 1 2 3 0 8 0 art_node 16 540 0 501 1 0 1 1 0 8 0 sysvmsgpl 40 28 0 15 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 815 0 805 1 0 1 1 0 8 0 shmpl 112 140 0 12 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9462 0 8059 46 0 46 46 0 8 0 ffsino 240 9462 0 8059 83 0 83 83 0 8 0 nchpl 144 18141 0 16527 60 0 60 60 0 8 0 uvmvnodes 72 7963 0 0 145 0 145 145 0 8 0 vnodes 208 7963 0 0 420 0 420 420 0 8 0 namei 1024 61204 0 61204 12 11 1 1 0 8 1 vmpool 520 22 0 22 9 9 0 1 0 8 0 scsiplug 64 5 0 5 4 4 0 1 0 8 0 scxspl 192 103896 0 103895 48 47 1 7 0 8 0 plimitpl 152 427 0 421 1 0 1 1 0 8 0 sigapl 432 4874 0 4863 2 0 2 2 0 8 0 futexpl 56 134767 0 134767 9 8 1 1 0 8 1 knotepl 112 1476 0 1457 5 4 1 3 0 8 0 kqueuepl 104 1722 0 1720 10 9 1 4 0 8 0 pipepl 112 2878 0 2859 12 11 1 2 0 8 0 fdescpl 424 4875 0 4863 2 0 2 2 0 8 0 filepl 120 42345 0 42260 36 33 3 10 0 8 0 lockfpl 104 1782 0 1781 9 8 1 1 0 8 0 lockfspl 48 581 0 580 9 8 1 1 0 8 0 sessionpl 112 55 0 47 1 0 1 1 0 8 0 pgrppl 48 89 0 81 1 0 1 1 0 8 0 ucredpl 96 6148 0 6139 1 0 1 1 0 8 0 zombiepl 144 4866 0 4865 3 2 1 1 0 8 0 processpl 864 4893 0 4865 4 0 4 4 0 8 0 procpl 632 11660 0 11624 4 0 4 4 0 8 0 sosppl 128 58 0 58 17 17 0 1 0 8 0 sockpl 384 8349 0 8330 49 46 3 14 0 8 0 mcl64k 65536 1146 0 1146 92 91 1 33 0 8 1 mcl16k 16384 48 0 48 23 23 0 1 0 8 0 mcl12k 12288 158 0 158 13 13 0 1 0 8 0 mcl9k 9216 90 0 90 20 20 0 1 0 8 0 mcl8k 8192 211 0 211 13 13 0 1 0 8 0 mcl4k 4096 553 0 553 13 12 1 1 0 8 1 mcl2k2 2112 71 0 71 22 22 0 1 0 8 0 mcl2k 2048 64462 0 64412 24 16 8 15 0 8 0 mtagpl 80 199 0 197 7 6 1 1 0 8 0 mbufpl 256 137587 0 137492 171 160 11 33 0 8 0 bufpl 256 32812 0 24844 498 0 498 498 0 8 0 anonpl 16 634837 0 621329 234 151 83 84 0 62 8 amapchunkpl 152 29170 0 29069 114 108 6 18 0 158 0 amappl16 192 29493 0 28558 248 191 57 60 0 8 8 amappl15 184 1352 0 1352 3 3 0 1 0 8 0 amappl14 176 1347 0 1343 2 1 1 1 0 8 0 amappl13 168 155 0 155 3 3 0 1 0 8 0 amappl12 160 219 0 216 1 0 1 1 0 8 0 amappl11 152 782 0 778 1 0 1 1 0 8 0 amappl10 144 443 0 441 1 0 1 1 0 8 0 amappl9 136 1878 0 1869 1 0 1 1 0 8 0 amappl8 128 1404 0 1360 2 0 2 2 0 8 0 amappl7 120 618 0 611 1 0 1 1 0 8 0 amappl6 112 703 0 692 1 0 1 1 0 8 0 amappl5 104 653 0 646 1 0 1 1 0 8 0 amappl4 96 4939 0 4912 1 0 1 1 0 8 0 amappl3 88 1370 0 1364 1 0 1 1 0 8 0 amappl2 80 37132 0 37074 4 2 2 3 0 8 0 amappl1 72 103219 0 102841 28 19 9 20 0 8 0 amappl 80 12447 0 12415 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 141 0 12 3 0 3 3 0 8 0 uaddrrnd 24 4897 0 4863 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4897 0 4863 1 0 1 1 0 8 0 vmmpekpl 168 36103 0 36077 2 0 2 2 0 8 0 vmmpepl 168 611823 0 609901 470 345 125 137 0 357 33 vmsppl 272 4874 0 4863 3 2 1 2 0 8 0 pdppl 4096 9800 0 9770 7 2 5 6 0 8 0 pvpl 32 1890437 0 1873896 711 428 283 306 0 265 112 pmappl 200 4896 0 4885 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1046 0 418 19 0 19 19 0 8 0