panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *256715 14456 32767 0x10 0 1K syz-executor.0 282412 75714 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(ffff800022d76be8) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8065c1dc00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8065c1dc00) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8065c1dc00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800022d76e70) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8067ac75b8,ffff800022d76fd0,ffff800022d77020,ffff800022d76f00) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020acfb60,ffffff9c,7f7ffffd6d10,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800022d771a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d771a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffd6d10,88,0,7f7ffffd6d34) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd6d80, 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(ffff800022d76be8) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8065c1dc00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8065c1dc00) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8065c1dc00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800022d76e70) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8067ac75b8,ffff800022d76fd0,ffff800022d77020,ffff800022d76f00) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020acfb60,ffffff9c,7f7ffffd6d10,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800022d771a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d771a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffd6d10,88,0,7f7ffffd6d34) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd6d80, count: -11 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800022d76b10 rbx 0xffff800022d76bc0 rdx 0xffff800020acfb60 rcx 0 rax 0 r8 0xffffffff817abe2f kprintf+0x16f r9 0x1 r10 0x25 r11 0xb7ecf454b606015 r12 0x3000000008 r13 0xffff800022d76b20 r14 0x100 r15 0x1 rip 0xffffffff815f6b58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d76b00 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=256715 stat=onproc flags process=10 proc=0 pri=17, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace528,0xffffffff826417a8 process=0xffff800020a8b510 user=0xffff800022d72000, vmspace=0xfffffd807f00b8a0 estcpu=19, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *14456 256715 73543 32767 7 0x10 syz-executor.0 73543 124838 31685 0 3 0x82 wait syz-executor.0 75714 282412 61979 32767 7 0x10 syz-executor.1 61979 105230 31685 0 3 0x82 wait syz-executor.1 47634 324444 0 0 3 0x14200 bored sosplice 31685 420570 83224 0 3 0x82 thrsleep syz-fuzzer 31685 109867 83224 0 3 0x4000082 nanosleep syz-fuzzer 31685 157451 83224 0 3 0x4000082 thrsleep syz-fuzzer 31685 292720 83224 0 2 0x4000002 syz-fuzzer 31685 355767 83224 0 3 0x4000082 thrsleep syz-fuzzer 31685 136591 83224 0 3 0x4000082 thrsleep syz-fuzzer 31685 72128 83224 0 2 0x4000002 syz-fuzzer 31685 244666 83224 0 3 0x4000082 thrsleep syz-fuzzer 31685 307501 83224 0 3 0x4000082 thrsleep syz-fuzzer 31685 447992 83224 0 3 0x4000082 thrsleep syz-fuzzer 83224 123851 14246 0 3 0x10008a pause ksh 14246 361571 7133 0 2 0x12 sshd 93143 7869 1 0 3 0x100083 ttyin getty 7133 418526 1 0 3 0x80 select sshd 48940 464313 617 73 3 0x100090 kqread syslogd 617 326378 1 0 3 0x100082 netio syslogd 94839 494092 1 77 3 0x100090 poll dhclient 98778 171015 1 0 3 0x80 poll dhclient 58810 305511 0 0 2 0x14200 zerothread 80592 102083 0 0 3 0x14200 aiodoned aiodoned 63013 358100 0 0 3 0x14200 syncer update 61732 4894 0 0 3 0x14200 cleaner cleaner 89878 516845 0 0 3 0x14200 reaper reaper 79367 324482 0 0 3 0x14200 pgdaemon pagedaemon 86091 216392 0 0 3 0x14200 bored crynlk 231 181842 0 0 3 0x14200 bored crypto 95328 206504 0 0 3 0x40014200 acpi0 acpi0 22204 464058 0 0 3 0x40014200 idle1 1543 16643 0 0 3 0x14200 bored softnet 39597 916 0 0 3 0x14200 bored systqmp 82201 404848 0 0 3 0x14200 bored systq 35487 75656 0 0 3 0x40014200 bored softclock 82081 376598 0 0 3 0x40014200 idle0 19689 254496 0 0 3 0x14200 bored smr 1 137423 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 14456 (syz-executor.0) thread 0xffff800020acfb60 (256715) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82662ed0) #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 (0xfffffd80678e91b8) #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 (0xfffffd806e73ff78) #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 75714 (syz-executor.1) thread 0xffff800020a89650 (282412) exclusive rrwlock inode r = 0 (0xfffffd80678e95f8) #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 11028 0 0 pcb 13 12K 14K 78643K 17 0 0 rtable 105 3K 3K 78643K 4135 0 0 ifaddr 35 11K 11K 78643K 617 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 176 0 0 iov 0 0K 144K 78643K 1160 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 4237 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 58 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 1733 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 33K 78643K 3953 0 0 sigio 0 0K 0K 78643K 38 0 0 proc 48 50K 83K 78643K 4684 0 0 subproc 34 2K 2K 78643K 1632 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 412 0 0 in_multi 33 2K 2K 78643K 1169 0 0 ether_multi 1 0K 0K 78643K 10 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 1842 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 124 23K 36K 78643K 15121 0 0 UVM aobj 130 6K 6K 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 252 0 0 NDP 7 0K 0K 78643K 291 0 0 temp 121 3558K 3639K 78643K 22585 0 0 kqueue 0 0K 0K 78643K 128 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 207 0 201 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 689 0 687 1 0 1 1 0 8 0 rtentry 112 998 0 954 2 0 2 2 0 8 0 unpcb 120 2890 0 2877 4 3 1 2 0 8 0 syncache 264 39 0 39 11 10 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 78 0 78 7 6 1 1 0 8 1 tcpcb 544 2735 0 2731 30 29 1 12 0 8 0 ipq 40 48 0 48 18 18 0 1 0 8 0 ipqe 40 1102 0 1102 18 18 0 1 0 8 0 inpcb 280 6299 0 6292 29 27 2 13 0 8 1 ip6q 72 4 0 4 2 2 0 1 0 8 0 ip6af 40 12 0 12 2 2 0 1 0 8 0 nd6 48 192 0 188 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 4385 0 4166 14 0 14 14 0 8 0 art_table 32 4386 0 4166 2 0 2 2 0 8 0 art_node 16 997 0 957 1 0 1 1 0 8 0 sysvmsgpl 40 54 0 27 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 1731 0 1721 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 6428 0 5017 46 0 46 46 0 8 0 ffsino 272 6428 0 5017 96 1 95 95 0 8 0 nchpl 144 11585 0 9976 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 55669 0 55668 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 33102 0 33102 39 38 1 7 0 8 1 plimitpl 152 644 0 635 1 0 1 1 0 8 0 sigapl 432 3842 0 3828 11 9 2 3 0 8 0 futexpl 56 75453 0 75453 1 0 1 1 0 8 1 knotepl 112 3231 0 3212 6 5 1 2 0 8 0 kqueuepl 104 2639 0 2637 13 12 1 4 0 8 0 pipepl 112 3992 0 3973 18 16 2 2 0 8 0 fdescpl 488 3843 0 3828 3 0 3 3 0 8 0 filepl 152 42607 0 42509 51 45 6 14 0 8 1 lockfpl 104 959 0 958 1 0 1 1 0 8 0 lockfspl 48 328 0 327 1 0 1 1 0 8 0 sessionpl 112 111 0 101 1 0 1 1 0 8 0 pgrppl 48 301 0 291 1 0 1 1 0 8 0 ucredpl 96 12730 0 12721 1 0 1 1 0 8 0 zombiepl 144 3828 0 3828 1 0 1 1 0 8 1 processpl 896 3859 0 3828 4 0 4 4 0 8 0 procpl 632 10389 0 10349 8 3 5 5 0 8 0 srpgc 64 188 0 188 17 16 1 1 0 8 1 sosppl 128 88 0 88 17 17 0 1 0 8 0 sockpl 384 9988 0 9966 58 54 4 22 0 8 1 mcl64k 65536 28 0 0 4 1 3 3 0 8 0 mcl16k 16384 21 0 0 3 1 2 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 33 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 152 0 0 18 2 16 18 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 573 0 0 21 0 21 21 0 8 0 bufpl 256 14882 0 7838 441 0 441 441 0 8 0 anonpl 16 582160 0 572831 171 107 64 69 0 124 8 amapchunkpl 152 37022 0 36918 86 76 10 18 0 158 5 amappl16 192 21549 0 20879 180 137 43 48 0 8 7 amappl15 184 701 0 701 9 9 0 1 0 8 0 amappl14 176 1182 0 1177 1 0 1 1 0 8 0 amappl13 168 137 0 133 1 0 1 1 0 8 0 amappl12 160 555 0 553 2 1 1 1 0 8 0 amappl11 152 757 0 746 1 0 1 1 0 8 0 amappl10 144 419 0 416 1 0 1 1 0 8 0 amappl9 136 2125 0 2117 1 0 1 1 0 8 0 amappl8 128 1423 0 1367 3 1 2 3 0 8 0 amappl7 120 697 0 689 1 0 1 1 0 8 0 amappl6 112 537 0 523 1 0 1 1 0 8 0 amappl5 104 1414 0 1404 1 0 1 1 0 8 0 amappl4 96 3937 0 3904 1 0 1 1 0 8 0 amappl3 88 1004 0 999 1 0 1 1 0 8 0 amappl2 80 22970 0 22906 3 1 2 3 0 8 0 amappl1 72 115581 0 115164 24 14 10 20 0 8 0 amappl 80 12094 0 12059 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 3843 0 3828 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3843 0 3828 1 0 1 1 0 8 0 vmmpekpl 168 40765 0 40734 2 0 2 2 0 8 0 vmmpepl 168 538345 0 536562 209 97 112 116 0 357 24 vmsppl 368 3842 0 3828 2 0 2 2 0 8 0 pdppl 4096 7693 0 7656 6 0 6 6 0 8 1 pvpl 32 1470875 0 1458428 337 177 160 177 0 265 28 pmappl 232 3842 0 3828 17 15 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 648 0 36 18 0 18 18 0 8 0