panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *397054 81778 32767 0x10 0 1K syz-executor.0 445540 29813 0 0x2 0 0 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(ffff800024d97798) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8067898100) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8067898100) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8067898100) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800024d97a20) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd80653cf758,ffff800024d97b80,ffff800024d97bd0,ffff800024d97ab0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020ab18c8,ffffff9c,7f7ffffcbf50,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800024d97d50) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024d97d50) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffcbf50,88,0,7f7ffffcbf74) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcbfc0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic fifo_badop called ddb{1}> 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(ffff800024d97798) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8067898100) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8067898100) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8067898100) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800024d97a20) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd80653cf758,ffff800024d97b80,ffff800024d97bd0,ffff800024d97ab0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020ab18c8,ffffff9c,7f7ffffcbf50,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800024d97d50) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024d97d50) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffcbf50,88,0,7f7ffffcbf74) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcbfc0, count: -11 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800024d976c0 rbx 0xffff800024d97770 rdx 0xffff800020ab18c8 rcx 0 rax 0 r8 0xffffffff8187f43f kprintf+0x16f r9 0x1 r10 0x25 r11 0xfcebff3e63067f9 r12 0x3000000008 r13 0xffff800024d976d0 r14 0x100 r15 0x1 rip 0xffffffff817995a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024d976b0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=397054 stat=onproc flags process=10 proc=0 pri=17, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab13d8,0xffffffff82678e80 process=0xffff800020a8b510 user=0xffff800024d92000, vmspace=0xfffffd807f00acf0 estcpu=14, cpticks=2, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *81778 397054 94266 32767 7 0x10 syz-executor.0 94266 183031 29813 0 3 0x82 wait syz-executor.0 41659 84076 55240 32767 2 0x10 syz-executor.1 55240 135294 29813 0 3 0x82 wait syz-executor.1 30173 224889 0 0 3 0x14200 bored sosplice 29813 445540 94079 0 7 0x2 syz-fuzzer 29813 200979 94079 0 3 0x4000082 nanosleep syz-fuzzer 29813 44337 94079 0 2 0x4000002 syz-fuzzer 29813 191442 94079 0 3 0x4000082 thrsleep syz-fuzzer 29813 238152 94079 0 3 0x4000082 thrsleep syz-fuzzer 29813 245213 94079 0 3 0x4000082 thrsleep syz-fuzzer 29813 28210 94079 0 3 0x4000082 thrsleep syz-fuzzer 29813 121689 94079 0 3 0x4000082 thrsleep syz-fuzzer 29813 420603 94079 0 3 0x4000082 thrsleep syz-fuzzer 29813 306644 94079 0 3 0x4000082 thrsleep syz-fuzzer 94079 522192 22539 0 3 0x10008a pause ksh 22539 30749 93862 0 3 0x92 select sshd 50389 118853 1 0 3 0x100083 ttyin getty 93862 140922 1 0 3 0x80 select sshd 48119 219735 90001 73 3 0x100090 kqread syslogd 90001 302603 1 0 3 0x100082 netio syslogd 20298 5755 1 77 3 0x100090 poll dhclient 12615 231244 1 0 3 0x80 poll dhclient 3836 68714 0 0 2 0x14200 zerothread 11644 349025 0 0 3 0x14200 aiodoned aiodoned 75349 454901 0 0 3 0x14200 syncer update 77950 422119 0 0 3 0x14200 cleaner cleaner 32184 129615 0 0 3 0x14200 reaper reaper 24716 352671 0 0 3 0x14200 pgdaemon pagedaemon 23477 181025 0 0 3 0x14200 bored crynlk 96560 13809 0 0 3 0x14200 bored crypto 80777 388679 0 0 3 0x40014200 acpi0 acpi0 44396 488866 0 0 3 0x40014200 idle1 23580 187139 0 0 3 0x14200 bored softnet 25923 431838 0 0 3 0x14200 bored systqmp 26497 127201 0 0 3 0x14200 bored systq 90614 490951 0 0 3 0x40014200 bored softclock 30563 233216 0 0 3 0x40014200 idle0 28387 272165 0 0 3 0x14200 bored smr 1 123054 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 81778 (syz-executor.0) thread 0xffff800020ab18c8 (397054) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82637a78) #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 (0xfffffd806370b818) #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 (0xfffffd806370be78) #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 41659 (syz-executor.1) thread 0xffff800020ab0508 (84076) exclusive rrwlock inode r = 0 (0xfffffd806370bf88) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9471 6323K 6323K 78643K 11028 0 0 pcb 13 12K 14K 78643K 17 0 0 rtable 105 3K 3K 78643K 4204 0 0 ifaddr 36 12K 12K 78643K 620 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 230 0 0 iov 0 0K 32K 78643K 858 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 3826 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 1221 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 2203 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 33K 78643K 7821 0 0 sigio 0 0K 0K 78643K 95 0 0 proc 48 50K 83K 78643K 4689 0 0 subproc 34 2K 2K 78643K 1632 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 1108 0 0 in_multi 33 2K 2K 78643K 1184 0 0 ether_multi 1 0K 0K 78643K 15 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 3129 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 135 23K 33K 78643K 26058 0 0 UVM aobj 130 5K 5K 78643K 130 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 354 0 0 NDP 9 0K 0K 78643K 291 0 0 temp 121 3558K 3708K 78643K 39756 0 0 kqueue 0 0K 3K 78643K 7345 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 207 0 201 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 691 0 689 1 0 1 1 0 8 0 rtentry 112 998 0 954 2 0 2 2 0 8 0 unpcb 120 6759 0 6743 5 4 1 2 0 8 0 syncache 264 33 0 33 15 15 0 1 0 8 0 sackhl 24 3 0 3 3 3 0 1 0 8 0 tcpqe 32 52 0 52 11 11 0 1 0 8 0 tcpcb 544 4352 0 4346 41 39 2 15 0 8 1 ipq 40 41 0 41 14 13 1 1 0 8 1 ipqe 40 1516 0 1516 14 13 1 1 0 8 1 inpcb 280 9608 0 9599 62 60 2 13 0 8 1 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 192 0 188 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 4435 0 4220 14 0 14 14 0 8 0 art_table 32 4436 0 4220 2 0 2 2 0 8 0 art_node 16 997 0 957 1 0 1 1 0 8 0 sysvmsgpl 40 52 0 12 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 2201 0 2191 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 dino1pl 128 12900 0 11494 46 0 46 46 0 8 0 ffsino 272 12900 0 11494 96 1 95 95 0 8 0 nchpl 144 25927 0 24310 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 144253 0 144252 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 66953 0 66953 50 48 2 7 0 8 2 plimitpl 152 2003 0 1994 1 0 1 1 0 8 0 sigapl 432 7710 0 7696 10 8 2 3 0 8 0 futexpl 56 292743 0 292743 1 0 1 1 0 8 1 knotepl 112 12905 0 12886 20 18 2 3 0 8 1 kqueuepl 104 25854 0 25852 34 31 3 4 0 8 2 pipepl 112 4936 0 4917 10 8 2 2 0 8 1 fdescpl 488 7711 0 7696 3 0 3 3 0 8 0 filepl 152 129879 0 129781 80 72 8 13 0 8 4 lockfpl 104 1060 0 1059 1 0 1 1 0 8 0 lockfspl 48 390 0 389 1 0 1 1 0 8 0 sessionpl 112 111 0 101 1 0 1 1 0 8 0 pgrppl 48 133 0 123 1 0 1 1 0 8 0 ucredpl 96 36424 0 36415 1 0 1 1 0 8 0 zombiepl 144 7696 0 7696 1 0 1 1 0 8 1 processpl 896 7727 0 7696 4 0 4 4 0 8 0 procpl 632 21184 0 21144 10 5 5 5 0 8 1 srpgc 64 188 0 188 14 13 1 1 0 8 1 sosppl 128 340 0 340 16 15 1 1 0 8 1 sockpl 384 17150 0 17123 108 102 6 22 0 8 2 mcl64k 65536 66 0 0 4 1 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 180 0 0 17 2 15 17 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 778 0 0 23 0 23 23 0 8 0 bufpl 256 23221 0 16177 441 0 441 441 0 8 0 anonpl 16 880643 0 871314 206 138 68 68 0 124 12 amapchunkpl 152 56901 0 56795 96 84 12 19 0 158 6 amappl16 192 33015 0 32325 214 171 43 47 0 8 8 amappl15 184 2855 0 2855 6 5 1 1 0 8 1 amappl14 176 1122 0 1120 1 0 1 1 0 8 0 amappl13 168 760 0 760 11 11 0 1 0 8 0 amappl12 160 262 0 255 1 0 1 1 0 8 0 amappl11 152 2685 0 2674 1 0 1 1 0 8 0 amappl10 144 506 0 498 1 0 1 1 0 8 0 amappl9 136 2366 0 2360 1 0 1 1 0 8 0 amappl8 128 1744 0 1680 4 1 3 3 0 8 0 amappl7 120 894 0 886 1 0 1 1 0 8 0 amappl6 112 2540 0 2520 1 0 1 1 0 8 0 amappl5 104 1538 0 1527 1 0 1 1 0 8 0 amappl4 96 9776 0 9742 1 0 1 1 0 8 0 amappl3 88 1400 0 1394 1 0 1 1 0 8 0 amappl2 80 57046 0 56986 3 1 2 3 0 8 0 amappl1 72 207000 0 206587 24 14 10 20 0 8 0 amappl 80 22964 0 22928 4 2 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 7711 0 7696 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7711 0 7696 1 0 1 1 0 8 0 vmmpekpl 168 65345 0 65314 2 0 2 2 0 8 0 vmmpepl 168 1022148 0 1020337 250 137 113 123 0 357 24 vmsppl 368 7710 0 7696 2 0 2 2 0 8 0 pdppl 4096 15429 0 15392 6 0 6 6 0 8 1 pvpl 32 2533619 0 2521074 417 249 168 169 0 265 37 pmappl 232 7710 0 7696 14 12 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 661 0 46 18 0 18 18 0 8 0