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(fffffd807bf24ed8,ffffffff) at wakeup_n+0x131 sys/kern/kern_synch.c:549 sd_buf_done(fffffd8073645dd8) 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(ffff80002e93a340,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,400ecf0) at buf_get+0x750 sys/kern/vfs_bio.c:1186 geteblk(400ecf0) at geteblk+0x2c sys/kern/vfs_bio.c:1061 readdisklabel(2902,ffffffff81a39c40,ffff800000dd2a00,0) at readdisklabel+0x145 sys/arch/amd64/amd64/disksubr.c:96 end trace frame: 0xffff80002e93a7f0, 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(fffffd807bf24ed8,ffffffff) at wakeup_n+0x131 sys/kern/kern_synch.c:549 sd_buf_done(fffffd8073645dd8) 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(ffff80002e93a340,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,400ecf0) at buf_get+0x750 sys/kern/vfs_bio.c:1186 geteblk(400ecf0) at geteblk+0x2c sys/kern/vfs_bio.c:1061 readdisklabel(2902,ffffffff81a39c40,ffff800000dd2a00,0) at readdisklabel+0x145 sys/arch/amd64/amd64/disksubr.c:96 vndopen(2902,1,2000,ffff8000fffe50a0) at vndopen+0x17a sys/dev/vnd.c:203 spec_open(ffff80002e93a878) at spec_open+0x3df sys/kern/spec_vnops.c:150 VOP_OPEN(fffffd806ecb8c28,1,fffffd807f7d7958,ffff8000fffe50a0) at VOP_OPEN+0x6c sys/kern/vfs_vops.c:138 vn_open(ffff80002e93aac8,1,0) at vn_open+0x467 sys/kern/vfs_vnops.c:177 doopenat(ffff8000fffe50a0,ffffff9c,200022c0,0,0,ffff80002e93aca0) at doopenat+0x26a sys/kern/vfs_syscalls.c:1127 syscall(ffff80002e93ad20) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb8a44045a20, count: -21 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e93a100 rbx 0 rdx 0xffff800000cc6b00 rcx 0 rax 0xffff8000fffe50a0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xd6ed33f706212416 r11 0xe23627a8e98cb2b9 r12 0 r13 0xffff8000216dcb08 r14 0 r15 0x1 rip 0xffffffff81a69eb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e93a0f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=421096 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000fffe4050,0xffff8000fffe5620 process=0xffff8000fffe8010 user=0xffff80002e935000, vmspace=0xfffffd806f26d410 estcpu=36, cpticks=5, pctcpu=0.0 user=0, sys=5, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 37801 431466 40310 0 2 0 syz-executor.5 37801 413533 40310 0 3 0x4000000 biowait syz-executor.5 54253 413148 17633 0 3 0x82 nanoslp syz-executor.4 40310 6262 17633 0 3 0x82 nanoslp syz-executor.5 48076 6410 17633 0 3 0x82 nanoslp syz-executor.3 94626 494469 0 0 3 0x14280 nfsidl nfsio 60456 167055 0 0 3 0x14280 nfsidl nfsio 22969 156496 0 0 3 0x14280 nfsidl nfsio 83884 349087 0 0 3 0x14280 nfsidl nfsio 16755 142746 0 0 3 0x14280 nfsidl nfsio 91418 406078 0 0 3 0x14280 nfsidl nfsio 16337 43666 0 0 3 0x14280 nfsidl nfsio 68277 164052 0 0 3 0x14280 nfsidl nfsio 20093 224799 0 0 3 0x14280 nfsidl nfsio 26807 175916 0 0 3 0x14280 nfsidl nfsio 12337 503251 0 0 3 0x14280 nfsidl nfsio 6636 410237 0 0 3 0x14280 nfsidl nfsio 86262 49959 0 0 3 0x14280 nfsidl nfsio 82973 411681 0 0 3 0x14280 nfsidl nfsio 64129 188784 0 0 3 0x14280 nfsidl nfsio ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10214 6417K 6867K 78643K 13519 0 pcb 13 13K 14K 78643K 202 0 rtable 175 14K 15K 78643K 667 0 ifaddr 70 19K 21K 78643K 227 0 counters 28 17K 17K 78643K 71 0 ioctlops 0 0K 2K 78643K 729 0 iov 0 0K 24K 78643K 283 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1402 88K 88K 78643K 3050 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 29 0 VM map 2 1K 1K 78643K 2 0 sem 30 1K 1K 78643K 44 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 14 49K 65K 78643K 1605 0 sigio 0 0K 0K 78643K 20 0 proc 59 59K 75K 78643K 767 0 subproc 104 6K 6K 78643K 198 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 66 0 in_multi 78 5K 6K 78643K 260 0 ether_multi 1 0K 0K 78643K 19 0 mrt 1 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 181 811K 811K 78643K 181 0 exec 0 0K 1K 78643K 1178 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 286 85K 89K 78643K 11690 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 105 0 NDP 12 0K 2K 78643K 82 0 temp 126 5770K 5853K 78643K 19156 0 kqueue 12 18K 24K 78643K 139 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 226 0 223 5 4 1 3 0 8 0 rtentry 112 219 0 142 4 0 4 4 0 8 0 unpcb 144 1914 0 1899 24 20 4 9 0 8 3 syncache 296 20 0 20 3 3 0 1 0 8 0 tcpqe 32 95 0 95 2 2 0 1 0 8 0 tcpcb 776 1922 0 1912 35 30 5 11 0 8 3 arp 88 32 0 18 1 0 1 1 0 8 0 inpcb 336 3076 0 3064 37 33 4 13 0 8 2 nd6 48 51 0 33 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 1 0 1 0 8 0 kcovpl 48 15 0 7 1 0 1 1 0 8 0 mppekey 1024 3 0 3 1 1 0 1 0 8 0 ppxss 1160 27 0 26 4 3 1 1 0 8 0 pppxif 1360 2 0 2 1 1 0 1 0 8 0 pfanchor 1280 376 0 135 26 3 23 26 0 8 0 pfqueue 264 3 0 3 1 1 0 1 0 8 0 art_heap8 4096 3 0 2 2 1 1 2 0 8 0 art_heap4 256 1026 0 692 30 8 22 29 0 8 0 art_table 32 1029 0 694 4 0 4 4 0 8 0 art_node 16 218 0 151 1 0 1 1 0 8 0 sysvmsgpl 40 59 0 49 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 33 0 5 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 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 0xffff8000216b2400 (p 0xfffffd807e98a000); offset 0x0=0x0 pool(dirhash): free list modified: page 0xffff8000216b1000; item ordinal 0; addr 0xffff8000216b2400 (p 0xfffffd807e98a000); offset 0x0=0x0 dirhash: pool(0xffffffff82bd74a8:dirhash): page inconsistency: page 0xffff8000216b1000; item ordinal 1; addr 0xd6df79bbee574150 dino2pl 256 3719 0 2287 90 0 90 90 0 8 0 ffsino 240 3719 0 2287 85 0 85 85 0 8 0 nchpl 144 5987 0 4347 63 0 63 63 0 8 0 rtmask 32 3 0 3 1 1 0 1 0 8 0 uvmvnodes 80 5095 0 0 104 0 104 104 0 8 0 vnodes 216 5095 0 0 284 0 284 284 0 8 0 namei 1024 24062 0 24059 7 6 1 3 0 8 0 namei: pool(0xffffffff82c74a18:namei): free list modified: page 0xffff80002165f000; item ordinal 0; addr 0xffff80002165f400 (p 0xfffffd807daac000); offset 0x0=0x0 namei: pool(0xffffffff82c74a18:namei): page inconsistency: page 0xffff80002165f000; item ordinal 1; addr 0x3048f014236675e2 vmpool 664 12 0 12 2 2 0 1 0 8 0 kstatmem 264 94 0 70 2 0 2 2 0 8 0 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 20902 0 20899 12 11 1 8 0 8 0 plimitpl 152 305 0 290 1 0 1 1 0 8 0 sigapl 424 1964 0 1899 8 0 8 8 0 8 0 futexpl 64 17414 0 17412 2 1 1 1 0 8 0 knotepl 120 19973 0 19893 21 17 4 7 0 8 1 kqueuepl 184 505 0 497 9 5 4 4 0 8 3 pipepl 288 397 0 368 9 6 3 5 0 8 0 fdescpl 432 1866 0 1841 4 0 4 4 0 8 0 filepl 120 16586 0 16337 33 19 14 16 0 8 6 lockfpl 104 400 0 398 1 0 1 1 0 8 0 lockfspl 48 126 0 124 1 0 1 1 0 8 0 sessionpl 144 30 0 14 1 0 1 1 0 8 0 pgrppl 48 41 0 25 1 0 1 1 0 8 0 ucredpl 104 2737 0 2725 1 0 1 1 0 8 0 zombiepl 144 1901 0 1899 1 0 1 1 0 8 0 processpl 1008 1964 0 1899 10 1 9 9 0 8 0 processpl: pool(0xffffffff82cf3698:processpl): page inconsistency: page 0x0; at page head addr 0xffff8000216fdf90 (p 0xffff8000216fc000) procpl 696 4182 0 4099 13 4 9 10 0 8 0 procpl: pool(0xffffffff82cf34f0:procpl): page inconsistency: page 0x0; at page head addr 0xffff8000216e3f90 (p 0xffff8000216e2000) sosppl 168 9 0 9 3 2 1 1 0 8 1 sockpl 456 5221 0 5191 128 117 11 29 0 8 7 mcl64k 65536 109 0 109 5 4 1 1 0 8 1 mcl16k 16384 55 0 55 5 4 1 1 0 8 1 mcl12k 12288 89 0 89 4 3 1 1 0 8 1 mcl9k 9216 16 0 16 6 6 0 1 0 8 0 mcl8k 8192 84 0 84 4 3 1 1 0 8 1 mcl4k 4096 154 0 154 5 4 1 1 0 8 1 mcl2k2 2112 11 0 11 4 4 0 1 0 8 0 mcl2k 2048 75533 0 75462 37 26 11 32 0 8 0 mtagpl 96 106 0 71 3 1 2 2 0 8 0 mbufpl 256 137072 0 136841 121 97 24 67 0 8 0 bufpl 288 6551 0 162 457 0 457 457 0 8 0 anonpl 24 396354 0 379491 131 9 122 123 0 188 9 amapchunkpl 152 34843 0 34148 50 11 39 39 0 158 8 amappl16 200 4237 0 3671 35 4 31 32 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 188 0 172 2 0 2 2 0 8 0 amappl13 176 1 0 1 1 1 0 1 0 8 0 amappl12 168 485 0 484 1 0 1 1 0 8 0 amappl11 160 51 0 39 1 0 1 1 0 8 0 amappl10 152 43 0 33 1 0 1 1 0 8 0 amappl9 144 979 0 978 1 0 1 1 0 8 0 amappl8 136 178 0 123 2 0 2 2 0 8 0 amappl7 128 161 0 139 2 0 2 2 0 8 0 amappl6 120 190 0 181 2 1 1 2 0 8 0 amappl5 112 169 0 163 1 0 1 1 0 8 0 amappl4 104 570 0 545 2 1 1 2 0 8 0 amappl3 96 4793 0 4742 2 0 2 2 0 8 0 amappl2 88 2301 0 2229 3 0 3 3 0 8 0 amappl1 80 43863 0 43172 29 12 17 26 0 8 0 amappl 88 11103 0 10932 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 1878 0 1853 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1878 0 1853 1 0 1 1 0 8 0 vmmpekpl 168 19208 0 19155 3 0 3 3 0 8 0 vmmpepl 168 179502 0 176950 162 36 126 135 0 357 1 vmsppl 344 1877 0 1853 3 0 3 3 0 8 0 rwobjpl 24 52214 0 45345 42 0 42 42 0 8 0 pdppl 4096 3762 0 3706 211 147 64 66 0 8 8 pvpl 32 1117309 0 1095172 388 156 232 324 0 265 42 pmappl 216 1877 0 1853 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1113 0 343 23 0 23 23 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(fffffd807bf24ed8,ffffffff) at wakeup_n+0x131 sys/kern/kern_synch.c:549 sd_buf_done(fffffd8073645dd8) 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(ffff80002e93a340,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,400ecf0) at buf_get+0x750 sys/kern/vfs_bio.c:1186 geteblk(400ecf0) at geteblk+0x2c sys/kern/vfs_bio.c:1061 readdisklabel(2902,ffffffff81a39c40,ffff800000dd2a00,0) at readdisklabel+0x145 sys/arch/amd64/amd64/disksubr.c:96 vndopen(2902,1,2000,ffff8000fffe50a0) at vndopen+0x17a sys/dev/vnd.c:203 spec_open(ffff80002e93a878) at spec_open+0x3df sys/kern/spec_vnops.c:150 VOP_OPEN(fffffd806ecb8c28,1,fffffd807f7d7958,ffff8000fffe50a0) at VOP_OPEN+0x6c sys/kern/vfs_vops.c:138 vn_open(ffff80002e93aac8,1,0) at vn_open+0x467 sys/kern/vfs_vnops.c:177 doopenat(ffff8000fffe50a0,ffffff9c,200022c0,0,0,ffff80002e93aca0) at doopenat+0x26a sys/kern/vfs_syscalls.c:1127 syscall(ffff80002e93ad20) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb8a44045a20, 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(fffffd807bf24ed8,ffffffff) at wakeup_n+0x131 sys/kern/kern_synch.c:549 sd_buf_done(fffffd8073645dd8) 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(ffff80002e93a340,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,400ecf0) at buf_get+0x750 sys/kern/vfs_bio.c:1186 geteblk(400ecf0) at geteblk+0x2c sys/kern/vfs_bio.c:1061 readdisklabel(2902,ffffffff81a39c40,ffff800000dd2a00,0) at readdisklabel+0x145 sys/arch/amd64/amd64/disksubr.c:96 vndopen(2902,1,2000,ffff8000fffe50a0) at vndopen+0x17a sys/dev/vnd.c:203 spec_open(ffff80002e93a878) at spec_open+0x3df sys/kern/spec_vnops.c:150 VOP_OPEN(fffffd806ecb8c28,1,fffffd807f7d7958,ffff8000fffe50a0) at VOP_OPEN+0x6c sys/kern/vfs_vops.c:138 vn_open(ffff80002e93aac8,1,0) at vn_open+0x467 sys/kern/vfs_vnops.c:177 doopenat(ffff8000fffe50a0,ffffff9c,200022c0,0,0,ffff80002e93aca0) at doopenat+0x26a sys/kern/vfs_syscalls.c:1127 syscall(ffff80002e93ad20) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb8a44045a20, count: -21