panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *154172 74846 32767 0x10 0 1K syz-executor.1 158079 88570 0 0x2 0x4000000 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(ffff800024dbb588) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8068717000) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8068717000) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8068717000) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800024dbb810) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8067c19a98,ffff800024dbb970,ffff800024dbb9c0,ffff800024dbb8a0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020ab1b40,ffffff9c,7f7ffffcbda0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800024dbbb40) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024dbbb40) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffcbda0,88,0,7f7ffffcbdc4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcbe10, 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(ffff800024dbb588) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8068717000) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8068717000) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8068717000) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800024dbb810) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8067c19a98,ffff800024dbb970,ffff800024dbb9c0,ffff800024dbb8a0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020ab1b40,ffffff9c,7f7ffffcbda0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800024dbbb40) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024dbbb40) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffcbda0,88,0,7f7ffffcbdc4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcbe10, count: -11 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800024dbb4b0 rbx 0xffff800024dbb560 rdx 0xffff800020ab1b40 rcx 0 rax 0 r8 0xffffffff82051caf kprintf+0x16f r9 0x1 r10 0x25 r11 0xa53eda6e1daf8d51 r12 0x3000000008 r13 0xffff800024dbb4c0 r14 0x100 r15 0x1 rip 0xffffffff8102dac8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024dbb4a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=154172 stat=onproc flags process=10 proc=0 pri=17, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1160,0xffffffff82675500 process=0xffff800020a8aa90 user=0xffff800024db6000, vmspace=0xfffffd807f00b000 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *74846 154172 98216 32767 7 0x10 syz-executor.1 98216 294490 88570 0 3 0x82 wait syz-executor.1 88608 100918 48914 32767 2 0x10 syz-executor.0 48914 267663 88570 0 3 0x82 wait syz-executor.0 43668 428875 0 0 3 0x14200 bored sosplice 88570 192064 87891 0 3 0x82 thrsleep syz-fuzzer 88570 378469 87891 0 3 0x4000082 nanosleep syz-fuzzer 88570 29750 87891 0 3 0x4000082 thrsleep syz-fuzzer 88570 125615 87891 0 3 0x4000082 kqread syz-fuzzer 88570 334299 87891 0 3 0x4000082 thrsleep syz-fuzzer 88570 368962 87891 0 3 0x4000082 thrsleep syz-fuzzer 88570 346287 87891 0 3 0x4000082 thrsleep syz-fuzzer 88570 82764 87891 0 3 0x4000082 thrsleep syz-fuzzer 88570 242343 87891 0 3 0x4000082 thrsleep syz-fuzzer 88570 158079 87891 0 7 0x4000002 syz-fuzzer 87891 521989 42877 0 3 0x10008a pause ksh 42877 194169 22457 0 3 0x92 select sshd 34456 522795 1 0 3 0x100083 ttyin getty 22457 277799 1 0 3 0x80 select sshd 72406 377138 1865 73 3 0x100090 kqread syslogd 1865 418661 1 0 3 0x100082 netio syslogd 29730 476710 1 77 3 0x100090 poll dhclient 87020 340187 1 0 3 0x80 poll dhclient 63700 60166 0 0 3 0x14200 pgzero zerothread 89977 311213 0 0 3 0x14200 aiodoned aiodoned 29078 58368 0 0 3 0x14200 syncer update 1638 348599 0 0 3 0x14200 cleaner cleaner 44297 386997 0 0 3 0x14200 reaper reaper 32707 285573 0 0 3 0x14200 pgdaemon pagedaemon 22577 335309 0 0 3 0x14200 bored crynlk 77073 409052 0 0 3 0x14200 bored crypto 44645 101242 0 0 3 0x40014200 acpi0 acpi0 40882 297957 0 0 3 0x40014200 idle1 25258 417324 0 0 3 0x14200 bored softnet 86214 19050 0 0 3 0x14200 bored systqmp 86828 322973 0 0 3 0x14200 bored systq 29345 192429 0 0 3 0x40014200 bored softclock 3548 109514 0 0 3 0x40014200 idle0 52984 306519 0 0 3 0x14200 bored smr 1 91993 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 74846 (syz-executor.1) thread 0xffff800020ab1b40 (154172) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82628830) #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 (0xfffffd8067bf05e8) #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 (0xfffffd8067bf0c48) #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 88608 (syz-executor.0) thread 0xffff800020ab0290 (100918) exclusive rrwlock inode r = 0 (0xfffffd8067bf0918) #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 9472 6323K 6323K 78643K 13765 0 0 pcb 13 12K 14K 78643K 17 0 0 rtable 113 3K 3K 78643K 27194 0 0 ifaddr 36 22K 29K 78643K 3978 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 1654 0 0 iov 0 0K 64K 78643K 4036 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 22716 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 363 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 8762 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 33K 78643K 26656 0 0 sigio 0 0K 0K 78643K 491 0 0 proc 48 50K 83K 78643K 30309 0 0 subproc 34 2K 2K 78643K 10931 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 3976 0 0 in_multi 33 2K 2K 78643K 7951 0 0 ether_multi 1 0K 0K 78643K 60 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 11809 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 26K 36K 78643K 96785 0 0 UVM aobj 130 4K 4K 78643K 131 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 1687 0 0 NDP 5 0K 0K 78643K 1932 0 0 temp 121 3558K 3670K 78643K 133638 0 0 kqueue 0 0K 0K 78643K 554 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 1365 0 1359 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 3834 0 3832 1 0 1 1 0 8 0 rtentry 112 6538 0 6490 2 0 2 2 0 8 0 unpcb 120 17279 0 17216 38 35 3 3 0 8 0 syncache 264 216 0 216 77 76 1 1 0 8 1 sackhl 24 5 0 5 5 5 0 1 0 8 0 tcpqe 32 79 0 79 47 46 1 1 0 8 1 tcpcb 544 12208 0 12204 159 158 1 14 0 8 0 ipq 40 327 0 327 90 90 0 1 0 8 0 ipqe 40 10973 0 10973 90 90 0 1 0 8 0 inpcb 280 32621 0 32607 223 221 2 14 0 8 0 ip6q 72 7 0 7 6 6 0 1 0 8 0 ip6af 40 284 0 284 6 6 0 1 0 8 0 nd6 48 1288 0 1284 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 28821 0 28549 29 11 18 18 0 8 0 art_table 32 28822 0 28549 13 10 3 3 0 8 0 art_node 16 6537 0 6493 1 0 1 1 0 8 0 sysvmsgpl 40 35 0 20 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 8758 0 8748 1 0 1 1 0 8 0 shmpl 112 129 0 1 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 34870 0 33403 49 1 48 48 0 8 0 ffsino 272 34870 0 33403 103 4 99 99 0 8 0 nchpl 144 66555 0 64894 62 0 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 354149 0 354148 5 4 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 186911 0 186911 203 202 1 6 0 8 1 plimitpl 152 4137 0 4128 1 0 1 1 0 8 0 sigapl 432 24904 0 24890 33 31 2 3 0 8 0 futexpl 56 468276 0 468276 4 3 1 1 0 8 1 knotepl 112 20562 0 20543 26 25 1 3 0 8 0 kqueuepl 104 12193 0 12191 44 43 1 4 0 8 0 pipepl 112 42594 0 42575 99 97 2 2 0 8 1 fdescpl 488 24905 0 24890 3 0 3 3 0 8 0 filepl 152 276595 0 276497 314 307 7 14 0 8 3 lockfpl 104 7231 0 7230 1 0 1 1 0 8 0 lockfspl 48 2396 0 2395 1 0 1 1 0 8 0 sessionpl 112 658 0 648 1 0 1 1 0 8 0 pgrppl 48 847 0 837 1 0 1 1 0 8 0 ucredpl 96 93379 0 93370 1 0 1 1 0 8 0 zombiepl 144 24890 0 24890 4 3 1 1 0 8 1 processpl 896 24921 0 24890 4 0 4 4 0 8 0 procpl 632 68201 0 68161 26 21 5 5 0 8 1 srpgc 64 1282 0 1282 65 64 1 1 0 8 1 sosppl 128 502 0 502 108 107 1 1 0 8 1 sockpl 384 54280 0 54207 400 391 9 27 0 8 1 mcl64k 65536 138 0 0 7 4 3 4 0 8 0 mcl16k 16384 97 0 0 9 6 3 3 0 8 0 mcl12k 12288 96 0 0 3 1 2 2 0 8 0 mcl9k 9216 73 0 0 3 1 2 2 0 8 0 mcl8k 8192 49 0 0 5 2 3 3 0 8 0 mcl4k 4096 57 0 0 7 4 3 3 0 8 0 mcl2k2 2112 27 0 0 2 1 1 2 0 8 0 mcl2k 2048 180 0 0 18 5 13 18 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 2454 0 0 25 1 24 24 0 8 0 bufpl 256 72015 0 64971 441 0 441 441 0 8 0 anonpl 16 3319489 0 3310192 398 337 61 71 0 124 4 amapchunkpl 152 239075 0 238969 362 356 6 19 0 158 0 amappl16 192 122324 0 121693 683 639 44 56 0 8 5 amappl15 184 3358 0 3356 57 56 1 1 0 8 0 amappl14 176 6550 0 6541 1 0 1 1 0 8 0 amappl13 168 3094 0 3093 1 0 1 1 0 8 0 amappl12 160 3144 0 3136 1 0 1 1 0 8 0 amappl11 152 4772 0 4757 1 0 1 1 0 8 0 amappl10 144 2340 0 2331 1 0 1 1 0 8 0 amappl9 136 11056 0 11050 1 0 1 1 0 8 0 amappl8 128 8694 0 8584 5 1 4 4 0 8 0 amappl7 120 4725 0 4713 1 0 1 1 0 8 0 amappl6 112 3465 0 3440 1 0 1 1 0 8 0 amappl5 104 7646 0 7636 1 0 1 1 0 8 0 amappl4 96 25549 0 25510 4 2 2 2 0 8 0 amappl3 88 4934 0 4929 1 0 1 1 0 8 0 amappl2 80 150683 0 150621 3 1 2 3 0 8 0 amappl1 72 708953 0 708539 24 14 10 20 0 8 0 amappl 80 78856 0 78820 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 130 0 1 3 0 3 3 0 8 0 uaddrrnd 24 24905 0 24890 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 24905 0 24890 1 0 1 1 0 8 0 vmmpekpl 168 281753 0 281723 4 1 3 3 0 8 0 vmmpepl 168 3470734 0 3468899 788 672 116 135 0 357 19 vmsppl 368 24904 0 24890 2 0 2 2 0 8 0 pdppl 4096 49817 0 49780 6 0 6 6 0 8 1 pvpl 32 8945761 0 8933331 1248 1095 153 173 0 265 19 pmappl 232 24904 0 24890 82 80 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 822 0 201 19 1 18 19 0 8 0