panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *185135 33484 32767 0x10 0 0K syz-executor.0 446326 47337 0 0x2 0x4000000 1 syz-fuzzer 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(ffff800020b35558) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd807b4f6300) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd807b4f6300) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd807b4f6300) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800020b357e0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8077d824f0,ffff800020b35940,ffff800020b35990,ffff800020b35870) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020a889f8,ffffff9c,7f7fffff8bd0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800020b35b10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b35b10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7fffff8bd0,88,0,7f7fffff8bf4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff8c40, 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(ffff800020b35558) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd807b4f6300) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd807b4f6300) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd807b4f6300) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800020b357e0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8077d824f0,ffff800020b35940,ffff800020b35990,ffff800020b35870) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020a889f8,ffffff9c,7f7fffff8bd0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800020b35b10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b35b10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7fffff8bd0,88,0,7f7fffff8bf4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff8c40, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b35480 rbx 0xffff800020b35530 rdx 0xffff800020a889f8 rcx 0 rax 0 r8 0xffffffff8100e32f kprintf+0x16f r9 0x1 r10 0x25 r11 0x1f0191f7b5befe49 r12 0x3000000008 r13 0xffff800020b35490 r14 0x100 r15 0x1 rip 0xffffffff8203e078 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b35470 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=185135 stat=onproc flags process=10 proc=0 pri=17, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a898c8,0xffffffff82676ab8 process=0xffff800020a8a710 user=0xffff800020b30000, vmspace=0xfffffd806e8e8a18 estcpu=8, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *33484 185135 79170 32767 7 0x10 syz-executor.0 79170 142609 47337 0 3 0x82 wait syz-executor.0 81736 87698 51636 32767 2 0x10 syz-executor.1 51636 503653 47337 0 3 0x82 wait syz-executor.1 51462 249663 0 0 3 0x14200 bored sosplice 47337 111320 8121 0 3 0x82 thrsleep syz-fuzzer 47337 154856 8121 0 2 0x4000002 syz-fuzzer 47337 325882 8121 0 3 0x4000082 thrsleep syz-fuzzer 47337 446326 8121 0 7 0x4000002 syz-fuzzer 47337 283866 8121 0 3 0x4000082 thrsleep syz-fuzzer 47337 122977 8121 0 3 0x4000082 thrsleep syz-fuzzer 47337 14004 8121 0 3 0x4000082 thrsleep syz-fuzzer 47337 163308 8121 0 3 0x4000082 thrsleep syz-fuzzer 47337 467718 8121 0 2 0x4000002 syz-fuzzer 47337 299977 8121 0 3 0x4000082 thrsleep syz-fuzzer 8121 521404 76712 0 3 0x10008a pause ksh 76712 5654 52932 0 3 0x92 select sshd 29212 174420 1 0 3 0x100083 ttyin getty 52932 29776 1 0 3 0x80 select sshd 33614 272414 50892 73 3 0x100090 kqread syslogd 50892 133249 1 0 3 0x100082 netio syslogd 14795 178027 1 77 3 0x100090 poll dhclient 27610 460373 1 0 3 0x80 poll dhclient 71990 321160 0 0 2 0x14200 zerothread 89772 307884 0 0 3 0x14200 aiodoned aiodoned 45234 70526 0 0 3 0x14200 syncer update 94122 83468 0 0 3 0x14200 cleaner cleaner 78404 336984 0 0 3 0x14200 reaper reaper 12309 312312 0 0 3 0x14200 pgdaemon pagedaemon 20149 468524 0 0 3 0x14200 bored crynlk 82983 318232 0 0 3 0x14200 bored crypto 35468 441615 0 0 3 0x40014200 acpi0 acpi0 23705 368834 0 0 3 0x40014200 idle1 33473 488717 0 0 3 0x14200 bored softnet 77850 39865 0 0 3 0x14200 bored systqmp 26384 168945 0 0 3 0x14200 bored systq 17549 303406 0 0 3 0x40014200 bored softclock 9065 446283 0 0 3 0x40014200 idle0 65745 454628 0 0 3 0x14200 bored smr 1 18930 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 33484 (syz-executor.0) thread 0xffff800020a889f8 (185135) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82647ad0) #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:436 #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 (0xfffffd8067e65920) #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:574 #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 (0xfffffd8067e65a30) #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:574 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #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 Process 81736 (syz-executor.1) thread 0xffff800020a88c70 (87698) exclusive rrwlock inode r = 0 (0xfffffd8067e65c50) #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:574 #5 vn_closefile+0xc7 vn_close sys/kern/vfs_vnops.c:301 [inline] #5 vn_closefile+0xc7 sys/kern/vfs_vnops.c:613 #6 fdrop+0xc2 sys/kern/kern_descrip.c:1273 #7 closef+0x11d sys/kern/kern_descrip.c:1257 #8 fdrelease+0xba sys/kern/kern_descrip.c:757 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9472 6323K 6323K 78643K 13845 0 0 pcb 13 12K 14K 78643K 17 0 0 rtable 113 3K 3K 78643K 27771 0 0 ifaddr 37 22K 29K 78643K 4084 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 1452 0 0 iov 0 0K 36K 78643K 4324 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 15533 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 385 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 10771 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 33K 78643K 27688 0 0 sigio 0 0K 0K 78643K 571 0 0 proc 48 50K 83K 78643K 30835 0 0 subproc 34 2K 2K 78643K 11203 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 3K 78643K 43832 0 0 in_multi 33 2K 2K 78643K 12060 0 0 ether_multi 1 0K 0K 78643K 72 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 11884 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 181 26K 36K 78643K 102093 0 0 UVM aobj 130 6K 6K 78643K 142 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 1926 0 0 NDP 7 0K 0K 78643K 1980 0 0 temp 121 3558K 3670K 78643K 137384 0 0 kqueue 0 0K 0K 78643K 586 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 1388 0 1382 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 4230 0 4228 1 0 1 1 0 8 0 rtentry 112 6689 0 6641 2 0 2 2 0 8 0 unpcb 120 19039 0 18988 47 45 2 3 0 8 0 syncache 264 190 0 190 75 75 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 65 0 65 45 45 0 1 0 8 0 tcpcb 544 20759 0 20755 132 131 1 14 0 8 0 ipq 40 362 0 362 96 95 1 1 0 8 1 ipqe 40 13092 0 13092 96 95 1 1 0 8 1 inpcb 280 61871 0 61850 192 189 3 14 0 8 1 ip6q 72 23 0 23 13 13 0 1 0 8 0 ip6af 40 552 0 552 13 13 0 1 0 8 0 nd6 48 1320 0 1316 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 29573 0 29300 18 0 18 18 0 8 0 art_table 32 29574 0 29300 14 11 3 3 0 8 0 art_node 16 6688 0 6644 1 0 1 1 0 8 0 sysvmsgpl 40 33 0 10 1 0 1 1 0 8 0 semapl 112 10767 0 10757 1 0 1 1 0 8 0 shmpl 112 140 0 12 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 28128 0 26610 53 3 50 50 0 8 0 ffsino 272 28128 0 26610 104 2 102 102 0 8 0 nchpl 144 61837 0 60182 66 4 62 62 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 297298 0 297297 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 197326 0 197326 197 196 1 7 0 8 1 plimitpl 152 4813 0 4804 1 0 1 1 0 8 0 sigapl 432 25888 0 25874 34 32 2 3 0 8 0 futexpl 56 522858 0 522858 3 2 1 1 0 8 1 knotepl 112 21416 0 21397 57 56 1 3 0 8 0 kqueuepl 104 13135 0 13133 40 39 1 4 0 8 0 pipepl 112 22538 0 22519 49 48 1 2 0 8 0 fdescpl 488 25889 0 25874 5 2 3 3 0 8 1 filepl 152 243077 0 242979 253 247 6 14 0 8 2 lockfpl 104 6727 0 6726 1 0 1 1 0 8 0 lockfspl 48 2214 0 2213 1 0 1 1 0 8 0 sessionpl 112 674 0 664 1 0 1 1 0 8 0 pgrppl 48 915 0 905 1 0 1 1 0 8 0 ucredpl 96 45052 0 45043 1 0 1 1 0 8 0 zombiepl 144 25874 0 25874 2 1 1 1 0 8 1 processpl 896 25905 0 25874 4 0 4 4 0 8 0 procpl 632 72745 0 72705 14 9 5 5 0 8 1 srpgc 64 1314 0 1314 69 68 1 1 0 8 1 sosppl 128 683 0 683 102 101 1 1 0 8 1 sockpl 384 85673 0 85611 306 279 27 27 0 8 19 mcl64k 65536 153 0 0 10 7 3 4 0 8 0 mcl16k 16384 61 0 0 5 2 3 3 0 8 0 mcl12k 12288 105 0 0 2 0 2 2 0 8 0 mcl9k 9216 97 0 0 6 4 2 2 0 8 0 mcl8k 8192 97 0 0 10 7 3 3 0 8 0 mcl4k 4096 33 0 0 4 1 3 3 0 8 0 mcl2k2 2112 22 0 0 2 0 2 2 0 8 0 mcl2k 2048 213 0 0 20 7 13 20 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 2278 0 0 24 0 24 24 0 8 0 bufpl 256 84471 0 77427 441 0 441 441 0 8 0 anonpl 16 3223880 0 3214329 484 426 58 80 0 124 0 amapchunkpl 152 252446 0 252346 432 422 10 19 0 158 3 amappl16 192 121628 0 120980 646 605 41 58 0 8 2 amappl15 184 3963 0 3963 64 63 1 1 0 8 1 amappl14 176 7725 0 7719 1 0 1 1 0 8 0 amappl13 168 2457 0 2455 69 68 1 1 0 8 0 amappl12 160 2648 0 2642 1 0 1 1 0 8 0 amappl11 152 4839 0 4828 1 0 1 1 0 8 0 amappl10 144 2254 0 2247 1 0 1 1 0 8 0 amappl9 136 11301 0 11292 1 0 1 1 0 8 0 amappl8 128 8909 0 8769 10 5 5 5 0 8 0 amappl7 120 4946 0 4936 1 0 1 1 0 8 0 amappl6 112 3198 0 3175 1 0 1 1 0 8 0 amappl5 104 7187 0 7177 1 0 1 1 0 8 0 amappl4 96 25329 0 25284 6 4 2 2 0 8 0 amappl3 88 5610 0 5605 1 0 1 1 0 8 0 amappl2 80 157507 0 157436 3 1 2 3 0 8 0 amappl1 72 739491 0 739071 89 79 10 20 0 8 1 amappl 80 83872 0 83838 3 1 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 141 0 12 3 0 3 3 0 8 0 uaddrrnd 24 25889 0 25874 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 25889 0 25874 1 0 1 1 0 8 0 vmmpekpl 168 254230 0 254200 2 0 2 2 0 8 0 vmmpepl 168 3624810 0 3622920 712 584 128 129 0 357 23 vmsppl 368 25888 0 25874 2 0 2 2 0 8 0 pdppl 4096 51785 0 51748 8 2 6 6 0 8 1 pvpl 32 8914685 0 8901964 1116 973 143 192 0 265 2 pmappl 232 25888 0 25874 90 88 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 787 0 163 19 0 19 19 0 8 0