panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 68247 75070 0 0x2 0 0 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(ffff8000179c6678) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8039289e00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8039289e00) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8039289e00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff8000179c6900) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd80264f35b8,ffff8000179c6a60,ffff8000179c6ab0,ffff8000179c6990) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff8000ffff2780,ffffff9c,7f7fffff2800,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff8000179c6c30) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7fffff2800,88,0,7f7fffff2824) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff2870, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic fifo_badop called ddb> 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(ffff8000179c6678) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8039289e00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8039289e00) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8039289e00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff8000179c6900) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd80264f35b8,ffff8000179c6a60,ffff8000179c6ab0,ffff8000179c6990) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff8000ffff2780,ffffff9c,7f7fffff2800,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff8000179c6c30) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7fffff2800,88,0,7f7fffff2824) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff2870, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000179c65a0 rbx 0xffff8000179c6650 rdx 0x2 rcx 0 rax 0 r8 0xffff8000179c6560 r9 0x1 r10 0 r11 0x7994d423b86f9a08 r12 0x3000000008 r13 0xffff8000179c65b0 r14 0x100 r15 0x1 rip 0xffffffff8208d768 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000179c6590 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=68247 stat=onproc flags process=2 proc=0 pri=17, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8770,0xffff8000ffff3b50 process=0xffff8000148a30f8 user=0xffff8000179c1000, vmspace=0xfffffd803f013110 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 62825 485378 69315 0 2 0 syz-executor.1 62825 152213 69315 0 2 0x4000000 syz-executor.1 69315 222445 42104 0 3 0x82 nanosleep syz-executor.1 *75070 68247 42104 0 7 0x2 syz-executor.0 2406 247129 0 0 3 0x14200 acct acct 87564 41861 1 0 3 0x100083 ttyin getty 94550 292638 0 0 3 0x14200 bored sosplice 42104 217788 56923 0 3 0x82 thrsleep syz-fuzzer 42104 361312 56923 0 3 0x4000082 nanosleep syz-fuzzer 42104 514382 56923 0 3 0x4000082 thrsleep syz-fuzzer 42104 322282 56923 0 3 0x4000082 thrsleep syz-fuzzer 42104 158109 56923 0 3 0x4000082 thrsleep syz-fuzzer 42104 121049 56923 0 3 0x4000082 kqread syz-fuzzer 42104 416134 56923 0 3 0x4000082 thrsleep syz-fuzzer 42104 248369 56923 0 3 0x4000082 thrsleep syz-fuzzer 42104 458843 56923 0 3 0x4000082 thrsleep syz-fuzzer 56923 444981 15866 0 3 0x10008a pause ksh 15866 522945 9676 0 3 0x92 select sshd 9676 56577 1 0 3 0x80 select sshd 76410 383782 1618 73 3 0x100090 kqread syslogd 1618 190962 1 0 3 0x100082 netio syslogd 21486 77146 1 77 3 0x100090 poll dhclient 92412 351088 1 0 3 0x80 poll dhclient 38437 132945 0 0 2 0x14200 zerothread 62803 179056 0 0 3 0x14200 aiodoned aiodoned 96867 236122 0 0 3 0x14200 syncer update 96632 296086 0 0 3 0x14200 cleaner cleaner 61323 482878 0 0 3 0x14200 reaper reaper 47849 447759 0 0 3 0x14200 pgdaemon pagedaemon 62347 132924 0 0 3 0x14200 bored crynlk 66694 337772 0 0 3 0x14200 bored crypto 10081 458129 0 0 3 0x40014200 acpi0 acpi0 50992 288570 0 0 3 0x14200 bored softnet 61677 395795 0 0 3 0x14200 bored systqmp 17027 375066 0 0 3 0x14200 bored systq 68198 14361 0 0 3 0x40014200 bored softclock 90015 231325 0 0 3 0x40014200 idle0 10780 242575 0 0 3 0x14200 bored smr 1 215656 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9592 7016K 14566K 78643K 26758 0 0 pcb 13 10K 12K 78643K 1545 0 0 rtable 117 12K 13K 78643K 4735 0 0 ifaddr 96 25K 30K 78643K 1217 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 560 0 0 iov 0 0K 32K 78643K 1807 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1211 76K 77K 78643K 7431 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 118 0 0 VM map 80 20K 20K 78643K 116 0 0 sem 12 0K 1K 78643K 1659 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 7069 0 0 sigio 0 0K 0K 78643K 117 0 0 proc 50 38K 63K 78643K 2798 0 0 subproc 32 2K 2K 78643K 782 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 747 0 0 in_multi 32 2K 2K 78643K 745 0 0 ether_multi 1 0K 0K 78643K 38 0 0 mrt 0 0K 0K 78643K 44 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 1577 0 0 pfkey data 0 0K 4K 78643K 4 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 224 641K 642K 78643K 19044 0 0 UVM aobj 130 4K 4K 78643K 141 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 1663 0 0 NDP 22 0K 1K 78643K 395 0 0 temp 240 3545K 4185K 78643K 326773 0 0 kqueue 0 0K 0K 78643K 66 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 162 0 156 1 0 1 1 0 8 0 rtpcb 80 1156 0 1154 1 0 1 1 0 8 0 rtentry 112 855 0 814 2 0 2 2 0 8 0 unpcb 120 12350 0 12331 44 43 1 3 0 8 0 syncache 264 44 0 44 22 22 0 1 0 8 0 sackhl 24 2 0 2 1 1 0 1 0 8 0 tcpqe 32 184 0 184 13 13 0 1 0 8 0 tcpcb 544 3477 0 3471 54 53 1 15 0 8 0 ipq 40 60 0 60 27 27 0 1 0 8 0 ipqe 40 1191 0 1191 27 27 0 1 0 8 0 inpcb 280 8996 0 8987 89 88 1 9 0 8 0 rttmr 72 17 0 16 6 5 1 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 103 0 101 8 7 1 1 0 8 0 pkpcb 40 18 0 18 6 6 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 145 0 145 50 50 0 1 0 8 0 art_heap8 4096 36 0 34 21 19 2 3 0 8 0 art_heap4 256 3407 0 3141 47 28 19 20 0 8 0 art_table 32 3443 0 3175 7 4 3 3 0 8 0 art_node 16 854 0 815 1 0 1 1 0 8 0 sysvmsgpl 40 65 0 43 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1657 0 1647 1 0 1 1 0 8 0 shmpl 112 139 0 11 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 12183 0 10770 46 0 46 46 0 8 0 ffsino 240 12183 0 10770 84 0 84 84 0 8 0 nchpl 144 23132 0 22662 61 41 20 61 0 8 0 uvmvnodes 72 8199 0 0 150 0 150 150 0 8 0 vnodes 208 8199 0 0 432 0 432 432 0 8 0 namei 1024 79318 0 79315 6 5 1 1 0 8 0 vcpupl 1984 79 0 1 10 0 10 10 0 8 0 vmpool 520 114 0 36 6 0 6 6 0 8 0 scsiplug 64 4 0 4 4 4 0 1 0 8 0 scxspl 192 89736 0 89736 59 58 1 7 0 8 1 plimitpl 152 638 0 631 1 0 1 1 0 8 0 sigapl 432 7109 0 7096 2 0 2 2 0 8 0 futexpl 56 191117 0 191117 6 5 1 1 0 8 1 knotepl 112 2037 0 2018 3 2 1 3 0 8 0 kqueuepl 104 2313 0 2311 10 9 1 4 0 8 0 pipepl 112 15794 0 15775 46 45 1 2 0 8 0 fdescpl 424 7110 0 7096 2 0 2 2 0 8 0 filepl 120 75507 0 75411 77 73 4 11 0 8 1 lockfpl 104 2617 0 2616 1 0 1 1 0 8 0 lockfspl 48 892 0 891 1 0 1 1 0 8 0 sessionpl 112 62 0 52 1 0 1 1 0 8 0 pgrppl 48 129 0 119 1 0 1 1 0 8 0 ucredpl 96 7944 0 7937 1 0 1 1 0 8 0 zombiepl 144 7098 0 7098 1 0 1 1 0 8 1 processpl 864 7128 0 7098 4 0 4 4 0 8 0 procpl 632 16031 0 15992 7 3 4 5 0 8 0 sosppl 128 148 0 148 46 46 0 1 0 8 0 sockpl 384 22604 0 22574 138 133 5 15 0 8 1 mcl64k 65536 1376 0 1376 127 126 1 47 0 8 1 mcl16k 16384 104 0 104 54 54 0 1 0 8 0 mcl12k 12288 227 0 227 64 64 0 1 0 8 0 mcl9k 9216 102 0 102 51 51 0 1 0 8 0 mcl8k 8192 361 0 361 43 43 0 1 0 8 0 mcl4k 4096 855 0 855 16 15 1 1 0 8 1 mcl2k2 2112 77 0 77 44 44 0 1 0 8 0 mcl2k 2048 81334 0 81288 22 15 7 16 0 8 0 mtagpl 80 331 0 312 16 15 1 1 0 8 0 mbufpl 256 218539 0 218369 254 242 12 32 0 8 0 bufpl 256 37243 0 29044 513 0 513 513 0 8 0 anonpl 16 949306 0 928386 406 305 101 114 0 62 8 amapchunkpl 152 37548 0 37417 137 130 7 19 0 158 0 amappl16 192 47333 0 46093 526 452 74 75 0 8 8 amappl15 184 1108 0 1106 7 6 1 1 0 8 0 amappl14 176 2038 0 2032 1 0 1 1 0 8 0 amappl13 168 341 0 341 5 5 0 1 0 8 0 amappl12 160 1246 0 1245 2 1 1 1 0 8 0 amappl11 152 1052 0 1040 1 0 1 1 0 8 0 amappl10 144 785 0 784 1 0 1 1 0 8 0 amappl9 136 1595 0 1589 1 0 1 1 0 8 0 amappl8 128 1151 0 1105 4 2 2 2 0 8 0 amappl7 120 974 0 964 1 0 1 1 0 8 0 amappl6 112 989 0 977 1 0 1 1 0 8 0 amappl5 104 1757 0 1748 1 0 1 1 0 8 0 amappl4 96 6668 0 6638 1 0 1 1 0 8 0 amappl3 88 3028 0 3013 1 0 1 1 0 8 0 amappl2 80 53967 0 53893 3 1 2 3 0 8 0 amappl1 72 141070 0 140658 27 18 9 20 0 8 0 amappl 80 17035 0 16958 3 1 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 140 0 11 3 0 3 3 0 8 0 uaddrrnd 24 7224 0 7096 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7224 0 7096 1 0 1 1 0 8 0 vmmpekpl 168 69244 0 69200 3 0 3 3 0 8 0 vmmpepl 168 884081 0 881532 883 760 123 158 0 357 0 vmsppl 272 7109 0 7096 8 7 1 2 0 8 0 pdppl 4096 14454 0 14342 19 4 15 15 0 8 0 pvpl 32 2626515 0 2604003 1016 793 223 364 0 265 30 pmappl 200 7223 0 7132 5 0 5 5 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1273 0 613 23 3 20 21 0 8 0