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 *453941 42972 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(ffffffff821e6d8f,ffffffff821f8bf8,149,ffffffff821c20c7) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd802abf5900) at buf_free_pages+0x1ee sys/kern/vfs_biomem.c:318 buf_dealloc_mem(fffffd802abf5900) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:194 buf_put(fffffd802abf5900) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd802abf5900) at brelse+0x257 sys/kern/vfs_bio.c:922 vinvalbuf(fffffd802ab6fd08,2,ffffffffffffffff,ffff8000ffff2ee8,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1977 ffs_truncate(fffffd803656fb40,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff800015741678) at ufs_inactive+0x159 sys/ufs/ufs/ufs_inode.c:85 VOP_INACTIVE(fffffd802ab6fd08,ffff8000ffff2ee8) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd802ab6fd08) at vrele+0xca sys/kern/vfs_subr.c:813 ktrsettrace(ffff8000ffffbb08,80000f14,fffffd802ab6f758,fffffd803f7c6840) at ktrsettrace+0xab sys/kern/kern_ktrace.c:121 ktrops(ffff8000ffff2ee8,ffff8000ffffbb08,0,80000f14,fffffd802ab6f758,fffffd803f7c6840) at ktrops+0x1a1 sys/kern/kern_ktrace.c:539 end trace frame: 0xffff8000157418e0, 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(ffffffff821e6d8f,ffffffff821f8bf8,149,ffffffff821c20c7) at __assert+0x2b sys/kern/subr_prf.c:154 buf_free_pages(fffffd802abf5900) at buf_free_pages+0x1ee sys/kern/vfs_biomem.c:318 buf_dealloc_mem(fffffd802abf5900) at buf_dealloc_mem+0xe1 sys/kern/vfs_biomem.c:194 buf_put(fffffd802abf5900) at buf_put+0x16b sys/kern/vfs_bio.c:131 brelse(fffffd802abf5900) at brelse+0x257 sys/kern/vfs_bio.c:922 vinvalbuf(fffffd802ab6fd08,2,ffffffffffffffff,ffff8000ffff2ee8,0,ffffffffffffffff) at vinvalbuf+0x3b1 sys/kern/vfs_subr.c:1977 ffs_truncate(fffffd803656fb40,0,0,ffffffffffffffff) at ffs_truncate+0xeb1 sys/ufs/ffs/ffs_inode.c:326 ufs_inactive(ffff800015741678) at ufs_inactive+0x159 sys/ufs/ufs/ufs_inode.c:85 VOP_INACTIVE(fffffd802ab6fd08,ffff8000ffff2ee8) at VOP_INACTIVE+0xaa sys/kern/vfs_vops.c:573 vrele(fffffd802ab6fd08) at vrele+0xca sys/kern/vfs_subr.c:813 ktrsettrace(ffff8000ffffbb08,80000f14,fffffd802ab6f758,fffffd803f7c6840) at ktrsettrace+0xab sys/kern/kern_ktrace.c:121 ktrops(ffff8000ffff2ee8,ffff8000ffffbb08,0,80000f14,fffffd802ab6f758,fffffd803f7c6840) at ktrops+0x1a1 sys/kern/kern_ktrace.c:539 doktrace(fffffd802ab6f758,14,f14,0,ffff8000ffff2ee8) at doktrace+0x5e4 ktrsetchildren sys/kern/kern_ktrace.c:561 [inline] doktrace(fffffd802ab6f758,14,f14,0,ffff8000ffff2ee8) at doktrace+0x5e4 sys/kern/kern_ktrace.c:483 sys_ktrace(ffff8000ffff2ee8,ffff800015741a38,ffff800015741a80) at sys_ktrace+0xd5 sys/kern/kern_ktrace.c:524 syscall(ffff800015741b00) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff82,0,4,a50f65ee010) at Xsyscall+0x128 end of kernel end trace frame: 0xa532d5a2670, count: -18 ddb> show registers rdi 0xffffffff810adf57 db_enter+0x17 rsi 0x2459e acpi_pdirpa+0x10406 rbp 0xffff800015741160 rbx 0xffff800015741210 rdx 0x2459f acpi_pdirpa+0x10407 rcx 0xffff800014922000 rax 0xffff800014922000 r8 0xffff800015741120 r9 0x1 r10 0xffff800000a9b5c0 r11 0x3d29c8b6a4176c09 r12 0x3000000008 r13 0xffff800015741170 r14 0x100 r15 0x1 rip 0xffffffff810adf58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015741150 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=453941 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff33d8,0xffffffff825890f0 process=0xffff8000148a3b18 user=0xffff80001573c000, vmspace=0xfffffd803f014220 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 42972 474806 52097 0 2 0 syz-executor.0 *42972 453941 52097 0 7 0x4000000 syz-executor.0 72410 344482 42969 0 2 0 syz-executor.1 72410 27069 42969 0 3 0x4000080 fifor syz-executor.1 42969 44858 84025 0 3 0x82 nanosleep syz-executor.1 52097 293727 84025 0 3 0x82 nanosleep syz-executor.0 87997 358631 1 0 3 0x100083 ttyin getty 41237 41633 0 0 3 0x14200 bored sosplice 84025 446099 82346 0 3 0x82 thrsleep syz-fuzzer 84025 54006 82346 0 3 0x4000082 nanosleep syz-fuzzer 84025 319244 82346 0 3 0x4000082 thrsleep syz-fuzzer 84025 7286 82346 0 3 0x4000082 thrsleep syz-fuzzer 84025 171460 82346 0 3 0x4000082 thrsleep syz-fuzzer 84025 365997 82346 0 3 0x4000082 kqread syz-fuzzer 84025 275484 82346 0 3 0x4000082 thrsleep syz-fuzzer 84025 263265 82346 0 3 0x4000082 thrsleep syz-fuzzer 84025 489361 82346 0 3 0x4000082 thrsleep syz-fuzzer 82346 397458 53131 0 3 0x10008a pause ksh 53131 17838 32589 0 3 0x92 select sshd 32589 98895 1 0 3 0x80 select sshd 55754 129201 96169 73 3 0x100090 kqread syslogd 96169 139927 1 0 3 0x100082 netio syslogd 60421 109934 0 0 2 0x14200 zerothread 33991 254290 0 0 3 0x14200 aiodoned aiodoned 77123 428174 0 0 3 0x14200 syncer update 96724 376307 0 0 3 0x14200 cleaner cleaner 39595 343569 0 0 3 0x14200 reaper reaper 50189 382465 0 0 3 0x14200 pgdaemon pagedaemon 85899 308065 0 0 3 0x14200 bored crynlk 77662 15558 0 0 3 0x14200 bored crypto 79567 197179 0 0 3 0x40014200 acpi0 acpi0 92585 345381 0 0 3 0x14200 bored softnet 77393 321041 0 0 3 0x14200 bored systqmp 83116 331695 0 0 3 0x14200 bored systq 20707 398718 0 0 3 0x40014200 bored softclock 93155 371280 0 0 3 0x40014200 idle0 49191 168650 0 0 3 0x14200 bored smr 1 110825 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 9550 6325K 8265K 78643K 38554 0 0 pcb 13 10K 12K 78643K 1731 0 0 rtable 123 12K 12K 78643K 2114 0 0 ifaddr 272 30K 31K 78643K 1010 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 341 0 0 iov 0 0K 32K 78643K 1223 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1226 77K 78K 78643K 9466 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 89 0 0 VM map 42 10K 10K 78643K 56 0 0 sem 12 0K 0K 78643K 1849 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 5390 0 0 sigio 0 0K 0K 78643K 92 0 0 proc 44 30K 54K 78643K 2373 0 0 subproc 32 2K 2K 78643K 699 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 718 0 0 in_multi 33 2K 2K 78643K 1029 0 0 ether_multi 1 0K 0K 78643K 61 0 0 mrt 1 0K 0K 78643K 62 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 1227 0 0 pfkey data 0 0K 4K 78643K 2 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 183 333K 335K 78643K 14744 0 0 UVM aobj 130 8K 8K 78643K 133 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 1225 0 0 NDP 20 0K 1K 78643K 283 0 0 temp 167 3536K 4175K 78643K 213913 0 0 kqueue 0 0K 0K 78643K 39 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 130 0 123 1 0 1 1 0 8 0 rtpcb 80 514 0 514 24 23 1 1 0 8 1 rtentry 112 671 0 626 2 0 2 2 0 8 0 unpcb 120 6992 0 6983 3 2 1 2 0 8 0 syncache 264 46 0 46 19 18 1 1 0 8 1 tcpqe 32 106 0 106 9 8 1 1 0 8 1 tcpcb 544 3180 0 3176 51 42 9 15 0 8 8 ipq 40 83 0 83 22 21 1 1 0 8 1 ipqe 40 2247 0 2247 22 21 1 1 0 8 1 inpcb 280 8035 0 8028 55 46 9 9 0 8 8 rttmr 72 18 0 18 12 12 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 94 0 90 2 1 1 1 0 8 0 pkpcb 40 42 0 42 15 14 1 1 0 8 1 ppxss 1128 81 0 81 27 26 1 1 0 8 1 art_heap8 4096 6 0 5 4 3 1 3 0 8 0 art_heap4 256 2803 0 2578 48 33 15 15 0 8 0 art_table 32 2809 0 2583 2 0 2 2 0 8 0 art_node 16 670 0 629 1 0 1 1 0 8 0 sysvmsgpl 40 128 0 118 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1847 0 1837 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9325 0 7917 46 0 46 46 0 8 0 ffsino 240 9325 0 7917 83 0 83 83 0 8 0 nchpl 144 18483 0 18013 60 40 20 60 0 8 0 uvmvnodes 72 8495 0 0 155 0 155 155 0 8 0 vnodes 208 8495 0 0 448 0 448 448 0 8 0 namei 1024 65209 0 65209 8 7 1 1 0 8 1 vcpupl 1984 42 0 2 5 0 5 5 0 8 0 vmpool 520 54 0 14 3 0 3 3 0 8 0 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 76638 0 76638 39 38 1 7 0 8 1 plimitpl 152 455 0 449 1 0 1 1 0 8 0 sigapl 432 5447 0 5435 2 0 2 2 0 8 0 futexpl 56 160317 0 160317 9 8 1 1 0 8 1 knotepl 112 1257 0 1238 3 2 1 2 0 8 0 kqueuepl 104 1894 0 1892 10 6 4 4 0 8 3 pipepl 112 3392 0 3373 18 17 1 2 0 8 0 fdescpl 424 5448 0 5435 2 0 2 2 0 8 0 filepl 120 53307 0 53219 51 41 10 10 0 8 7 lockfpl 104 1857 0 1856 14 13 1 1 0 8 0 lockfspl 48 623 0 622 14 13 1 1 0 8 0 sessionpl 112 60 0 52 1 0 1 1 0 8 0 pgrppl 48 94 0 86 1 0 1 1 0 8 0 ucredpl 96 5896 0 5890 1 0 1 1 0 8 0 zombiepl 144 5441 0 5441 1 0 1 1 0 8 1 processpl 864 5469 0 5441 4 0 4 4 0 8 0 procpl 632 12002 0 11964 5 1 4 5 0 8 0 sosppl 128 69 0 69 23 23 0 1 0 8 0 sockpl 384 15698 0 15683 86 76 10 14 0 8 8 mcl64k 65536 1693 0 1693 130 129 1 33 0 8 1 mcl16k 16384 65 0 65 31 31 0 1 0 8 0 mcl12k 12288 168 0 168 28 27 1 1 0 8 1 mcl9k 9216 90 0 90 28 27 1 1 0 8 1 mcl8k 8192 300 0 300 22 21 1 1 0 8 1 mcl4k 4096 684 0 684 13 12 1 1 0 8 1 mcl2k2 2112 46 0 46 25 25 0 1 0 8 0 mcl2k 2048 76645 0 76601 28 21 7 13 0 8 1 mtagpl 80 256 0 252 10 9 1 1 0 8 0 mbufpl 256 174691 0 174582 291 275 16 31 0 8 8 bufpl 256 28974 0 20414 536 0 536 536 0 8 0 anonpl 16 746400 0 727055 298 197 101 101 0 62 14 amapchunkpl 152 32106 0 31948 118 101 17 31 0 158 9 amappl16 192 34599 0 33444 353 286 67 71 0 8 8 amappl15 184 765 0 761 9 8 1 1 0 8 0 amappl14 176 1540 0 1532 1 0 1 1 0 8 0 amappl13 168 398 0 398 8 7 1 1 0 8 1 amappl12 160 512 0 510 2 1 1 1 0 8 0 amappl11 152 362 0 358 1 0 1 1 0 8 0 amappl10 144 741 0 739 1 0 1 1 0 8 0 amappl9 136 2404 0 2400 1 0 1 1 0 8 0 amappl8 128 1944 0 1888 2 0 2 2 0 8 0 amappl7 120 928 0 919 1 0 1 1 0 8 0 amappl6 112 247 0 230 1 0 1 1 0 8 0 amappl5 104 989 0 982 1 0 1 1 0 8 0 amappl4 96 5757 0 5727 1 0 1 1 0 8 0 amappl3 88 1073 0 1062 1 0 1 1 0 8 0 amappl2 80 41124 0 41051 3 1 2 3 0 8 0 amappl1 72 113646 0 113257 26 17 9 20 0 8 0 amappl 80 12939 0 12880 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 132 0 3 3 0 3 3 0 8 0 uaddrrnd 24 5502 0 5435 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5502 0 5435 1 0 1 1 0 8 0 vmmpekpl 168 39898 0 39865 2 0 2 2 0 8 0 vmmpepl 168 684191 0 681847 646 503 143 174 0 357 38 vmsppl 272 5447 0 5435 4 3 1 2 0 8 0 pdppl 4096 11010 0 10938 14 4 10 10 0 8 0 pvpl 32 2102616 0 2080316 892 579 313 334 0 265 117 pmappl 200 5501 0 5449 3 0 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1268 0 583 20 0 20 20 0 8 0