panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *237722 83893 32767 0x10 0 0K syz-executor.1 120599 20578 32767 0x10 0 1 syz-executor.0 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(ffff800022d80f38) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8064288700) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8064288700) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8064288700) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800022d811c0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd807540eb60,ffff800022d81320,ffff800022d81370,ffff800022d81250) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020a88508,ffffff9c,7f7ffffdd8c0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800022d814f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d814f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffdd8c0,88,0,7f7ffffdd8e4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdd930, 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(ffff800022d80f38) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8064288700) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8064288700) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8064288700) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800022d811c0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd807540eb60,ffff800022d81320,ffff800022d81370,ffff800022d81250) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020a88508,ffffff9c,7f7ffffdd8c0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800022d814f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d814f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffdd8c0,88,0,7f7ffffdd8e4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdd930, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800022d80e60 rbx 0xffff800022d80f10 rdx 0xffff800020a88508 rcx 0 rax 0 r8 0xffffffff816cf0ff kprintf+0x16f r9 0x1 r10 0x25 r11 0x32bf110f7003e111 r12 0x3000000008 r13 0xffff800022d80e70 r14 0x100 r15 0x1 rip 0xffffffff81c93978 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d80e50 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=237722 stat=onproc flags process=10 proc=0 pri=17, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020a898c8,0xffffffff82628ef0 process=0xffff800020a8ae10 user=0xffff800022d7c000, vmspace=0xfffffd806e8e0178 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *83893 237722 57747 32767 7 0x10 syz-executor.1 57747 15770 52336 0 3 0x82 wait syz-executor.1 20578 120599 13193 32767 7 0x10 syz-executor.0 13193 377373 52336 0 3 0x82 wait syz-executor.0 84072 352424 0 0 3 0x14200 bored sosplice 52336 100965 52392 0 3 0x82 thrsleep syz-fuzzer 52336 504847 52392 0 3 0x4000082 nanosleep syz-fuzzer 52336 250874 52392 0 3 0x4000082 thrsleep syz-fuzzer 52336 434805 52392 0 3 0x4000082 thrsleep syz-fuzzer 52336 424229 52392 0 3 0x4000082 thrsleep syz-fuzzer 52336 232335 52392 0 3 0x4000082 thrsleep syz-fuzzer 52336 41517 52392 0 3 0x4000082 thrsleep syz-fuzzer 52336 168338 52392 0 3 0x4000082 thrsleep syz-fuzzer 52336 132858 52392 0 2 0x4000002 syz-fuzzer 52336 20589 52392 0 3 0x4000082 kqread syz-fuzzer 52392 309431 6899 0 3 0x10008a pause ksh 6899 228675 5318 0 3 0x92 select sshd 71261 280763 1 0 3 0x100083 ttyin getty 5318 370698 1 0 3 0x80 select sshd 591 180428 59641 73 3 0x100090 kqread syslogd 59641 312185 1 0 3 0x100082 netio syslogd 48201 149765 1 77 3 0x100090 poll dhclient 4444 506171 1 0 3 0x80 poll dhclient 84681 438217 0 0 3 0x14200 pgzero zerothread 54370 255401 0 0 3 0x14200 aiodoned aiodoned 48007 269095 0 0 3 0x14200 syncer update 12248 470157 0 0 3 0x14200 cleaner cleaner 36582 276618 0 0 3 0x14200 reaper reaper 81255 460820 0 0 3 0x14200 pgdaemon pagedaemon 51110 210055 0 0 3 0x14200 bored crynlk 8844 237130 0 0 3 0x14200 bored crypto 12987 275895 0 0 3 0x40014200 acpi0 acpi0 63798 492115 0 0 3 0x40014200 idle1 51941 438735 0 0 3 0x14200 bored softnet 68960 348208 0 0 3 0x14200 bored systqmp 6940 380281 0 0 3 0x14200 bored systq 89733 300313 0 0 3 0x40014200 bored softclock 74392 79487 0 0 3 0x40014200 idle0 31302 493647 0 0 3 0x14200 bored smr 1 282213 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 83893 (syz-executor.1) thread 0xffff800020a88508 (237722) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8265af38) #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 (0xfffffd806711e3c8) #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 (0xfffffd806711e808) #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 20578 (syz-executor.0) thread 0xffff800020a88780 (120599) exclusive rrwlock inode r = 0 (0xfffffd806711e2b8) #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 9470 6322K 6322K 78643K 10952 0 0 pcb 13 12K 14K 78643K 17 0 0 rtable 107 3K 3K 78643K 3502 0 0 ifaddr 36 12K 12K 78643K 528 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 153 0 0 iov 0 0K 32K 78643K 733 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 2971 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 55 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 1101 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 33K 78643K 3244 0 0 sigio 0 0K 0K 78643K 45 0 0 proc 48 50K 83K 78643K 4011 0 0 subproc 34 2K 2K 78643K 1377 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 271 0 0 in_multi 33 2K 2K 78643K 939 0 0 ether_multi 1 0K 0K 78643K 9 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 1492 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 120 23K 32K 78643K 12581 0 0 UVM aobj 130 4K 4K 78643K 132 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 250 0 0 NDP 7 0K 0K 78643K 246 0 0 temp 121 3562K 3658K 78643K 19042 0 0 kqueue 0 0K 0K 78643K 51 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 171 0 164 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 432 0 430 1 0 1 1 0 8 0 rtentry 112 842 0 797 2 0 2 2 0 8 0 unpcb 120 2040 0 2027 4 3 1 2 0 8 0 syncache 264 21 0 21 10 10 0 1 0 8 0 sackhl 24 2 0 2 1 1 0 1 0 8 0 tcpqe 32 7 0 7 6 6 0 1 0 8 0 tcpcb 544 1303 0 1299 18 16 2 13 0 8 1 ipq 40 42 0 42 15 14 1 1 0 8 1 ipqe 40 1394 0 1394 15 14 1 1 0 8 1 inpcb 280 4155 0 4146 33 31 2 13 0 8 0 nd6 48 162 0 158 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3712 0 3496 14 0 14 14 0 8 0 art_table 32 3713 0 3496 2 0 2 2 0 8 0 art_node 16 841 0 800 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 14 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 1097 0 1087 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4568 0 3165 46 0 46 46 0 8 0 ffsino 272 4568 0 3165 94 0 94 94 0 8 0 nchpl 144 8663 0 7050 60 0 60 60 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 41065 0 41064 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 26589 0 26589 29 28 1 7 0 8 1 plimitpl 152 575 0 566 1 0 1 1 0 8 0 sigapl 432 3178 0 3164 7 5 2 3 0 8 0 futexpl 56 55817 0 55817 1 0 1 1 0 8 1 knotepl 112 2392 0 2373 3 2 1 2 0 8 0 kqueuepl 104 1118 0 1116 4 3 1 4 0 8 0 pipepl 112 2262 0 2243 5 4 1 2 0 8 0 fdescpl 488 3179 0 3164 3 0 3 3 0 8 1 filepl 152 26893 0 26795 34 27 7 13 0 8 3 lockfpl 104 698 0 697 1 0 1 1 0 8 0 lockfspl 48 250 0 249 1 0 1 1 0 8 0 sessionpl 112 96 0 86 1 0 1 1 0 8 0 pgrppl 48 118 0 108 1 0 1 1 0 8 0 ucredpl 96 6832 0 6823 1 0 1 1 0 8 0 zombiepl 144 3164 0 3164 1 0 1 1 0 8 1 processpl 896 3195 0 3164 4 0 4 4 0 8 0 procpl 632 8428 0 8388 6 1 5 5 0 8 1 srpgc 64 158 0 158 10 9 1 1 0 8 1 sosppl 128 77 0 77 13 13 0 1 0 8 0 sockpl 384 6995 0 6973 53 48 5 22 0 8 2 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 15 0 0 2 0 2 2 0 8 0 mcl12k 12288 23 0 0 2 0 2 2 0 8 0 mcl9k 9216 10 0 0 1 0 1 1 0 8 0 mcl8k 8192 13 0 0 2 0 2 2 0 8 0 mcl4k 4096 15 0 0 2 0 2 2 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 145 0 0 18 0 18 18 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 547 0 0 20 0 20 20 0 8 0 bufpl 256 13150 0 6106 441 0 441 441 0 8 0 anonpl 16 455036 0 445780 156 97 59 65 0 124 6 amapchunkpl 152 31265 0 31162 64 54 10 19 0 158 4 amappl16 192 14959 0 14308 150 107 43 46 0 8 8 amappl15 184 314 0 312 11 10 1 1 0 8 0 amappl14 176 833 0 830 1 0 1 1 0 8 0 amappl13 168 207 0 207 8 7 1 1 0 8 1 amappl12 160 403 0 397 2 1 1 1 0 8 0 amappl11 152 396 0 385 1 0 1 1 0 8 0 amappl10 144 430 0 425 1 0 1 1 0 8 0 amappl9 136 2139 0 2133 1 0 1 1 0 8 0 amappl8 128 1439 0 1387 2 0 2 2 0 8 0 amappl7 120 795 0 784 1 0 1 1 0 8 0 amappl6 112 293 0 272 1 0 1 1 0 8 0 amappl5 104 1089 0 1079 1 0 1 1 0 8 0 amappl4 96 3288 0 3263 1 0 1 1 0 8 0 amappl3 88 594 0 584 1 0 1 1 0 8 0 amappl2 80 18710 0 18651 3 1 2 3 0 8 0 amappl1 72 97992 0 97579 24 14 10 20 0 8 0 amappl 80 9967 0 9932 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 131 0 2 3 0 3 3 0 8 0 uaddrrnd 24 3179 0 3164 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3179 0 3164 1 0 1 1 0 8 0 vmmpekpl 168 32403 0 32371 2 0 2 2 0 8 0 vmmpepl 168 442670 0 440908 210 100 110 119 0 357 22 vmsppl 368 3178 0 3164 2 0 2 2 0 8 0 pdppl 4096 6365 0 6328 6 0 6 6 0 8 1 pvpl 32 1216723 0 1204341 304 151 153 161 0 265 24 pmappl 232 3178 0 3164 15 13 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 629 0 18 18 0 18 18 0 8 0