panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *376705 46095 32767 0x10 0 1K syz-executor.0 229929 9417 32767 0x10 0 0 syz-executor.1 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(ffff800022d75588) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd80674eea00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd80674eea00) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd80674eea00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800022d75810) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8067f6d840,ffff800022d75970,ffff800022d759c0,ffff800022d758a0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020a88780,ffffff9c,7f7fffff5030,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800022d75b40) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d75b40) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7fffff5030,88,0,7f7fffff5054) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff50a0, 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(ffff800022d75588) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd80674eea00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd80674eea00) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd80674eea00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800022d75810) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8067f6d840,ffff800022d75970,ffff800022d759c0,ffff800022d758a0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020a88780,ffffff9c,7f7fffff5030,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800022d75b40) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d75b40) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7fffff5030,88,0,7f7fffff5054) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff50a0, count: -11 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800022d754b0 rbx 0xffff800022d75560 rdx 0xffff800020a88780 rcx 0 rax 0 r8 0xffffffff81a06ccf kprintf+0x16f r9 0x1 r10 0x25 r11 0x7a77cc66652572ef r12 0x3000000008 r13 0xffff800022d754c0 r14 0x100 r15 0x1 rip 0xffffffff811ec488 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d754a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=376705 stat=onproc flags process=10 proc=0 pri=17, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020a88508,0xffffffff8265a4b0 process=0xffff800020adca80 user=0xffff800022d70000, vmspace=0xfffffd807f00a730 estcpu=36, cpticks=1, pctcpu=0.2 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *46095 376705 66584 32767 7 0x10 syz-executor.0 66584 62848 48566 0 3 0x82 wait syz-executor.0 9417 229929 15877 32767 7 0x10 syz-executor.1 15877 260502 48566 0 3 0x82 wait syz-executor.1 40842 83501 0 0 3 0x14200 bored sosplice 48566 38486 14929 0 3 0x82 thrsleep syz-fuzzer 48566 507957 14929 0 3 0x4000082 nanosleep syz-fuzzer 48566 298001 14929 0 3 0x4000082 thrsleep syz-fuzzer 48566 237237 14929 0 3 0x4000082 thrsleep syz-fuzzer 48566 148277 14929 0 2 0x4000002 syz-fuzzer 48566 66792 14929 0 3 0x4000082 thrsleep syz-fuzzer 48566 196480 14929 0 3 0x4000082 thrsleep syz-fuzzer 48566 269871 14929 0 3 0x4000082 thrsleep syz-fuzzer 48566 286822 14929 0 3 0x4000082 kqread syz-fuzzer 48566 457854 14929 0 3 0x4000082 thrsleep syz-fuzzer 14929 416031 61677 0 3 0x10008a pause ksh 61677 107807 2161 0 3 0x92 select sshd 56312 425052 1 0 3 0x100083 ttyin getty 2161 139281 1 0 3 0x80 select sshd 47896 441657 9479 73 3 0x100090 kqread syslogd 9479 410292 1 0 3 0x100082 netio syslogd 28331 493144 1 77 3 0x100090 poll dhclient 49477 382612 1 0 3 0x80 poll dhclient 9263 104888 0 0 3 0x14200 pgzero zerothread 28388 387130 0 0 3 0x14200 aiodoned aiodoned 63655 445153 0 0 3 0x14200 syncer update 15595 223815 0 0 3 0x14200 cleaner cleaner 33640 424552 0 0 3 0x14200 reaper reaper 6286 195688 0 0 3 0x14200 pgdaemon pagedaemon 31830 266848 0 0 3 0x14200 bored crynlk 79586 383349 0 0 3 0x14200 bored crypto 38604 303122 0 0 3 0x40014200 acpi0 acpi0 14585 325501 0 0 3 0x40014200 idle1 37503 430344 0 0 3 0x14200 bored softnet 5938 261157 0 0 3 0x14200 bored systqmp 97494 229355 0 0 3 0x14200 bored systq 6449 115870 0 0 3 0x40014200 bored softclock 64490 185385 0 0 3 0x40014200 idle0 34272 388319 0 0 3 0x14200 bored smr 1 101203 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 46095 (syz-executor.0) thread 0xffff800020a88780 (376705) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8265b9a0) #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 (0xfffffd8079157700) #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 (0xfffffd8079157d60) #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 9417 (syz-executor.1) thread 0xffff800020a88290 (229929) exclusive rrwlock inode r = 0 (0xfffffd80791575f0) #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 13443 0 0 pcb 13 12K 14K 78643K 17 0 0 rtable 113 3K 4K 78643K 24324 0 0 ifaddr 38 22K 29K 78643K 3586 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 1115 0 0 iov 0 0K 48K 78643K 10884 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 13987 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 304 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 4864 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 33K 78643K 23821 0 0 sigio 0 0K 0K 78643K 393 0 0 proc 48 50K 90K 78643K 27092 0 0 subproc 34 2K 2K 78643K 9843 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 2767 0 0 in_multi 33 2K 2K 78643K 6853 0 0 ether_multi 1 0K 0K 78643K 50 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 10122 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 171 25K 37K 78643K 86554 0 0 UVM aobj 130 4K 4K 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 1705 0 0 NDP 7 0K 0K 78643K 1740 0 0 temp 121 3558K 3654K 78643K 120048 0 0 kqueue 0 0K 0K 78643K 387 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 1240 0 1234 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 3318 0 3316 1 0 1 1 0 8 0 rtentry 112 5902 0 5854 2 0 2 2 0 8 0 unpcb 120 15712 0 15669 39 37 2 3 0 8 0 syncache 264 147 0 147 56 56 0 1 0 8 0 tcpqe 32 59 0 59 19 19 0 1 0 8 0 tcpcb 544 30752 0 30748 200 198 2 14 0 8 1 ipq 40 215 0 215 80 80 0 1 0 8 0 ipqe 40 6885 0 6885 80 80 0 1 0 8 0 inpcb 280 52889 0 52880 219 216 3 13 0 8 2 ip6q 72 14 0 14 11 11 0 1 0 8 0 ip6af 40 433 0 433 11 11 0 1 0 8 0 nd6 48 1161 0 1157 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 25944 0 25671 22 4 18 18 0 8 0 art_table 32 25945 0 25671 15 12 3 3 0 8 0 art_node 16 5901 0 5857 1 0 1 1 0 8 0 sysvmsgpl 40 64 0 43 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 4862 0 4852 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 26086 0 24632 51 4 47 48 0 8 0 ffsino 272 26086 0 24632 107 9 98 98 0 8 0 nchpl 144 55090 0 53443 63 1 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 272412 0 272411 7 6 1 2 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 175980 0 175980 191 189 2 7 0 8 2 plimitpl 152 3996 0 3987 1 0 1 1 0 8 0 sigapl 432 22261 0 22247 28 26 2 3 0 8 0 futexpl 56 536390 0 536390 5 4 1 1 0 8 1 knotepl 112 17951 0 17932 33 31 2 3 0 8 1 kqueuepl 104 11561 0 11559 42 41 1 4 0 8 0 pipepl 112 68640 0 68621 250 246 4 6 0 8 3 fdescpl 488 22262 0 22247 6 3 3 3 0 8 0 filepl 152 261850 0 261752 415 406 9 14 0 8 5 lockfpl 104 4857 0 4856 1 0 1 1 0 8 0 lockfspl 48 1687 0 1686 1 0 1 1 0 8 0 sessionpl 112 594 0 584 1 0 1 1 0 8 0 pgrppl 48 760 0 750 1 0 1 1 0 8 0 ucredpl 96 42799 0 42790 1 0 1 1 0 8 0 zombiepl 144 22247 0 22247 4 3 1 1 0 8 1 processpl 896 22278 0 22247 4 0 4 4 0 8 0 procpl 632 60774 0 60734 19 14 5 5 0 8 1 srpgc 64 1154 0 1154 56 55 1 1 0 8 1 sosppl 128 458 0 458 92 91 1 1 0 8 1 sockpl 384 72459 0 72406 209 185 24 24 0 8 17 mcl64k 65536 74 0 0 6 3 3 4 0 8 0 mcl16k 16384 74 0 0 5 2 3 3 0 8 0 mcl12k 12288 89 0 0 2 0 2 2 0 8 0 mcl9k 9216 56 0 0 4 2 2 2 0 8 0 mcl8k 8192 57 0 0 6 3 3 3 0 8 0 mcl4k 4096 25 0 0 4 1 3 3 0 8 0 mcl2k2 2112 11 0 0 1 0 1 1 0 8 0 mcl2k 2048 221 0 0 19 8 11 19 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 2012 0 0 22 0 22 22 0 8 0 bufpl 256 67211 0 60167 441 0 441 441 0 8 0 anonpl 16 3060212 0 3050042 400 341 59 81 0 124 0 amapchunkpl 152 219122 0 219019 421 415 6 19 0 158 1 amappl16 192 110220 0 109570 624 584 40 59 0 8 0 amappl15 184 3036 0 3033 57 56 1 1 0 8 0 amappl14 176 6940 0 6932 1 0 1 1 0 8 0 amappl13 168 1919 0 1918 12 11 1 1 0 8 0 amappl12 160 2353 0 2341 2 1 1 1 0 8 0 amappl11 152 3962 0 3947 1 0 1 1 0 8 0 amappl10 144 2494 0 2484 1 0 1 1 0 8 0 amappl9 136 10064 0 10058 1 0 1 1 0 8 0 amappl8 128 8274 0 8143 6 1 5 5 0 8 0 amappl7 120 4299 0 4290 1 0 1 1 0 8 0 amappl6 112 2594 0 2562 2 0 2 2 0 8 0 amappl5 104 7235 0 7226 1 0 1 1 0 8 0 amappl4 96 22229 0 22190 13 11 2 2 0 8 1 amappl3 88 5662 0 5657 1 0 1 1 0 8 0 amappl2 80 134390 0 134313 3 1 2 3 0 8 0 amappl1 72 635915 0 635494 25 15 10 20 0 8 0 amappl 80 70413 0 70378 7 5 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 22262 0 22247 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 22262 0 22247 1 0 1 1 0 8 0 vmmpekpl 168 309767 0 309736 2 0 2 2 0 8 0 vmmpepl 168 3128831 0 3126931 736 614 122 132 0 357 17 vmsppl 368 22261 0 22247 2 0 2 2 0 8 0 pdppl 4096 44531 0 44494 9 3 6 6 0 8 1 pvpl 32 8014980 0 8001556 1124 967 157 198 0 265 16 pmappl 232 22261 0 22247 69 67 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 856 0 239 18 0 18 18 0 8 0