panic: thread 0 p_stat is 0 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8303b076) at panic+0x1cf sys/kern/subr_prf.c:198 wakeup_n(fffffd806c568258,ffffffff) at wakeup_n+0x395 sys/kern/kern_synch.c:563 sd_buf_done(fffffd807a818540) at sd_buf_done+0x2da sys/scsi/sd.c:772 vioscsi_vq_done(ffff8000000a2218) at vioscsi_vq_done+0xe1 intr_handler(ffff800037613200,ffff800000077c80) at intr_handler+0xcf Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f Xspllower() at Xspllower+0x1d softintr_dispatch(0) at softintr_dispatch+0xd4 sys/arch/amd64/amd64/softintr.c:103 Xsoftclock() at Xsoftclock+0x27 buf_get(0,0,830000) at buf_get+0x5d5 sys/kern/vfs_bio.c:1174 geteblk(830000) at geteblk+0x3c writedisklabel(d02,ffffffff82449870,ffff800000024c00) at writedisklabel+0x4b sys/arch/amd64/amd64/disksubr.c:136 sdioctl(d02,81946467,ffff8000012c5200,2,ffff80002a48d458) at sdioctl+0x903 sys/scsi/sd.c:915 end trace frame: 0xffff800037613750, 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: thread 0 p_stat is 0 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8303b076) at panic+0x1cf sys/kern/subr_prf.c:198 wakeup_n(fffffd806c568258,ffffffff) at wakeup_n+0x395 sys/kern/kern_synch.c:563 sd_buf_done(fffffd807a818540) at sd_buf_done+0x2da sys/scsi/sd.c:772 vioscsi_vq_done(ffff8000000a2218) at vioscsi_vq_done+0xe1 intr_handler(ffff800037613200,ffff800000077c80) at intr_handler+0xcf Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f Xspllower() at Xspllower+0x1d softintr_dispatch(0) at softintr_dispatch+0xd4 sys/arch/amd64/amd64/softintr.c:103 Xsoftclock() at Xsoftclock+0x27 buf_get(0,0,830000) at buf_get+0x5d5 sys/kern/vfs_bio.c:1174 geteblk(830000) at geteblk+0x3c writedisklabel(d02,ffffffff82449870,ffff800000024c00) at writedisklabel+0x4b sys/arch/amd64/amd64/disksubr.c:136 sdioctl(d02,81946467,ffff8000012c5200,2,ffff80002a48d458) at sdioctl+0x903 sys/scsi/sd.c:915 VOP_IOCTL(fffffd806efd3638,81946467,ffff8000012c5200,2,fffffd807f7d76e8,ffff80002a48d458) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd8068bdc438,81946467,ffff8000012c5200,ffff80002a48d458) at vn_ioctl+0xe8 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002a48d458,ffff800037613a50,ffff8000376139a0) at sys_ioctl+0x678 syscall(ffff800037613a50) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1958cbecaa0, count: -19 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800037613000 rbx 0xffff80002a4b0010 rdx 0 rcx 0 rax 0xffff80002a48d458 r8 0x101010101010101 r9 0x8080808080808080 r10 0x88a92df5f91f0884 r11 0xfe0c50511f745f39 r12 0 r13 0xfd r14 0 r15 0x1 rip 0xffffffff821bf475 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800037612ff0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc kernel: page fault trap, code=0 Faulted in DDB; continuing... ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 70829 51798 25463 0 3 0x80 nanoslp syz-executor 70829 233753 25463 0 3 0x4000080 kqread syz-executor 8047 512356 4115 0 3 0x80 nanoslp syz-executor 20475 451514 32958 0 3 0x80 nanoslp syz-executor 20475 39992 32958 0 3 0x4000080 kqread syz-executor 20475 464112 32958 0 3 0x4000080 fsleep syz-executor 14954 424410 0 0 3 0x14200 acct acct 14938 441314 0 0 3 0x14280 nfsidl nfsio 12426 85178 0 0 3 0x14280 nfsidl nfsio 15677 517447 0 0 3 0x14280 nfsidl nfsio 23474 37341 0 0 3 0x14280 nfsidl nfsio 57427 416697 0 0 3 0x14280 nfsidl nfsio 79589 112326 0 0 3 0x14280 nfsidl nfsio 95485 395465 0 0 3 0x14280 nfsidl nfsio 106 143453 0 0 3 0x14280 nfsidl nfsio 24203 124672 0 0 3 0x14280 nfsidl nfsio 97393 149126 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 10247 11123K 11570K 166960K 13185 0 pcb 18 14K 15K 166960K 167 0 rtable 170 8K 9K 166960K 570 0 pf 33 13K 302K 166960K 171 0 ifaddr 33 5K 7K 166960K 70 0 ifgroup 49 2K 2K 166960K 97 0 sysctl 3 0K 1K 166960K 6 0 counters 29 17K 17K 166960K 44 0 ioctlops 1 0K 4K 166960K 341 0 iov 1 1K 28K 166960K 106 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1485 93K 94K 166960K 2406 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 28 0 VM map 2 1K 1K 166960K 2 0 sem 19 10K 20K 166960K 39 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 97K 166960K 1268 0 sigio 0 0K 0K 166960K 190 0 proc 60 59K 124K 166960K 628 0 subproc 104 6K 6K 166960K 117 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 282 0 in_multi 64 4K 7K 166960K 152 0 ether_multi 1 0K 0K 166960K 4 0 mrt 2 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 853 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 234 72K 100K 166960K 13042 0 UVM aobj 130 8K 8K 166960K 136 0 pinsyscall 38 76K 96K 166960K 2328 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 59 0 NDP 10 0K 2K 166960K 46 0 temp 79 6820K 6908K 166960K 38388 0 kqueue 17 28K 30K 166960K 225 0 SYN cache 2 8K 16K 166960K 3 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 136 0 132 1 0 1 1 0 8 0 rtentry 112 163 0 91 4 0 4 4 0 8 0 unpcb 144 1008 0 988 5 0 5 5 0 8 4 syncache 336 7 0 7 1 0 1 1 0 8 1 tcpqe 32 5 0 5 1 0 1 1 0 8 1 tcpcb 808 393 0 385 8 0 8 8 0 8 7 arp 88 28 0 16 1 0 1 1 0 8 0 ipq 40 7 0 3 1 0 1 1 0 8 0 ipqe 40 104 0 100 1 0 1 1 0 8 0 inpcb 336 1544 0 1527 10 0 10 10 0 8 8 nd6 104 33 0 16 1 0 1 1 0 8 0 pkpcb 40 6 0 6 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 8 0 8 1 0 1 1 0 8 1 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pfrktable 1344 1 0 0 1 0 1 1 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 37 0 33 1 0 1 1 0 8 0 pfstkey 128 303 0 267 2 0 2 2 0 8 0 pfstate 344 168 0 166 1 0 1 1 0 8 0 pfrule 1344 50 0 13 4 0 4 4 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 643 0 341 29 1 28 29 0 8 8 art_table 32 646 0 341 4 0 4 4 0 8 0 art_node 16 158 0 98 1 0 1 1 0 8 0 semapl 112 31 0 14 1 0 1 1 0 8 0 shmpl 112 133 0 6 4 0 4 4 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dirhash: pool(0xffffffff83538280:dirhash): free list modified: page 0xffff80002a4aa000; item ordinal 0; addr 0xffff80002a4aa400 (p 0xfffffd806e490000); offset 0x0=0x0 pool(dirhash): free list modified: page 0xffff80002a4aa000; item ordinal 0; addr 0xffff80002a4aa400 (p 0xfffffd806e490000); offset 0x0=0x0 dirhash: pool(0xffffffff83538280:dirhash): page inconsistency: page 0xffff80002a4aa000; item ordinal 1; addr 0xc184d5ebad64b1b9 dino2pl 256 3545 0 2057 95 0 95 95 0 8 0 ffsino 240 3545 0 2057 89 0 89 89 0 8 0 nchpl 144 5426 0 3744 63 0 63 63 0 8 0 uvmvnodes 80 4404 0 0 90 0 90 90 0 8 0 vnodes 216 4404 0 0 245 0 245 245 0 8 0 namei 1024 21257 0 21256 2 0 2 2 0 8 1 namei: pool(0xffffffff835eff08:namei): free list modified: page 0xffff80002a4c2000; item ordinal 0; addr 0xffff80002a4c3000 (p 0xfffffd806c218000); offset 0x0=0x0 pool(namei): free list modified: page 0xffff80002a4c2000; item ordinal 0; addr 0xffff80002a4c3000 (p 0xfffffd806c218000); offset 0x0=0x0 namei: pool(0xffffffff835eff08:namei): page inconsistency: page 0xffff80002a4c2000; item ordinal 1; addr 0x597ffa0a4108e7db namei: pool(0xffffffff835eff08:namei): free list modified: page 0xffff80002a47a000; item ordinal 0; addr 0xffff80002a47ac00 (p 0xfffffd807f7e4000); offset 0x0=0x0 pool(namei): free list modified: page 0xffff80002a47a000; item ordinal 0; addr 0xffff80002a47ac00 (p 0xfffffd807f7e4000); offset 0x0=0x0 namei: pool(0xffffffff835eff08:namei): page inconsistency: page 0xffff80002a47a000; item ordinal 1; addr 0xe4c90bc4b20d0bb kstatmem 264 50 0 30 2 0 2 2 0 8 0 scsiplug 72 6 0 6 1 0 1 1 0 8 1 scxspl 216 15792 0 15791 8 0 8 8 1 8 7 plimitpl 152 550 0 534 1 0 1 1 0 8 0 sigapl 424 1571 0 1504 8 0 8 8 0 8 0 futexpl 64 17530 0 17525 1 0 1 1 0 8 0 knotepl 120 49866 0 49808 17 7 10 17 0 8 7 kqueuepl 184 418 0 403 4 0 4 4 0 8 3 pipepl 288 198 0 168 3 0 3 3 0 8 0 fdescpl 432 1531 0 1502 5 0 5 5 0 8 1 filepl 120 9917 0 9655 12 0 12 12 0 8 3 lockfpl 104 385 0 382 1 0 1 1 0 8 0 lockfspl 48 137 0 134 1 0 1 1 0 8 0 sessionpl 144 27 0 19 1 0 1 1 0 8 0 pgrppl 48 49 0 33 1 0 1 1 0 8 0 ucredpl 104 1670 0 1659 1 0 1 1 0 8 0 zombiepl 144 1505 0 1504 1 0 1 1 0 8 0 processpl 1096 1571 0 1504 5 0 5 5 0 8 0 processpl: pool(0xffffffff835f39a0:processpl): page inconsistency: page 0x0; at page head addr 0xffff80002a467f90 (p 0xffff80002a464000) procpl 648 3225 0 3147 8 0 8 8 0 8 0 procpl: pool(0xffffffff835f37f8:procpl): page inconsistency: page 0x0; at page head addr 0xffff80002a40df90 (p 0xffff80002a40c000) procpl: pool(0xffffffff835f37f8:procpl): page inconsistency: page 0x0; at page head addr 0xffff80002a457f90 (p 0xffff80002a456000) sosppl 168 13 0 13 1 0 1 1 0 8 1 sockpl 504 2750 0 2709 29 11 18 22 0 8 12 mcl64k 65536 27 0 27 1 0 1 1 0 8 1 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl12k 12288 3 0 3 1 0 1 1 0 8 1 mcl9k 9216 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 24 0 24 1 0 1 1 0 8 1 mcl4k 4096 4193 0 4139 14 0 14 14 0 8 6 mcl2k2 2112 11 0 11 1 0 1 1 0 8 1 mcl2k 2048 1252 0 1249 3 0 3 3 0 8 2 mtagpl 96 130 0 114 2 0 2 2 0 8 0 mbufpl 256 19006 0 18866 24 2 22 22 0 8 6 bufpl 280 6542 0 295 447 0 447 447 0 8 0 anonpl 24 254491 0 251102 47 0 47 47 0 187 22 amapchunkpl 152 44526 0 44008 36 0 36 36 0 158 14 amappl16 200 6132 0 6101 32 16 16 16 0 8 13 amappl15 192 10 0 10 1 0 1 1 0 8 1 amappl14 184 116 0 106 1 0 1 1 0 8 0 amappl13 176 22 0 22 1 0 1 1 0 8 1 amappl12 168 2161 0 2131 2 0 2 2 0 8 0 amappl11 160 50 0 40 1 0 1 1 0 8 0 amappl10 152 13 0 13 1 0 1 1 0 8 1 amappl9 144 131 0 130 1 0 1 1 0 8 0 amappl8 136 38 0 36 1 0 1 1 0 8 0 amappl7 128 102 0 90 1 0 1 1 0 8 0 amappl6 120 179 0 177 1 0 1 1 0 8 0 amappl5 112 141 0 131 1 0 1 1 0 8 0 amappl4 104 298 0 282 1 0 1 1 0 8 0 amappl3 96 7961 0 7860 3 0 3 3 0 8 0 amappl2 88 1830 0 1753 2 0 2 2 0 8 0 amappl1 80 11668 0 11158 13 0 13 13 0 8 0 amappl 88 12494 0 12316 5 0 5 5 0 92 0 dma16384 16384 1 0 1 1 0 1 1 0 8 1 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 258 0 258 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 20 0 19 1 0 1 1 0 8 0 aobjpl 72 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 1531 0 1502 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1531 0 1502 1 0 1 1 0 8 0 vmmpekpl 168 12714 0 12672 3 0 3 3 0 8 1 vmmpepl 168 99298 0 97542 90 0 90 90 0 357 8 vmsppl 352 1530 0 1502 4 0 4 4 0 8 1 rwobjpl 24 32809 0 27404 34 0 34 34 0 8 1 pdppl 4096 3068 0 3004 106 40 66 82 0 8 2 pvpl 32 654391 0 644729 112 0 112 112 0 265 26 pmappl 216 1530 0 1502 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 426 0 54 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8303b076) at panic+0x1cf sys/kern/subr_prf.c:198 wakeup_n(fffffd806c568258,ffffffff) at wakeup_n+0x395 sys/kern/kern_synch.c:563 sd_buf_done(fffffd807a818540) at sd_buf_done+0x2da sys/scsi/sd.c:772 vioscsi_vq_done(ffff8000000a2218) at vioscsi_vq_done+0xe1 intr_handler(ffff800037613200,ffff800000077c80) at intr_handler+0xcf Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f Xspllower() at Xspllower+0x1d softintr_dispatch(0) at softintr_dispatch+0xd4 sys/arch/amd64/amd64/softintr.c:103 Xsoftclock() at Xsoftclock+0x27 buf_get(0,0,830000) at buf_get+0x5d5 sys/kern/vfs_bio.c:1174 geteblk(830000) at geteblk+0x3c writedisklabel(d02,ffffffff82449870,ffff800000024c00) at writedisklabel+0x4b sys/arch/amd64/amd64/disksubr.c:136 sdioctl(d02,81946467,ffff8000012c5200,2,ffff80002a48d458) at sdioctl+0x903 sys/scsi/sd.c:915 VOP_IOCTL(fffffd806efd3638,81946467,ffff8000012c5200,2,fffffd807f7d76e8,ffff80002a48d458) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd8068bdc438,81946467,ffff8000012c5200,ffff80002a48d458) at vn_ioctl+0xe8 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002a48d458,ffff800037613a50,ffff8000376139a0) at sys_ioctl+0x678 syscall(ffff800037613a50) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1958cbecaa0, count: -19 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8303b076) at panic+0x1cf sys/kern/subr_prf.c:198 wakeup_n(fffffd806c568258,ffffffff) at wakeup_n+0x395 sys/kern/kern_synch.c:563 sd_buf_done(fffffd807a818540) at sd_buf_done+0x2da sys/scsi/sd.c:772 vioscsi_vq_done(ffff8000000a2218) at vioscsi_vq_done+0xe1 intr_handler(ffff800037613200,ffff800000077c80) at intr_handler+0xcf Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f Xspllower() at Xspllower+0x1d softintr_dispatch(0) at softintr_dispatch+0xd4 sys/arch/amd64/amd64/softintr.c:103 Xsoftclock() at Xsoftclock+0x27 buf_get(0,0,830000) at buf_get+0x5d5 sys/kern/vfs_bio.c:1174 geteblk(830000) at geteblk+0x3c writedisklabel(d02,ffffffff82449870,ffff800000024c00) at writedisklabel+0x4b sys/arch/amd64/amd64/disksubr.c:136 sdioctl(d02,81946467,ffff8000012c5200,2,ffff80002a48d458) at sdioctl+0x903 sys/scsi/sd.c:915 VOP_IOCTL(fffffd806efd3638,81946467,ffff8000012c5200,2,fffffd807f7d76e8,ffff80002a48d458) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd8068bdc438,81946467,ffff8000012c5200,ffff80002a48d458) at vn_ioctl+0xe8 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002a48d458,ffff800037613a50,ffff8000376139a0) at sys_ioctl+0x678 syscall(ffff800037613a50) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1958cbecaa0, count: -19