panic: wakeup: p_stat is 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827ed7c0) at panic+0x161 sys/kern/subr_prf.c:198 wakeup_n(fffffd8067011018,ffffffff) at wakeup_n+0x131 sys/kern/kern_synch.c:549 sd_buf_done(fffffd807aef3040) at sd_buf_done+0x1f9 sys/scsi/sd.c:772 vioscsi_vq_done(ffff8000000a2228) at vioscsi_vq_done+0xa1 sys/dev/pv/vioscsi.c:349 virtio_check_vqs(ffff800000024800) at virtio_check_vqs+0x160 sys/dev/pv/virtio.c:228 intr_handler(ffff800027fd1880,ffff80000006a480) at intr_handler+0x4b sys/arch/amd64/amd64/intr.c:537 Xintr_ioapic_edge21_untramp() at Xintr_ioapic_edge21_untramp+0x18f Xspllower() at Xspllower+0x19 softintr_dispatch(0) at softintr_dispatch+0xc4 sys/arch/amd64/amd64/softintr.c:103 Xsoftclock() at Xsoftclock+0x1f buf_get(0,0,5d9db46) at buf_get+0x750 sys/kern/vfs_bio.c:1186 geteblk(5d9db46) at geteblk+0x2c sys/kern/vfs_bio.c:1061 readdisklabel(2902,ffffffff81a39c40,ffff800000d46e00,0) at readdisklabel+0x145 sys/arch/amd64/amd64/disksubr.c:96 end trace frame: 0xffff800027fd1d30, 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 *cpu0: wakeup: p_stat is 0 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827ed7c0) at panic+0x161 sys/kern/subr_prf.c:198 wakeup_n(fffffd8067011018,ffffffff) at wakeup_n+0x131 sys/kern/kern_synch.c:549 sd_buf_done(fffffd807aef3040) at sd_buf_done+0x1f9 sys/scsi/sd.c:772 vioscsi_vq_done(ffff8000000a2228) at vioscsi_vq_done+0xa1 sys/dev/pv/vioscsi.c:349 virtio_check_vqs(ffff800000024800) at virtio_check_vqs+0x160 sys/dev/pv/virtio.c:228 intr_handler(ffff800027fd1880,ffff80000006a480) at intr_handler+0x4b sys/arch/amd64/amd64/intr.c:537 Xintr_ioapic_edge21_untramp() at Xintr_ioapic_edge21_untramp+0x18f Xspllower() at Xspllower+0x19 softintr_dispatch(0) at softintr_dispatch+0xc4 sys/arch/amd64/amd64/softintr.c:103 Xsoftclock() at Xsoftclock+0x1f buf_get(0,0,5d9db46) at buf_get+0x750 sys/kern/vfs_bio.c:1186 geteblk(5d9db46) at geteblk+0x2c sys/kern/vfs_bio.c:1061 readdisklabel(2902,ffffffff81a39c40,ffff800000d46e00,0) at readdisklabel+0x145 sys/arch/amd64/amd64/disksubr.c:96 vndopen(2902,1,2000,ffff8000265b4038) at vndopen+0x17a sys/dev/vnd.c:203 spec_open(ffff800027fd1db8) at spec_open+0x3df sys/kern/spec_vnops.c:150 VOP_OPEN(fffffd806ec3dd00,1,fffffd807f7d77b8,ffff8000265b4038) at VOP_OPEN+0x6c sys/kern/vfs_vops.c:138 vn_open(ffff800027fd2008,1,0) at vn_open+0x467 sys/kern/vfs_vnops.c:177 doopenat(ffff8000265b4038,ffffff9c,200022c0,0,0,ffff800027fd21e0) at doopenat+0x26a sys/kern/vfs_syscalls.c:1127 syscall(ffff800027fd2260) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5d467f133a0, count: -21 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800027fd1640 rbx 0 rdx 0xffff800000cf1580 rcx 0 rax 0xffff8000265b4038 r8 0x101010101010101 r9 0x8080808080808080 r10 0xc41ec833b478e1d2 r11 0x97a49039f2e0dba8 r12 0 r13 0xffff8000216e4850 r14 0 r15 0x1 rip 0xffffffff81a69eb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800027fd1630 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.6) pid=415770 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800021703b60,0xffff8000265b5608 process=0xffff8000ffff67f0 user=0xffff800027fcd000, vmspace=0xfffffd8079176410 estcpu=36, cpticks=7, pctcpu=0.0 user=0, sys=7, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10188 6463K 7214K 78643K 12681 0 pcb 13 10K 11K 78643K 103 0 rtable 165 12K 13K 78643K 772 0 ifaddr 63 19K 20K 78643K 194 0 counters 25 17K 17K 78643K 49 0 ioctlops 0 0K 2K 78643K 78 0 iov 0 0K 16K 78643K 76 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1406 88K 88K 78643K 2152 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 2 1K 1K 78643K 2 0 sem 11 1K 1K 78643K 11 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 17 61K 67K 78643K 1136 0 sigio 0 0K 0K 78643K 24 0 proc 58 59K 75K 78643K 792 0 subproc 104 6K 6K 78643K 247 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 24 0 in_multi 70 4K 6K 78643K 245 0 ether_multi 1 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 73 334K 334K 78643K 73 0 exec 0 0K 1K 78643K 533 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 315 85K 85K 78643K 8541 0 UVM aobj 14 2K 2K 78643K 14 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 34 0 NDP 9 0K 1K 78643K 72 0 temp 115 5765K 5957K 78643K 10501 0 kqueue 12 18K 26K 78643K 124 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 rtpcb 120 188 0 185 4 3 1 3 0 8 0 rtentry 112 255 0 181 4 1 3 4 0 8 0 unpcb 144 1880 0 1801 18 9 9 11 0 8 6 syncache 296 13 0 13 4 3 1 1 0 8 1 tcpqe 32 144 0 144 3 3 0 1 0 8 0 tcpcb 776 253 0 246 9 1 8 8 0 8 7 arp 88 42 0 29 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 2 1 0 1 1 0 8 0 inpcb 336 908 0 898 20 11 9 12 0 8 8 nd6 48 59 0 43 1 0 1 1 0 8 0 kcovpl 48 19 0 11 1 0 1 1 0 8 0 ppxss 1160 1 0 1 1 0 1 1 0 8 1 pfstscr 40 3 0 0 1 0 1 1 0 8 0 pfanchor 1280 7 0 0 1 0 1 1 0 8 0 pfstitem 24 3 0 0 1 0 1 1 0 8 0 pfstkey 128 3 0 2 1 0 1 1 0 8 0 pfstate 352 3 0 0 1 0 1 1 0 8 0 art_heap8 4096 4 0 3 3 2 1 3 0 8 0 art_heap4 256 1077 0 728 31 9 22 29 0 8 0 art_table 32 1081 0 731 4 0 4 4 0 8 0 art_node 16 254 0 189 1 0 1 1 0 8 0 sysvmsgpl 40 31 0 6 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 11 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dirhash: pool(0xffffffff82bd74a8:dirhash): free list modified: page 0xffff8000216b1000; item ordinal 0; addr 0xffff8000216b1400 (p 0xfffffd806efb2000); offset 0x0=0x0 pool(dirhash): free list modified: page 0xffff8000216b1000; item ordinal 0; addr 0xffff8000216b1400 (p 0xfffffd806efb2000); offset 0x0=0x0 dirhash: pool(0xffffffff82bd74a8:dirhash): page inconsistency: page 0xffff8000216b1000; item ordinal 1; addr 0x4f21bbb0808c9f70 dino2pl 256 2953 0 1527 90 0 90 90 0 8 0 ffsino 240 2953 0 1527 85 0 85 85 0 8 0 nchpl 144 4555 0 2916 63 0 63 63 0 8 0 uvmvnodes 80 3676 0 0 76 0 76 76 0 8 0 vnodes 216 3676 0 0 205 0 205 205 0 8 0 namei 1024 17025 0 17023 3 2 1 3 0 8 0 namei: pool(0xffffffff82c74a18:namei): free list modified: page 0xffff8000216a3000; item ordinal 0; addr 0xffff8000216a3c00 (p 0xfffffd8069eaa000); offset 0x0=0x0 pool(namei): free list modified: page 0xffff8000216a3000; item ordinal 0; addr 0xffff8000216a3c00 (p 0xfffffd8069eaa000); offset 0x0=0x0 namei: pool(0xffffffff82c74a18:namei): page inconsistency: page 0xffff8000216a3000; item ordinal 1; addr 0xb6dbe859e7f981b3 vmpool 664 6 0 6 2 1 1 1 0 8 1 vmpool: pool(0xffffffff82c439f8:vmpool): page inconsistency: page 0x0; at page head addr 0xffff8000216fdf90 (p 0xffff8000216fc000) kstatmem 264 66 0 48 2 0 2 2 0 8 0 scxspl 216 13158 0 13157 9 8 1 8 0 8 0 plimitpl 152 275 0 260 1 0 1 1 0 8 0 sigapl 424 1407 0 1362 6 0 6 6 0 8 0 futexpl 64 10583 0 10577 1 0 1 1 0 8 0 knotepl 120 14373 0 14293 9 2 7 7 0 8 2 kqueuepl 184 269 0 260 5 1 4 4 0 8 3 pipepl 288 339 0 311 7 4 3 7 0 8 0 fdescpl 432 1390 0 1362 4 0 4 4 0 8 0 filepl 120 9763 0 9455 24 8 16 16 0 8 6 lockfpl 104 442 0 440 1 0 1 1 0 8 0 lockfspl 48 152 0 150 1 0 1 1 0 8 0 sessionpl 144 34 0 18 1 0 1 1 0 8 0 pgrppl 48 37 0 21 1 0 1 1 0 8 0 ucredpl 104 1264 0 1253 1 0 1 1 0 8 0 zombiepl 144 1363 0 1362 1 0 1 1 0 8 0 processpl 1008 1407 0 1362 7 1 6 6 0 8 0 processpl: pool(0xffffffff82cf3698:processpl): page inconsistency: page 0x0; at page head addr 0xffff800021681f90 (p 0xffff800021680000) processpl: pool(0xffffffff82cf3698:processpl): page inconsistency: page 0x0; at page head addr 0xffff800021709f90 (p 0xffff800021708000) procpl 696 2810 0 2740 9 2 7 8 0 8 0 procpl: pool(0xffffffff82cf34f0:procpl): page inconsistency: page 0x0; at page head addr 0xffff8000216e5f90 (p 0xffff8000216e4000) sosppl 168 6 0 6 2 1 1 1 0 8 1 sockpl 456 2976 0 2884 97 82 15 38 0 8 3 mcl64k 65536 58 0 58 2 1 1 1 0 8 1 mcl16k 16384 29 0 29 3 2 1 1 0 8 1 mcl12k 12288 23 0 23 3 2 1 1 0 8 1 mcl9k 9216 83 0 83 4 3 1 1 0 8 1 mcl8k 8192 61 0 61 3 2 1 1 0 8 1 mcl4k 4096 93 0 93 1 0 1 1 0 8 1 mcl2k2 2112 6 0 6 3 2 1 1 0 8 1 mcl2k 2048 74585 0 74517 36 25 11 32 0 8 2 mtagpl 96 173 0 37 5 1 4 4 0 8 0 mbufpl 256 127185 0 126821 162 133 29 69 0 8 6 bufpl 288 5365 0 150 373 0 373 373 0 8 0 anonpl 24 309284 0 289392 126 2 124 124 0 188 4 amapchunkpl 152 24433 0 23632 40 9 31 36 0 158 0 amappl16 200 4082 0 3362 42 0 42 42 0 8 2 amappl15 192 32 0 31 1 0 1 1 0 8 0 amappl14 184 200 0 188 2 1 1 2 0 8 0 amappl13 176 10 0 9 1 0 1 1 0 8 0 amappl12 168 546 0 540 1 0 1 1 0 8 0 amappl11 160 51 0 40 1 0 1 1 0 8 0 amappl10 152 47 0 39 1 0 1 1 0 8 0 amappl9 144 962 0 960 1 0 1 1 0 8 0 amappl8 136 174 0 122 2 0 2 2 0 8 0 amappl7 128 164 0 143 2 0 2 2 0 8 0 amappl6 120 198 0 188 2 1 1 2 0 8 0 amappl5 112 183 0 176 1 0 1 1 0 8 0 amappl4 104 563 0 540 2 1 1 2 0 8 0 amappl3 96 3238 0 3175 2 0 2 2 0 8 0 amappl2 88 1851 0 1779 3 1 2 3 0 8 0 amappl1 80 33038 0 32273 26 10 16 26 0 8 0 amappl 88 7946 0 7745 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 72 13 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1396 0 1368 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1396 0 1368 1 0 1 1 0 8 0 vmmpekpl 168 15792 0 15738 3 0 3 3 0 8 0 vmmpepl 168 140037 0 137063 164 27 137 139 0 357 7 vmsppl 344 1395 0 1368 3 0 3 3 0 8 0 rwobjpl 24 40537 0 34967 34 0 34 34 0 8 0 pdppl 4096 2798 0 2736 170 106 64 64 0 8 2 pvpl 32 691915 0 666554 359 72 287 359 0 265 82 pmappl 216 1395 0 1368 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 995 0 299 21 0 21 21 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:437 panic(ffffffff827ed7c0) at panic+0x161 sys/kern/subr_prf.c:198 wakeup_n(fffffd8067011018,ffffffff) at wakeup_n+0x131 sys/kern/kern_synch.c:549 sd_buf_done(fffffd807aef3040) at sd_buf_done+0x1f9 sys/scsi/sd.c:772 vioscsi_vq_done(ffff8000000a2228) at vioscsi_vq_done+0xa1 sys/dev/pv/vioscsi.c:349 virtio_check_vqs(ffff800000024800) at virtio_check_vqs+0x160 sys/dev/pv/virtio.c:228 intr_handler(ffff800027fd1880,ffff80000006a480) at intr_handler+0x4b sys/arch/amd64/amd64/intr.c:537 Xintr_ioapic_edge21_untramp() at Xintr_ioapic_edge21_untramp+0x18f Xspllower() at Xspllower+0x19 softintr_dispatch(0) at softintr_dispatch+0xc4 sys/arch/amd64/amd64/softintr.c:103 Xsoftclock() at Xsoftclock+0x1f buf_get(0,0,5d9db46) at buf_get+0x750 sys/kern/vfs_bio.c:1186 geteblk(5d9db46) at geteblk+0x2c sys/kern/vfs_bio.c:1061 readdisklabel(2902,ffffffff81a39c40,ffff800000d46e00,0) at readdisklabel+0x145 sys/arch/amd64/amd64/disksubr.c:96 vndopen(2902,1,2000,ffff8000265b4038) at vndopen+0x17a sys/dev/vnd.c:203 spec_open(ffff800027fd1db8) at spec_open+0x3df sys/kern/spec_vnops.c:150 VOP_OPEN(fffffd806ec3dd00,1,fffffd807f7d77b8,ffff8000265b4038) at VOP_OPEN+0x6c sys/kern/vfs_vops.c:138 vn_open(ffff800027fd2008,1,0) at vn_open+0x467 sys/kern/vfs_vnops.c:177 doopenat(ffff8000265b4038,ffffff9c,200022c0,0,0,ffff800027fd21e0) at doopenat+0x26a sys/kern/vfs_syscalls.c:1127 syscall(ffff800027fd2260) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5d467f133a0, count: -21 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827ed7c0) at panic+0x161 sys/kern/subr_prf.c:198 wakeup_n(fffffd8067011018,ffffffff) at wakeup_n+0x131 sys/kern/kern_synch.c:549 sd_buf_done(fffffd807aef3040) at sd_buf_done+0x1f9 sys/scsi/sd.c:772 vioscsi_vq_done(ffff8000000a2228) at vioscsi_vq_done+0xa1 sys/dev/pv/vioscsi.c:349 virtio_check_vqs(ffff800000024800) at virtio_check_vqs+0x160 sys/dev/pv/virtio.c:228 intr_handler(ffff800027fd1880,ffff80000006a480) at intr_handler+0x4b sys/arch/amd64/amd64/intr.c:537 Xintr_ioapic_edge21_untramp() at Xintr_ioapic_edge21_untramp+0x18f Xspllower() at Xspllower+0x19 softintr_dispatch(0) at softintr_dispatch+0xc4 sys/arch/amd64/amd64/softintr.c:103 Xsoftclock() at Xsoftclock+0x1f buf_get(0,0,5d9db46) at buf_get+0x750 sys/kern/vfs_bio.c:1186 geteblk(5d9db46) at geteblk+0x2c sys/kern/vfs_bio.c:1061 readdisklabel(2902,ffffffff81a39c40,ffff800000d46e00,0) at readdisklabel+0x145 sys/arch/amd64/amd64/disksubr.c:96 vndopen(2902,1,2000,ffff8000265b4038) at vndopen+0x17a sys/dev/vnd.c:203 spec_open(ffff800027fd1db8) at spec_open+0x3df sys/kern/spec_vnops.c:150 VOP_OPEN(fffffd806ec3dd00,1,fffffd807f7d77b8,ffff8000265b4038) at VOP_OPEN+0x6c sys/kern/vfs_vops.c:138 vn_open(ffff800027fd2008,1,0) at vn_open+0x467 sys/kern/vfs_vnops.c:177 doopenat(ffff8000265b4038,ffffff9c,200022c0,0,0,ffff800027fd21e0) at doopenat+0x26a sys/kern/vfs_syscalls.c:1127 syscall(ffff800027fd2260) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5d467f133a0, count: -21