panic() at panic+0x15c sys/kern/subr_prf.c:207 fifo_badop(ffff800020d470a8) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8067b7d600) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8067b7d600) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8067b7d600) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800020d47330) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd807b2ff0d8,ffff800020d47490,ffff800020d474e0,ffff800020d473c0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020abf160,ffffff9c,7f7fffff0b10,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800020d47660) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020d47660) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7fffff0b10,88,0,7f7fffff0b34) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0b80, count: 4 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic fifo_badop called ddb{0}> 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 fifo_badop(ffff800020d470a8) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8067b7d600) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8067b7d600) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8067b7d600) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800020d47330) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd807b2ff0d8,ffff800020d47490,ffff800020d474e0,ffff800020d473c0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020abf160,ffffff9c,7f7fffff0b10,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800020d47660) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020d47660) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7fffff0b10,88,0,7f7fffff0b34) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0b80, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020d46fd0 rbx 0xffff800020d47080 rdx 0xffff800020abf160 rcx 0 rax 0 r8 0xffffffff81876b2f kprintf+0x16f r9 0x1 r10 0x25 r11 0x7e832e2d5a2689cb r12 0x3000000008 r13 0xffff800020d46fe0 r14 0x100 r15 0x1 rip 0xffffffff814e4528 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020d46fc0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=129170 stat=onproc flags process=2 proc=0 pri=17, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abeee8,0xffffffff8264ba50 process=0xffff800020a8a010 user=0xffff800020d42000, vmspace=0xfffffd807f00c730 estcpu=36, cpticks=4, pctcpu=0.4 user=0, sys=4, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *39206 129170 66618 0 7 0x2 syz-executor.1 17918 293598 1 0 3 0x100083 ttyin getty 34720 496805 66618 0 2 0x2 syz-executor.0 25326 15402 0 0 3 0x14200 bored sosplice 66618 332772 9098 0 3 0x82 thrsleep syz-fuzzer 66618 469330 9098 0 2 0x4000482 syz-fuzzer 66618 175160 9098 0 3 0x4000082 kqread syz-fuzzer 66618 104782 9098 0 3 0x4000082 thrsleep syz-fuzzer 66618 495106 9098 0 3 0x4000082 thrsleep syz-fuzzer 66618 285340 9098 0 3 0x4000082 thrsleep syz-fuzzer 66618 57892 9098 0 2 0x4000002 syz-fuzzer 66618 304291 9098 0 3 0x4000082 thrsleep syz-fuzzer 66618 343216 9098 0 7 0x4000003 syz-fuzzer 66618 337875 9098 0 3 0x4000082 thrsleep syz-fuzzer 9098 363692 66016 0 3 0x10008a pause ksh 66016 363573 36543 0 3 0x92 select sshd 36543 57953 1 0 3 0x80 select sshd 10061 515946 38182 74 3 0x100092 bpf pflogd 38182 229879 1 0 3 0x80 netio pflogd 37987 324685 93432 73 3 0x100090 kqread syslogd 93432 216746 1 0 3 0x100082 netio syslogd 19611 514686 1 77 3 0x100090 poll dhclient 25741 206645 1 0 3 0x80 poll dhclient 85470 419553 0 0 3 0x14200 pgzero zerothread 15462 163172 0 0 3 0x14200 aiodoned aiodoned 38758 146877 0 0 3 0x14200 syncer update 82300 369288 0 0 3 0x14200 cleaner cleaner 97483 176579 0 0 3 0x14200 reaper reaper 50735 451629 0 0 3 0x14200 pgdaemon pagedaemon 28491 50679 0 0 3 0x14200 bored crynlk 40680 203191 0 0 3 0x14200 bored crypto 76915 104823 0 0 3 0x40014200 acpi0 acpi0 59507 95092 0 0 3 0x40014200 idle1 64004 333373 0 0 3 0x14200 bored softnet 54934 460264 0 0 3 0x14200 bored systqmp 20158 31948 0 0 3 0x14200 bored systq 82522 89671 0 0 3 0x40014200 bored softclock 56306 504452 0 0 3 0x40014200 idle0 40416 329298 0 0 3 0x14200 bored smr 1 315984 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 39206 (syz-executor.1) thread 0xffff800020abf160 (129170) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8264e9d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 #2 mi_switch+0x392 sys/kern/sched_bsd.c:441 #3 sleep_finish+0x113 sys/kern/kern_synch.c:373 #4 tsleep+0x198 sleep_finish_timeout sys/kern/kern_synch.c:397 [inline] #4 tsleep+0x198 sleep_finish_all sys/kern/kern_synch.c:183 [inline] #4 tsleep+0x198 sys/kern/kern_synch.c:152 #5 biowait+0xa1 sys/kern/vfs_bio.c:1231 #6 bwrite+0x1e4 sys/kern/vfs_bio.c:747 #7 ffs_update+0x2c2 sys/ufs/ffs/ffs_inode.c:113 #8 ufs_mkdir+0x665 sys/ufs/ufs/ufs_vnops.c:1234 #9 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #10 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #11 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #11 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #12 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806e266b38) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:562 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #9 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #10 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #11 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #12 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #12 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #13 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806e27d1a8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:562 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:418 #6 namei+0x62c sys/kern/vfs_lookup.c:248 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9563 6451K 7068K 78643K 16235 0 0 pcb 13 8K 8K 78643K 308 0 0 rtable 113 4K 5K 78643K 775 0 0 ifaddr 72 15K 16K 78643K 261 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1562 0 0 iov 0 0K 24K 78643K 199 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1208 76K 77K 78643K 3331 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 26 0 0 VM map 2 1K 1K 78643K 8 0 0 sem 12 0K 1K 78643K 253 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1809 196K 290K 78643K 12843 0 0 file desc 4 9K 25K 78643K 2307 0 0 sigio 0 0K 0K 78643K 24 0 0 proc 60 63K 95K 78643K 831 0 0 subproc 32 2K 2K 78643K 136 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 2108 0 0 in_multi 33 2K 2K 78643K 631 0 0 ether_multi 1 0K 0K 78643K 8 0 0 mrt 0 0K 0K 78643K 7 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 434 0 0 pfkey data 0 0K 1K 78643K 1 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 101 21K 31K 78643K 8883 0 0 UVM aobj 118 5K 5K 78643K 128 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 599 0 0 NDP 16 0K 0K 78643K 79 0 0 temp 201 3560K 3636K 78643K 48060 0 0 kqueue 0 0K 0K 78643K 17 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 19 0 12 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 123 0 121 1 0 1 1 0 8 0 rtentry 112 112 0 67 2 0 2 2 0 8 0 unpcb 120 870 0 860 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 5613 0 5613 1 1 0 1 0 8 0 tcpcb 544 1842 0 1838 3 2 1 2 0 8 0 inpcb 280 6702 0 6694 7 5 2 2 0 8 1 rttmr 72 2 0 2 2 1 1 1 0 8 1 nd6 48 16 0 12 1 0 1 1 0 8 0 pkpcb 40 14 0 14 6 5 1 1 0 8 1 ppxss 1128 29 0 29 8 7 1 1 0 8 1 pffrag 232 4 0 4 3 3 0 1 0 482 0 pffrnode 88 4 0 4 3 3 0 1 0 8 0 pffrent 40 9 0 9 3 3 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 67 0 47 1 0 1 1 0 8 0 pfstkey 112 67 0 47 1 0 1 1 0 8 0 pfstate 328 67 0 47 3 1 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 487 0 267 14 0 14 14 0 8 0 art_table 32 488 0 267 2 0 2 2 0 8 0 art_node 16 107 0 66 1 0 1 1 0 8 0 sysvmsgpl 40 32 0 28 1 0 1 1 0 8 0 semapl 112 251 0 241 1 0 1 1 0 8 0 shmpl 112 126 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4851 0 3456 46 0 46 46 0 8 0 ffsino 272 4851 0 3456 95 1 94 95 0 8 0 nchpl 144 8245 0 6640 61 0 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 26701 0 26700 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 6 0 6 1 1 0 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 24121 0 24121 19 18 1 7 0 8 1 plimitpl 152 225 0 217 1 0 1 1 0 8 0 sigapl 432 2491 0 2477 3 1 2 3 0 8 0 futexpl 56 49410 0 49410 2 1 1 1 0 8 1 knotepl 112 510 0 491 1 0 1 1 0 8 0 kqueuepl 104 565 0 563 1 0 1 1 0 8 0 pipepl 112 1250 0 1231 6 5 1 2 0 8 0 fdescpl 488 2492 0 2477 3 0 3 3 0 8 0 filepl 152 20714 0 20613 12 7 5 7 0 8 1 lockfpl 104 783 0 782 1 0 1 1 0 8 0 lockfspl 48 267 0 266 1 0 1 1 0 8 0 sessionpl 112 26 0 15 1 0 1 1 0 8 0 pgrppl 48 51 0 40 1 0 1 1 0 8 0 ucredpl 96 2647 0 2638 1 0 1 1 0 8 0 zombiepl 144 2477 0 2477 3 2 1 1 0 8 1 processpl 896 2508 0 2477 4 0 4 4 0 8 0 procpl 632 7804 0 7764 7 2 5 5 0 8 1 srpgc 64 14 0 14 7 6 1 1 0 8 1 sosppl 128 37 0 37 5 5 0 1 0 8 0 sockpl 384 7734 0 7715 11 8 3 4 0 8 1 mcl64k 65536 16 0 0 2 0 2 2 0 8 0 mcl16k 16384 14 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 13 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 131 0 0 13 4 9 13 0 8 0 mtagpl 80 25 0 0 1 0 1 1 0 8 0 mbufpl 256 300 0 0 11 0 11 11 0 8 0 bufpl 256 11267 0 4219 441 0 441 441 0 8 0 anonpl 16 237676 0 224335 103 45 58 72 0 124 0 amapchunkpl 152 15856 0 15751 38 20 18 19 0 158 12 amappl16 192 11934 0 11171 83 43 40 51 0 8 1 amappl15 184 468 0 468 1 1 0 1 0 8 0 amappl14 176 65 0 63 1 0 1 1 0 8 0 amappl13 168 877 0 876 2 1 1 1 0 8 0 amappl12 160 375 0 374 3 2 1 1 0 8 0 amappl11 152 561 0 544 1 0 1 1 0 8 0 amappl10 144 33 0 28 1 0 1 1 0 8 0 amappl9 136 708 0 702 1 0 1 1 0 8 0 amappl8 128 254 0 228 1 0 1 1 0 8 0 amappl7 120 73 0 65 1 0 1 1 0 8 0 amappl6 112 548 0 536 1 0 1 1 0 8 0 amappl5 104 572 0 558 1 0 1 1 0 8 0 amappl4 96 2898 0 2868 1 0 1 1 0 8 0 amappl3 88 206 0 200 1 0 1 1 0 8 0 amappl2 80 19982 0 19915 3 1 2 3 0 8 0 amappl1 72 64170 0 63741 27 17 10 20 0 8 0 amappl 80 8156 0 8121 1 0 1 1 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 dma64 64 259 0 259 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 127 0 10 2 0 2 2 0 8 0 uaddrrnd 24 2498 0 2477 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2498 0 2477 1 0 1 1 0 8 0 vmmpekpl 168 22322 0 22289 2 0 2 2 0 8 0 vmmpepl 168 310587 0 308795 233 126 107 117 0 357 18 vmsppl 368 2491 0 2477 2 0 2 2 0 8 0 pdppl 4096 5003 0 4966 7 1 6 6 0 8 0 pvpl 32 673897 0 657421 263 107 156 176 0 265 12 pmappl 232 2497 0 2483 6 5 1 2 0 8 0 extentpl 40 38 0 22 1 0 1 1 0 8 0 phpool 112 606 0 13 18 0 18 18 0 8 0