panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *461294 53092 0 0x2 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(ffff8000169747e8) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8025405b00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8025405b00) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8025405b00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800016974a70) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd80253675b8,ffff800016974bd0,ffff800016974c20,ffff800016974b00) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff8000ffff8770,ffffff9c,7f7ffffd8ff0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800016974da0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffd8ff0,88,0,7f7ffffd9014) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd9060, 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(ffff8000169747e8) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8025405b00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8025405b00) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8025405b00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800016974a70) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd80253675b8,ffff800016974bd0,ffff800016974c20,ffff800016974b00) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff8000ffff8770,ffffff9c,7f7ffffd8ff0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800016974da0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffd8ff0,88,0,7f7ffffd9014) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd9060, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800016974710 rbx 0xffff8000169747c0 rdx 0x2 rcx 0 rax 0 r8 0xffff8000169746d0 r9 0x1 r10 0 r11 0x1f5e1281f21f6da2 r12 0x3000000008 r13 0xffff800016974720 r14 0x100 r15 0x1 rip 0xffffffff817df538 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016974700 ss 0 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=461294 stat=onproc flags process=2 proc=0 pri=17, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2780,0xffffffff825a6d38 process=0xffff8000148a2d98 user=0xffff80001696f000, vmspace=0xfffffd803f013440 estcpu=2, cpticks=2, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *53092 461294 45927 0 7 0x2 syz-executor.1 56344 16636 45927 0 2 0x2 syz-executor.0 42238 468191 0 0 3 0x14200 acct acct 18467 382935 1 0 3 0x100083 ttyin getty 85589 368952 0 0 3 0x14200 bored sosplice 45927 445941 37683 0 3 0x82 thrsleep syz-fuzzer 45927 246750 37683 0 3 0x4000082 nanosleep syz-fuzzer 45927 271778 37683 0 2 0x4000002 syz-fuzzer 45927 461014 37683 0 3 0x4000082 thrsleep syz-fuzzer 45927 358521 37683 0 3 0x4000082 thrsleep syz-fuzzer 45927 70314 37683 0 3 0x4000082 thrsleep syz-fuzzer 45927 53074 37683 0 3 0x4000082 thrsleep syz-fuzzer 37683 157164 67788 0 3 0x10008a pause ksh 67788 329840 7098 0 2 0x12 sshd 7098 188333 1 0 3 0x80 select sshd 9267 170735 28347 73 2 0x100010 syslogd 28347 33 1 0 3 0x100082 netio syslogd 25483 374101 1 77 3 0x100090 poll dhclient 35529 218030 1 0 3 0x80 poll dhclient 57028 372090 0 0 2 0x14200 zerothread 77100 319038 0 0 3 0x14200 aiodoned aiodoned 84860 274823 0 0 3 0x14200 syncer update 22715 166878 0 0 3 0x14200 cleaner cleaner 77462 299112 0 0 3 0x14200 reaper reaper 30587 296606 0 0 3 0x14200 pgdaemon pagedaemon 25138 46846 0 0 3 0x14200 bored crynlk 45070 354296 0 0 3 0x14200 bored crypto 77913 512665 0 0 3 0x40014200 acpi0 acpi0 83123 227965 0 0 2 0x14200 softnet 67196 97718 0 0 3 0x14200 bored systqmp 44717 198959 0 0 3 0x14200 bored systq 5765 513803 0 0 3 0x40014200 bored softclock 58265 13610 0 0 3 0x40014200 idle0 40555 217920 0 0 3 0x14200 bored smr 1 241835 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 9560 6481K 7061K 78643K 13220 0 0 pcb 13 8K 9K 78643K 279 0 0 rtable 111 4K 4K 78643K 817 0 0 ifaddr 73 15K 16K 78643K 236 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 93 0 0 iov 0 0K 28K 78643K 661 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1223 77K 77K 78643K 2400 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 17 0 0 VM map 10 2K 2K 78643K 11 0 0 sem 12 0K 0K 78643K 794 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 4 9K 25K 78643K 1275 0 0 sigio 0 0K 0K 78643K 8 0 0 proc 49 38K 63K 78643K 703 0 0 subproc 32 2K 2K 78643K 136 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 91 0 0 in_multi 30 2K 2K 78643K 153 0 0 ether_multi 1 0K 0K 78643K 15 0 0 mrt 0 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 343 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 109 86K 89K 78643K 4038 0 0 UVM aobj 42 2K 3K 78643K 44 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 228 0 0 NDP 19 0K 0K 78643K 73 0 0 temp 205 3540K 3648K 78643K 22690 0 0 kqueue 0 0K 0K 78643K 18 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 27 0 21 1 0 1 1 0 8 0 rtpcb 80 139 0 137 1 0 1 1 0 8 0 rtentry 112 147 0 105 2 0 2 2 0 8 0 unpcb 120 942 0 931 2 1 1 2 0 8 0 syncache 264 12 0 12 5 5 0 1 0 8 0 tcpqe 32 197 0 197 4 4 0 1 0 8 0 tcpcb 544 438 0 434 3 2 1 3 0 8 0 ipq 40 8 0 8 4 4 0 1 0 8 0 ipqe 40 150 0 150 4 4 0 1 0 8 0 inpcb 280 1210 0 1203 9 8 1 4 0 8 0 rttmr 72 1 0 1 1 1 0 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 17 0 14 2 1 1 1 0 8 0 ppxss 1128 17 0 17 6 6 0 1 0 8 0 art_heap8 4096 4 0 3 3 2 1 3 0 8 0 art_heap4 256 634 0 426 23 8 15 16 0 8 0 art_table 32 638 0 429 2 0 2 2 0 8 0 art_node 16 146 0 107 1 0 1 1 0 8 0 sysvmsgpl 40 78 0 45 2 1 1 1 0 8 0 semupl 112 10 0 10 2 2 0 1 0 8 0 semapl 112 792 0 782 1 0 1 1 0 8 0 shmpl 112 42 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3711 0 2320 46 0 46 46 0 8 0 ffsino 240 3711 0 2320 83 0 83 83 0 8 0 nchpl 144 5875 0 5431 60 40 20 60 0 8 0 uvmvnodes 72 4417 0 0 81 0 81 81 0 8 0 vnodes 208 4417 0 0 233 0 233 233 0 8 0 namei 1024 19753 0 19752 3 2 1 1 0 8 0 vcpupl 1984 8 0 0 1 0 1 1 0 8 0 vmpool 520 9 0 1 1 0 1 1 0 8 0 scxspl 192 16910 0 16910 17 16 1 7 0 8 1 plimitpl 152 100 0 93 1 0 1 1 0 8 0 sigapl 432 1429 0 1417 2 0 2 2 0 8 0 futexpl 56 41695 0 41695 4 3 1 1 0 8 1 knotepl 112 1333 0 1314 8 7 1 2 0 8 0 kqueuepl 104 1949 0 1947 1 0 1 1 0 8 0 pipepl 112 904 0 885 3 2 1 2 0 8 0 fdescpl 424 1430 0 1417 2 0 2 2 0 8 0 filepl 120 14028 0 13932 10 6 4 6 0 8 1 lockfpl 104 391 0 390 1 0 1 1 0 8 0 lockfspl 48 134 0 133 1 0 1 1 0 8 0 sessionpl 112 24 0 14 1 0 1 1 0 8 0 pgrppl 48 30 0 20 1 0 1 1 0 8 0 ucredpl 96 2331 0 2324 1 0 1 1 0 8 0 zombiepl 144 1417 0 1417 1 0 1 1 0 8 1 processpl 864 1446 0 1417 4 0 4 4 0 8 0 procpl 632 3031 0 2996 4 0 4 4 0 8 0 sosppl 128 24 0 24 4 4 0 1 0 8 0 sockpl 384 2305 0 2285 11 8 3 6 0 8 0 mcl64k 65536 448 0 448 3 3 0 1 0 8 0 mcl16k 16384 19 0 19 5 5 0 1 0 8 0 mcl12k 12288 45 0 45 4 4 0 1 0 8 0 mcl9k 9216 257 0 257 3 3 0 1 0 8 0 mcl8k 8192 60 0 60 2 2 0 1 0 8 0 mcl4k 4096 118 0 118 2 2 0 1 0 8 0 mcl2k2 2112 4 0 4 2 2 0 1 0 8 0 mcl2k 2048 70061 0 70009 22 14 8 18 0 8 0 mtagpl 80 48 0 36 4 3 1 1 0 8 0 mbufpl 256 123225 0 123061 35 22 13 20 0 8 0 bufpl 256 11852 0 4706 447 0 447 447 0 8 0 anonpl 16 257888 0 243049 143 46 97 97 0 62 16 amapchunkpl 152 8008 0 7869 44 27 17 17 0 158 10 amappl16 192 12918 0 11852 108 53 55 67 0 8 0 amappl15 184 191 0 190 2 1 1 1 0 8 0 amappl14 176 192 0 187 1 0 1 1 0 8 0 amappl13 168 206 0 206 2 1 1 1 0 8 1 amappl12 160 17 0 14 1 0 1 1 0 8 0 amappl11 152 81 0 67 1 0 1 1 0 8 0 amappl10 144 308 0 305 1 0 1 1 0 8 0 amappl9 136 670 0 664 1 0 1 1 0 8 0 amappl8 128 235 0 203 2 0 2 2 0 8 0 amappl7 120 358 0 350 1 0 1 1 0 8 0 amappl6 112 80 0 69 1 0 1 1 0 8 0 amappl5 104 189 0 178 1 0 1 1 0 8 0 amappl4 96 1734 0 1707 1 0 1 1 0 8 0 amappl3 88 424 0 418 1 0 1 1 0 8 0 amappl2 80 10327 0 10267 3 1 2 3 0 8 0 amappl1 72 35533 0 35138 26 16 10 20 0 8 0 amappl 80 3379 0 3340 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 43 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1439 0 1417 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1439 0 1417 1 0 1 1 0 8 0 vmmpekpl 168 13578 0 13550 2 0 2 2 0 8 0 vmmpepl 168 182421 0 180365 244 103 141 141 0 357 42 vmsppl 272 1429 0 1417 3 1 2 2 0 8 1 pdppl 4096 2884 0 2844 7 1 6 6 0 8 0 pvpl 32 684171 0 667078 372 68 304 321 0 265 116 pmappl 200 1438 0 1418 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 646 0 66 17 0 17 17 0 8 0