panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *125084 40524 32767 0x10 0 0K syz-executor.0 23564 73695 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(ffff800022b85288) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8073047600) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8073047600) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8073047600) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800022b85510) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8067b24a98,ffff800022b85670,ffff800022b856c0,ffff800022b855a0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020ab0780,ffffff9c,7f7ffffe59e0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800022b85840) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b85840) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffe59e0,88,0,7f7ffffe5a04) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe5a50, 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(ffff800022b85288) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8073047600) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8073047600) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8073047600) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800022b85510) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8067b24a98,ffff800022b85670,ffff800022b856c0,ffff800022b855a0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020ab0780,ffffff9c,7f7ffffe59e0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800022b85840) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b85840) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffe59e0,88,0,7f7ffffe5a04) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe5a50, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800022b851b0 rbx 0xffff800022b85260 rdx 0xffff800020ab0780 rcx 0 rax 0 r8 0xffffffff81e7083f kprintf+0x16f r9 0x1 r10 0x25 r11 0xf0c23fe0a35d35c3 r12 0x3000000008 r13 0xffff800022b851c0 r14 0x100 r15 0x1 rip 0xffffffff81131098 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022b851a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=125084 stat=onproc flags process=10 proc=0 pri=17, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1650,0xffffffff82668b20 process=0xffff800020a8b190 user=0xffff800022b80000, vmspace=0xfffffd807f00b8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *40524 125084 20455 32767 7 0x10 syz-executor.0 20455 69744 73695 0 3 0x82 wait syz-executor.0 89484 360538 87019 32767 2 0x10 syz-executor.1 87019 493378 73695 0 3 0x82 wait syz-executor.1 83736 25970 0 0 3 0x14200 bored sosplice 73695 145487 77739 0 3 0x82 kqread syz-fuzzer 73695 221176 77739 0 3 0x4000082 nanosleep syz-fuzzer 73695 516972 77739 0 3 0x4000082 thrsleep syz-fuzzer 73695 211134 77739 0 3 0x4000082 thrsleep syz-fuzzer 73695 240708 77739 0 3 0x4000082 thrsleep syz-fuzzer 73695 23564 77739 0 7 0x4000002 syz-fuzzer 73695 310716 77739 0 3 0x4000082 thrsleep syz-fuzzer 73695 76159 77739 0 3 0x4000082 thrsleep syz-fuzzer 73695 81385 77739 0 3 0x4000082 thrsleep syz-fuzzer 73695 479801 77739 0 3 0x4000082 thrsleep syz-fuzzer 77739 284778 32863 0 3 0x10008a pause ksh 32863 145601 4793 0 3 0x92 select sshd 30246 217098 1 0 3 0x100083 ttyin getty 4793 95099 1 0 3 0x80 select sshd 13156 141692 18780 73 3 0x100090 kqread syslogd 18780 52119 1 0 3 0x100082 netio syslogd 40154 399836 1 77 3 0x100090 poll dhclient 58359 67987 1 0 3 0x80 poll dhclient 90280 518901 0 0 2 0x14200 zerothread 94069 220046 0 0 3 0x14200 aiodoned aiodoned 59706 412169 0 0 3 0x14200 syncer update 19359 354080 0 0 3 0x14200 cleaner cleaner 66833 325138 0 0 3 0x14200 reaper reaper 83148 206499 0 0 3 0x14200 pgdaemon pagedaemon 9969 318541 0 0 3 0x14200 bored crynlk 59676 399348 0 0 3 0x14200 bored crypto 67809 474292 0 0 3 0x40014200 acpi0 acpi0 84240 511899 0 0 3 0x40014200 idle1 32263 97988 0 0 3 0x14200 bored softnet 190 282382 0 0 3 0x14200 bored systqmp 3147 413491 0 0 3 0x14200 bored systq 42849 167802 0 0 3 0x40014200 bored softclock 36390 179216 0 0 3 0x40014200 idle0 36199 313845 0 0 3 0x14200 bored smr 1 325210 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 40524 (syz-executor.0) thread 0xffff800020ab0780 (125084) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82635ac8) #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 (0xfffffd80665431b8) #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 (0xfffffd8066543708) #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 89484 (syz-executor.1) thread 0xffff800020ab09f8 (360538) exclusive rrwlock inode r = 0 (0xfffffd80665430a8) #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 9471 6323K 6323K 78643K 12528 0 0 pcb 13 12K 14K 78643K 17 0 0 rtable 109 3K 3K 78643K 16848 0 0 ifaddr 37 18K 21K 78643K 2468 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 805 0 0 iov 0 0K 48K 78643K 3044 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 9986 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 174 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 7103 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 33K 78643K 17318 0 0 sigio 0 0K 0K 78643K 359 0 0 proc 48 50K 83K 78643K 18894 0 0 subproc 34 2K 2K 78643K 6732 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 1921 0 0 in_multi 33 2K 2K 78643K 4863 0 0 ether_multi 1 0K 0K 78643K 68 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 7276 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 212 28K 37K 78643K 64309 0 0 UVM aobj 130 4K 4K 78643K 136 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 1067 0 0 NDP 9 0K 0K 78643K 1191 0 0 temp 121 3558K 3638K 78643K 85415 0 0 kqueue 0 0K 0K 78643K 567 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 835 0 829 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 2388 0 2386 1 0 1 1 0 8 0 rtentry 112 4031 0 3985 2 0 2 2 0 8 0 unpcb 120 31266 0 31225 32 30 2 3 0 8 0 syncache 264 155 0 155 61 61 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 88 0 88 30 30 0 1 0 8 0 tcpcb 544 17200 0 17195 126 124 2 13 0 8 1 ipq 40 162 0 162 49 49 0 1 0 8 0 ipqe 40 5449 0 5449 49 49 0 1 0 8 0 inpcb 280 43481 0 43472 134 131 3 13 0 8 1 ip6q 72 15 0 15 10 10 0 1 0 8 0 ip6af 40 483 0 483 10 10 0 1 0 8 0 nd6 48 795 0 791 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 17767 0 17521 16 0 16 16 0 8 0 art_table 32 17768 0 17521 9 6 3 3 0 8 1 art_node 16 4030 0 3988 1 0 1 1 0 8 0 sysvmsgpl 40 50 0 37 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 7101 0 7091 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 18810 0 17373 47 0 47 47 0 8 0 ffsino 272 18810 0 17373 102 5 97 97 0 8 0 nchpl 144 40412 0 38774 66 5 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 189234 0 189233 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 124398 0 124398 115 114 1 7 0 8 1 plimitpl 152 2960 0 2951 1 0 1 1 0 8 0 sigapl 432 16307 0 16293 23 21 2 3 0 8 0 futexpl 56 378997 0 378997 3 2 1 1 0 8 1 knotepl 112 12615 0 12596 15 14 1 2 0 8 0 kqueuepl 104 9251 0 9249 24 23 1 4 0 8 0 pipepl 112 12336 0 12317 35 33 2 2 0 8 1 fdescpl 488 16308 0 16293 4 1 3 3 0 8 1 filepl 152 173929 0 173831 192 186 6 14 0 8 2 lockfpl 104 4380 0 4379 1 0 1 1 0 8 0 lockfspl 48 1526 0 1525 1 0 1 1 0 8 0 sessionpl 112 411 0 401 1 0 1 1 0 8 0 pgrppl 48 532 0 522 1 0 1 1 0 8 0 ucredpl 96 27553 0 27544 1 0 1 1 0 8 0 zombiepl 144 16293 0 16293 1 0 1 1 0 8 1 processpl 896 16324 0 16293 4 0 4 4 0 8 0 procpl 632 46166 0 46126 17 12 5 5 0 8 1 srpgc 64 788 0 788 54 53 1 1 0 8 1 sosppl 128 512 0 512 69 69 0 1 0 8 0 sockpl 384 77515 0 77462 284 274 10 25 0 8 3 mcl64k 65536 98 0 0 4 1 3 3 0 8 0 mcl16k 16384 72 0 0 7 5 2 3 0 8 0 mcl12k 12288 57 0 0 2 0 2 2 0 8 0 mcl9k 9216 41 0 0 2 0 2 2 0 8 0 mcl8k 8192 57 0 0 5 2 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 17 0 0 2 0 2 2 0 8 0 mcl2k 2048 195 0 0 18 6 12 18 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 1709 0 0 23 1 22 22 0 8 0 bufpl 256 50295 0 43251 441 0 441 441 0 8 0 anonpl 16 2403294 0 2393742 403 343 60 73 0 124 0 amapchunkpl 152 163698 0 163573 343 325 18 20 0 158 11 amappl16 192 85931 0 85271 445 406 39 59 0 8 0 amappl15 184 1840 0 1839 1 0 1 1 0 8 0 amappl14 176 4867 0 4858 1 0 1 1 0 8 0 amappl13 168 1446 0 1444 40 39 1 1 0 8 0 amappl12 160 1773 0 1768 1 0 1 1 0 8 0 amappl11 152 2685 0 2674 1 0 1 1 0 8 0 amappl10 144 1555 0 1548 1 0 1 1 0 8 0 amappl9 136 7483 0 7475 1 0 1 1 0 8 0 amappl8 128 6021 0 5874 6 1 5 5 0 8 0 amappl7 120 2979 0 2971 1 0 1 1 0 8 0 amappl6 112 2108 0 2080 1 0 1 1 0 8 0 amappl5 104 4773 0 4761 1 0 1 1 0 8 0 amappl4 96 16352 0 16310 12 10 2 2 0 8 0 amappl3 88 3514 0 3509 1 0 1 1 0 8 0 amappl2 80 99969 0 99900 3 1 2 3 0 8 0 amappl1 72 465360 0 464939 24 14 10 20 0 8 0 amappl 80 53010 0 52968 2 0 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 16308 0 16293 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 16308 0 16293 1 0 1 1 0 8 0 vmmpekpl 168 152348 0 152317 3 0 3 3 0 8 0 vmmpepl 168 2290486 0 2288569 565 442 123 132 0 357 22 vmsppl 368 16307 0 16293 2 0 2 2 0 8 0 pdppl 4096 32623 0 32586 7 1 6 6 0 8 1 pvpl 32 6022421 0 6009716 913 760 153 181 0 265 13 pmappl 232 16307 0 16293 56 54 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 763 0 149 18 0 18 18 0 8 0