panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *139444 8539 32767 0x10 0 0K syz-executor.0 373178 75654 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(ffff800024f87738) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8072f5e800) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8072f5e800) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8072f5e800) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800024f879c0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd806e40a420,ffff800024f87b20,ffff800024f87b70,ffff800024f87a50) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020ab0c70,ffffff9c,7f7ffffbd730,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800024f87cf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024f87cf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffbd730,88,0,7f7ffffbd754) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbd7a0, 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(ffff800024f87738) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8072f5e800) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8072f5e800) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8072f5e800) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800024f879c0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd806e40a420,ffff800024f87b20,ffff800024f87b70,ffff800024f87a50) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020ab0c70,ffffff9c,7f7ffffbd730,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800024f87cf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024f87cf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffbd730,88,0,7f7ffffbd754) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbd7a0, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800024f87660 rbx 0xffff800024f87710 rdx 0xffff800020ab0c70 rcx 0 rax 0 r8 0xffffffff813e1fff kprintf+0x16f r9 0x1 r10 0x25 r11 0x3ba5727ae3edfd41 r12 0x3000000008 r13 0xffff800024f87670 r14 0x100 r15 0x1 rip 0xffffffff81b7ee58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024f87650 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=139444 stat=onproc flags process=10 proc=0 pri=17, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0ee8,0xffffffff8265b158 process=0xffff800020a8bc10 user=0xffff800024f82000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=4, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND * 8539 139444 9715 32767 7 0x10 syz-executor.0 9715 486139 75654 0 3 0x82 wait syz-executor.0 40920 501965 87748 32767 2 0x10 syz-executor.1 87748 370815 75654 0 3 0x82 wait syz-executor.1 7722 572 0 0 3 0x14200 bored sosplice 75654 401972 99782 0 3 0x82 thrsleep syz-fuzzer 75654 479907 99782 0 3 0x4000082 nanosleep syz-fuzzer 75654 468883 99782 0 3 0x4000082 thrsleep syz-fuzzer 75654 142770 99782 0 3 0x4000082 thrsleep syz-fuzzer 75654 415868 99782 0 3 0x4000082 thrsleep syz-fuzzer 75654 197130 99782 0 2 0x4000002 syz-fuzzer 75654 112866 99782 0 3 0x4000082 thrsleep syz-fuzzer 75654 286847 99782 0 3 0x4000082 thrsleep syz-fuzzer 75654 71889 99782 0 3 0x4000082 thrsleep syz-fuzzer 75654 373178 99782 0 7 0x4000002 syz-fuzzer 99782 177900 77492 0 3 0x10008a pause ksh 77492 390358 95877 0 3 0x92 select sshd 96486 256866 1 0 3 0x100083 ttyin getty 95877 256176 1 0 3 0x80 select sshd 10661 402578 35519 73 3 0x100090 kqread syslogd 35519 161549 1 0 3 0x100082 netio syslogd 7284 456844 1 77 3 0x100090 poll dhclient 52296 68005 1 0 3 0x80 poll dhclient 75763 407989 0 0 2 0x14200 zerothread 36834 292977 0 0 3 0x14200 aiodoned aiodoned 31505 73005 0 0 3 0x14200 syncer update 77143 130012 0 0 3 0x14200 cleaner cleaner 43028 172435 0 0 3 0x14200 reaper reaper 77520 241601 0 0 3 0x14200 pgdaemon pagedaemon 54734 281073 0 0 3 0x14200 bored crynlk 30299 14740 0 0 3 0x14200 bored crypto 56317 23578 0 0 3 0x40014200 acpi0 acpi0 17195 24003 0 0 3 0x40014200 idle1 3323 457923 0 0 3 0x14200 bored softnet 25417 473043 0 0 3 0x14200 bored systqmp 66045 520087 0 0 3 0x14200 bored systq 40312 243543 0 0 3 0x40014200 bored softclock 31824 63044 0 0 3 0x40014200 idle0 82834 400481 0 0 3 0x14200 bored smr 1 174712 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 8539 (syz-executor.0) thread 0xffff800020ab0c70 (139444) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8265aa28) #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 (0xfffffd806e409810) #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 (0xfffffd8067df6e68) #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 40920 (syz-executor.1) thread 0xffff800020ab1650 (501965) exclusive rrwlock inode r = 0 (0xfffffd80673b5c48) #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 9489 6325K 6325K 78643K 13118 0 0 pcb 13 12K 14K 78643K 17 0 0 rtable 113 3K 3K 78643K 21300 0 0 ifaddr 37 22K 29K 78643K 3176 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 1082 0 0 iov 0 0K 44K 78643K 2639 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 12091 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 215 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 7791 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 33K 78643K 19110 0 0 sigio 0 0K 0K 78643K 294 0 0 proc 48 50K 83K 78643K 23638 0 0 subproc 34 2K 2K 78643K 8670 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 1883 0 0 in_multi 33 2K 2K 78643K 6030 0 0 ether_multi 1 0K 0K 78643K 65 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 222 980K 980K 78643K 222 0 0 exec 0 0K 1K 78643K 8740 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 192 27K 38K 78643K 70993 0 0 UVM aobj 130 5K 5K 78643K 134 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 1463 0 0 NDP 7 0K 0K 78643K 1533 0 0 temp 121 3558K 3654K 78643K 102561 0 0 kqueue 0 0K 0K 78643K 286 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 1051 0 1045 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 2666 0 2664 1 0 1 1 0 8 0 rtentry 112 5162 0 5114 2 0 2 2 0 8 0 unpcb 120 14241 0 14219 47 46 1 2 0 8 0 syncache 264 136 0 136 58 57 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 130 0 130 31 30 1 1 0 8 1 tcpcb 544 28302 0 28298 156 154 2 13 0 8 1 ipq 40 240 0 240 70 70 0 1 0 8 0 ipqe 40 8146 0 8146 70 70 0 1 0 8 0 inpcb 280 42221 0 42213 191 189 2 14 0 8 1 ip6q 72 9 0 9 8 8 0 1 0 8 0 ip6af 40 291 0 291 8 8 0 1 0 8 0 nd6 48 1024 0 1018 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 22904 0 22654 16 0 16 16 0 8 0 art_table 32 22905 0 22654 18 15 3 3 0 8 0 art_node 16 5159 0 5115 1 0 1 1 0 8 0 sysvmsgpl 40 83 0 51 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 7784 0 7774 1 0 1 1 0 8 0 shmpl 112 132 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 18915 0 17467 47 0 47 47 0 8 0 ffsino 272 18915 0 17467 103 6 97 97 0 8 0 nchpl 144 41036 0 39397 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 225137 0 225136 4 3 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 126390 0 126390 146 145 1 6 0 8 1 plimitpl 152 3036 0 3027 1 0 1 1 0 8 0 sigapl 432 17757 0 17743 20 18 2 3 0 8 0 futexpl 56 379964 0 379964 3 2 1 1 0 8 1 knotepl 112 17285 0 17266 37 36 1 3 0 8 0 kqueuepl 104 10688 0 10686 29 28 1 4 0 8 0 pipepl 112 15498 0 15479 44 43 1 2 0 8 0 fdescpl 488 17758 0 17743 4 1 3 3 0 8 1 filepl 152 181699 0 181601 229 224 5 14 0 8 1 lockfpl 104 4947 0 4946 1 0 1 1 0 8 0 lockfspl 48 1532 0 1531 1 0 1 1 0 8 0 sessionpl 112 525 0 515 1 0 1 1 0 8 0 pgrppl 48 634 0 624 1 0 1 1 0 8 0 ucredpl 96 44236 0 44227 1 0 1 1 0 8 0 zombiepl 144 17743 0 17743 3 2 1 1 0 8 1 processpl 896 17774 0 17743 4 0 4 4 0 8 0 procpl 632 47906 0 47866 18 13 5 5 0 8 1 srpgc 64 1016 0 1016 34 33 1 1 0 8 1 sosppl 128 416 0 416 65 65 0 1 0 8 0 sockpl 384 59486 0 59455 321 316 5 23 0 8 0 mcl64k 65536 81 0 0 6 2 4 4 0 8 0 mcl16k 16384 65 0 0 8 5 3 3 0 8 0 mcl12k 12288 97 0 0 2 0 2 2 0 8 0 mcl9k 9216 74 0 0 5 4 1 2 0 8 0 mcl8k 8192 41 0 0 4 1 3 3 0 8 0 mcl4k 4096 57 0 0 4 1 3 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 179 0 0 19 4 15 19 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 1709 0 0 23 0 23 23 0 8 0 bufpl 256 44784 0 37740 441 0 441 441 0 8 0 anonpl 16 2432207 0 2422911 336 277 59 75 0 124 0 amapchunkpl 152 185855 0 185732 294 286 8 19 0 158 0 amappl16 192 86001 0 85380 567 523 44 56 0 8 3 amappl15 184 2146 0 2146 49 49 0 1 0 8 0 amappl14 176 5664 0 5657 1 0 1 1 0 8 0 amappl13 168 1614 0 1614 43 43 0 1 0 8 0 amappl12 160 1203 0 1195 2 1 1 1 0 8 0 amappl11 152 3590 0 3575 1 0 1 1 0 8 0 amappl10 144 1847 0 1840 1 0 1 1 0 8 0 amappl9 136 9227 0 9221 1 0 1 1 0 8 0 amappl8 128 7556 0 7424 6 1 5 5 0 8 0 amappl7 120 3786 0 3777 1 0 1 1 0 8 0 amappl6 112 3035 0 3009 1 0 1 1 0 8 0 amappl5 104 4969 0 4957 1 0 1 1 0 8 0 amappl4 96 17853 0 17805 6 4 2 2 0 8 0 amappl3 88 3375 0 3370 1 0 1 1 0 8 0 amappl2 80 102514 0 102438 5 3 2 3 0 8 0 amappl1 72 515266 0 514836 25 15 10 20 0 8 0 amappl 80 56896 0 56853 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 133 0 4 3 0 3 3 0 8 0 uaddrrnd 24 17758 0 17743 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 17758 0 17743 1 0 1 1 0 8 0 vmmpekpl 168 169476 0 169447 2 0 2 2 0 8 0 vmmpepl 168 2511275 0 2509383 616 486 130 131 0 357 31 vmsppl 368 17757 0 17743 2 0 2 2 0 8 0 pdppl 4096 35523 0 35486 7 1 6 6 0 8 1 pvpl 32 6448785 0 6436269 949 804 145 188 0 265 6 pmappl 232 17757 0 17743 67 65 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 799 0 179 19 0 19 19 0 8 0