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 *464857 36900 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(ffffffff821e553b,ffffffff821f7989,149,ffffffff821c11a1) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8024d82200) at buf_free_pages+0x1ee sys/kern/vfs_biomem.c:318 buf_dealloc_mem(fffffd8024d82200) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:194 buf_put(fffffd8024d82200) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8024d82200) at brelse+0x257 sys/kern/vfs_bio.c:922 vinvalbuf(fffffd802c383b80,2,ffffffffffffffff,ffff8000ffff2c70,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1977 ffs_truncate(fffffd803609ba50,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff8000179b7058) at ufs_inactive+0x159 sys/ufs/ufs/ufs_inode.c:85 VOP_INACTIVE(fffffd802c383b80,ffff8000ffff2c70) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd802c383b80) at vrele+0xca sys/kern/vfs_subr.c:813 ktrsettrace(ffff8000ffffd440,80000010,fffffd802c01d018,fffffd803f7c6960) at ktrsettrace+0xab sys/kern/kern_ktrace.c:121 ktrops(ffff8000ffff2c70,ffff8000ffffd440,0,80000010,fffffd802c01d018,fffffd803f7c6960) at ktrops+0x1a1 sys/kern/kern_ktrace.c:539 end trace frame: 0xffff8000179b72c0, 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(ffffffff821e553b,ffffffff821f7989,149,ffffffff821c11a1) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd8024d82200) at buf_free_pages+0x1ee sys/kern/vfs_biomem.c:318 buf_dealloc_mem(fffffd8024d82200) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:194 buf_put(fffffd8024d82200) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd8024d82200) at brelse+0x257 sys/kern/vfs_bio.c:922 vinvalbuf(fffffd802c383b80,2,ffffffffffffffff,ffff8000ffff2c70,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1977 ffs_truncate(fffffd803609ba50,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff8000179b7058) at ufs_inactive+0x159 sys/ufs/ufs/ufs_inode.c:85 VOP_INACTIVE(fffffd802c383b80,ffff8000ffff2c70) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd802c383b80) at vrele+0xca sys/kern/vfs_subr.c:813 ktrsettrace(ffff8000ffffd440,80000010,fffffd802c01d018,fffffd803f7c6960) at ktrsettrace+0xab sys/kern/kern_ktrace.c:121 ktrops(ffff8000ffff2c70,ffff8000ffffd440,0,80000010,fffffd802c01d018,fffffd803f7c6960) at ktrops+0x1a1 sys/kern/kern_ktrace.c:539 doktrace(fffffd802c01d018,14,10,0,ffff8000ffff2c70) at doktrace+0x5e4 ktrsetchildren sys/kern/kern_ktrace.c:561 [inline] doktrace(fffffd802c01d018,14,10,0,ffff8000ffff2c70) at doktrace+0x5e4 sys/kern/kern_ktrace.c:483 sys_ktrace(ffff8000ffff2c70,ffff8000179b7418,ffff8000179b7460) at sys_ktrace+0xd5 sys/kern/kern_ktrace.c:524 syscall(ffff8000179b74e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff82,0,4,3fb16d04010) at Xsyscall+0x128 end of kernel end trace frame: 0x3fd5def2770, count: -18 ddb> show registers rdi 0xffffffff81cff577 db_enter+0x17 rsi 0x2c5c6 acpi_pdirpa+0x1842e rbp 0xffff8000179b6b40 rbx 0xffff8000179b6bf0 rdx 0x2c5c7 acpi_pdirpa+0x1842f rcx 0xffff80001574a000 rax 0xffff80001574a000 r8 0xffff8000179b6b00 r9 0x1 r10 0xffff800000a65440 r11 0xfadf75b50145c334 r12 0x3000000008 r13 0xffff8000179b6b50 r14 0x100 r15 0x1 rip 0xffffffff81cff578 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000179b6b30 ss 0 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=464857 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff29f8,0xffffffff82591678 process=0xffff8000148a37b8 user=0xffff8000179b2000, vmspace=0xfffffd803f013aa0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 36900 140465 83207 0 2 0 syz-executor.0 *36900 464857 83207 0 7 0x4000000 syz-executor.0 50075 93241 56834 0 3 0x80 nanosleep syz-executor.1 50075 398970 56834 0 3 0x4000080 nanosleep syz-executor.1 50075 262911 56834 0 3 0x4000080 nanosleep syz-executor.1 50075 98422 56834 0 3 0x4000080 fsleep syz-executor.1 56834 492788 97046 0 3 0x82 nanosleep syz-executor.1 83207 184181 97046 0 3 0x82 nanosleep syz-executor.0 11934 237346 1 0 3 0x100083 ttyin getty 35619 110806 0 0 3 0x14200 bored sosplice 97046 104368 72926 0 3 0x82 thrsleep syz-fuzzer 97046 374872 72926 0 3 0x4000082 thrsleep syz-fuzzer 97046 31911 72926 0 3 0x4000082 thrsleep syz-fuzzer 97046 386274 72926 0 3 0x4000082 thrsleep syz-fuzzer 97046 127399 72926 0 3 0x4000082 thrsleep syz-fuzzer 97046 219159 72926 0 3 0x4000082 thrsleep syz-fuzzer 97046 262294 72926 0 3 0x4000082 thrsleep syz-fuzzer 97046 272099 72926 0 3 0x4000082 kqread syz-fuzzer 97046 33610 72926 0 3 0x4000082 thrsleep syz-fuzzer 72926 71215 10837 0 3 0x10008a pause ksh 10837 185889 41448 0 3 0x92 select sshd 41448 312101 1 0 3 0x80 select sshd 9286 158387 38092 73 3 0x100090 kqread syslogd 38092 314232 1 0 3 0x100082 netio syslogd 13687 202826 1 77 3 0x100090 poll dhclient 50831 37200 1 0 3 0x80 poll dhclient 27730 66001 0 0 2 0x14200 zerothread 73632 448017 0 0 3 0x14200 aiodoned aiodoned 86816 127888 0 0 3 0x14200 syncer update 95136 60452 0 0 3 0x14200 cleaner cleaner 74440 119465 0 0 3 0x14200 reaper reaper 25706 12158 0 0 3 0x14200 pgdaemon pagedaemon 72848 476727 0 0 3 0x14200 bored crynlk 77728 107210 0 0 3 0x14200 bored crypto 52300 181588 0 0 3 0x40014200 acpi0 acpi0 98948 512048 0 0 3 0x14200 bored softnet 2619 133288 0 0 3 0x14200 bored systqmp 90996 79149 0 0 3 0x14200 bored systq 35884 68527 0 0 3 0x40014200 bored softclock 33985 399971 0 0 3 0x40014200 idle0 6412 226951 0 0 3 0x14200 bored smr 1 424067 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 9615 6529K 7489K 78643K 18172 0 0 pcb 13 11K 12K 78643K 789 0 0 rtable 133 13K 14K 78643K 2050 0 0 ifaddr 102 22K 23K 78643K 600 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 228 0 0 iov 0 0K 33K 78643K 954 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1217 76K 77K 78643K 4174 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 70 0 0 VM map 32 8K 8K 78643K 44 0 0 sem 12 0K 1K 78643K 1321 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 3428 0 0 sigio 0 0K 1K 78643K 1010 0 0 proc 49 38K 63K 78643K 1534 0 0 subproc 32 2K 2K 78643K 374 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 338 0 0 in_multi 39 2K 2K 78643K 418 0 0 ether_multi 1 0K 0K 78643K 44 0 0 mrt 1 0K 0K 78643K 39 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 902 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 175 251K 256K 78643K 9989 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 763 0 0 NDP 24 0K 1K 78643K 192 0 0 temp 254 3545K 4168K 78643K 153099 0 0 kqueue 0 0K 0K 78643K 87 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 58 0 53 1 0 1 1 0 8 0 rtpcb 80 1463 0 1461 1 0 1 1 0 8 0 rtentry 112 385 0 336 2 0 2 2 0 8 0 unpcb 120 13752 0 13741 20 18 2 3 0 8 1 syncache 264 13 0 13 6 6 0 1 0 8 0 tcpqe 32 43 0 43 3 3 0 1 0 8 0 tcpcb 544 1867 0 1863 30 29 1 14 0 8 0 ipq 40 57 0 57 15 15 0 1 0 8 0 ipqe 40 1976 0 1976 15 15 0 1 0 8 0 inpcb 280 4747 0 4740 35 33 2 9 0 8 1 rttmr 72 10 0 10 8 8 0 1 0 8 0 ip6q 72 4 0 3 3 2 1 1 0 8 0 ip6af 40 9 0 9 2 2 0 1 0 8 0 nd6 48 57 0 53 5 4 1 1 0 8 0 pkpcb 40 10 0 10 4 4 0 1 0 8 0 ppxss 1128 63 0 63 16 15 1 1 0 8 1 art_heap8 4096 8 0 4 8 4 4 6 0 8 0 art_heap4 256 1663 0 1419 42 26 16 17 0 8 0 art_table 32 1671 0 1423 3 0 3 3 0 8 0 art_node 16 384 0 341 1 0 1 1 0 8 0 sysvmsgpl 40 57 0 21 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1317 0 1307 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 6634 0 5226 46 0 46 46 0 8 0 ffsino 240 6634 0 5226 84 0 84 84 0 8 0 nchpl 144 11797 0 11335 60 40 20 60 0 8 0 uvmvnodes 72 8301 0 0 151 0 151 151 0 8 0 vnodes 208 8301 0 0 437 0 437 437 0 8 0 namei 1024 41679 0 41679 5 4 1 1 0 8 1 vcpupl 1984 31 0 1 4 0 4 4 0 8 0 vmpool 520 42 0 12 3 0 3 3 0 8 0 scsiplug 64 3 0 3 3 3 0 1 0 8 0 scxspl 192 54350 0 54350 29 26 3 7 0 8 3 plimitpl 152 369 0 362 1 0 1 1 0 8 0 sigapl 432 3539 0 3525 2 0 2 2 0 8 0 futexpl 56 132139 0 132138 8 7 1 1 0 8 0 knotepl 112 2883 0 2864 9 8 1 3 0 8 0 kqueuepl 104 4471 0 4469 4 3 1 4 0 8 0 pipepl 112 2750 0 2731 15 13 2 2 0 8 1 fdescpl 424 3540 0 3525 2 0 2 2 0 8 0 filepl 120 46110 0 46014 34 29 5 11 0 8 2 lockfpl 104 2023 0 2022 1 0 1 1 0 8 0 lockfspl 48 605 0 604 1 0 1 1 0 8 0 sessionpl 112 38 0 28 1 0 1 1 0 8 0 pgrppl 48 110 0 100 1 0 1 1 0 8 0 ucredpl 96 4019 0 4012 1 0 1 1 0 8 0 zombiepl 144 3529 0 3529 1 0 1 1 0 8 1 processpl 864 3559 0 3529 4 0 4 4 0 8 0 procpl 632 8137 0 8095 9 5 4 5 0 8 0 sosppl 128 75 0 75 18 17 1 1 0 8 1 sockpl 384 20083 0 20063 72 67 5 15 0 8 2 mcl64k 65536 1920 0 1920 148 132 16 33 0 8 16 mcl16k 16384 47 0 47 16 15 1 1 0 8 1 mcl12k 12288 116 0 116 15 14 1 1 0 8 1 mcl9k 9216 71 0 71 15 14 1 1 0 8 1 mcl8k 8192 214 0 214 8 7 1 1 0 8 1 mcl4k 4096 500 0 500 8 7 1 1 0 8 1 mcl2k2 2112 35 0 35 15 14 1 1 0 8 1 mcl2k 2048 75886 0 75837 16 9 7 13 0 8 0 mtagpl 80 160 0 152 7 6 1 1 0 8 0 mbufpl 256 158636 0 158497 145 128 17 33 0 8 5 bufpl 256 25262 0 16979 520 0 520 520 0 8 0 anonpl 16 537978 0 517609 242 143 99 117 0 62 7 amapchunkpl 152 22968 0 22807 127 117 10 20 0 158 3 amappl16 192 24047 0 22875 225 157 68 83 0 8 8 amappl15 184 670 0 669 5 4 1 1 0 8 0 amappl14 176 706 0 701 1 0 1 1 0 8 0 amappl13 168 492 0 491 1 0 1 1 0 8 0 amappl12 160 623 0 621 5 4 1 1 0 8 0 amappl11 152 634 0 622 1 0 1 1 0 8 0 amappl10 144 91 0 87 1 0 1 1 0 8 0 amappl9 136 1139 0 1136 1 0 1 1 0 8 0 amappl8 128 707 0 658 3 1 2 2 0 8 0 amappl7 120 202 0 192 1 0 1 1 0 8 0 amappl6 112 600 0 586 1 0 1 1 0 8 0 amappl5 104 954 0 943 1 0 1 1 0 8 0 amappl4 96 3472 0 3442 1 0 1 1 0 8 0 amappl3 88 1431 0 1420 1 0 1 1 0 8 0 amappl2 80 26850 0 26771 3 1 2 3 0 8 0 amappl1 72 76716 0 76280 26 17 9 20 0 8 0 amappl 80 8754 0 8694 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 3582 0 3525 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3582 0 3525 1 0 1 1 0 8 0 vmmpekpl 168 27023 0 26991 2 0 2 2 0 8 0 vmmpepl 168 444474 0 442011 385 244 141 148 0 357 30 vmsppl 272 3539 0 3525 6 5 1 2 0 8 0 pdppl 4096 7170 0 7104 13 4 9 9 0 8 0 pvpl 32 1477354 0 1454441 632 332 300 348 0 265 104 pmappl 200 3581 0 3537 3 0 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1054 0 372 22 1 21 21 0 8 0