panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *304851 40319 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(ffff80001511f9a8) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd802c316200) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd802c316200) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd802c316200) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff80001511fc30) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd803a7a9c30,ffff80001511fd90,ffff80001511fde0,ffff80001511fcc0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800015952290,ffffff9c,7f7ffffe07a0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff80001511ff60) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffe07a0,88,0,7f7ffffe07c4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe0810, 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(ffff80001511f9a8) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd802c316200) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd802c316200) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd802c316200) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff80001511fc30) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd803a7a9c30,ffff80001511fd90,ffff80001511fde0,ffff80001511fcc0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800015952290,ffffff9c,7f7ffffe07a0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff80001511ff60) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffe07a0,88,0,7f7ffffe07c4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe0810, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001511f8d0 rbx 0xffff80001511f980 rdx 0x2 rcx 0 rax 0 r8 0xffff80001511f890 r9 0x1 r10 0 r11 0xd33d0a374a1a68ef r12 0x3000000008 r13 0xffff80001511f8e0 r14 0x100 r15 0x1 rip 0xffffffff81f6e8c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001511f8c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=304851 stat=onproc flags process=2 proc=0 pri=17, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800015953b40,0xffff800015952ef8 process=0xffff8000ffffb0e8 user=0xffff80001511b000, vmspace=0xfffffd803f013770 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 81383 194729 1 0 3 0x100083 ttyin getty 16583 238043 72261 0 2 0x2 syz-executor.1 *40319 304851 72261 0 7 0x2 syz-executor.0 42134 437064 0 0 3 0x14200 bored sosplice 72261 108246 98417 0 3 0x82 thrsleep syz-fuzzer 72261 433111 98417 0 3 0x4000082 nanosleep syz-fuzzer 72261 91308 98417 0 3 0x4000082 thrsleep syz-fuzzer 72261 167740 98417 0 3 0x4000082 thrsleep syz-fuzzer 72261 218381 98417 0 3 0x4000082 thrsleep syz-fuzzer 72261 262358 98417 0 3 0x4000082 kqread syz-fuzzer 72261 357225 98417 0 3 0x4000082 thrsleep syz-fuzzer 98417 278070 26943 0 3 0x10008a pause ksh 26943 320342 25282 0 3 0x92 select sshd 25282 181248 1 0 3 0x80 select sshd 36579 383302 16823 73 3 0x100090 kqread syslogd 16823 386280 1 0 3 0x100082 netio syslogd 4529 2158 1 77 3 0x100090 poll dhclient 40942 362160 1 0 3 0x80 poll dhclient 89420 452629 0 0 3 0x14200 pgzero zerothread 27644 214459 0 0 3 0x14200 aiodoned aiodoned 35538 506488 0 0 3 0x14200 syncer update 89392 402379 0 0 3 0x14200 cleaner cleaner 95290 498344 0 0 3 0x14200 reaper reaper 85423 113091 0 0 3 0x14200 pgdaemon pagedaemon 51917 138531 0 0 3 0x14200 bored crynlk 35180 314690 0 0 3 0x14200 bored crypto 28317 37872 0 0 3 0x40014200 acpi0 acpi0 18390 454618 0 0 3 0x14200 bored softnet 32820 320883 0 0 3 0x14200 bored systqmp 2664 439482 0 0 3 0x14200 bored systq 49084 189752 0 0 3 0x40014200 bored softclock 69488 465034 0 0 3 0x40014200 idle0 76754 209547 0 0 3 0x14200 bored smr 1 77358 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 9582 6420K 7588K 78643K 17840 0 0 pcb 13 11K 13K 78643K 656 0 0 rtable 90 8K 8K 78643K 1720 0 0 ifaddr 80 16K 19K 78643K 399 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 172 0 0 iov 0 0K 32K 78643K 663 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1229 77K 78K 78643K 3951 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 38 0 0 VM map 14 3K 3K 78643K 18 0 0 sem 12 0K 1K 78643K 830 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 4 9K 25K 78643K 2636 0 0 sigio 0 0K 0K 78643K 54 0 0 proc 50 38K 63K 78643K 1169 0 0 subproc 32 2K 2K 78643K 289 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 209 0 0 in_multi 13 0K 2K 78643K 259 0 0 ether_multi 1 0K 0K 78643K 19 0 0 mrt 2 0K 0K 78643K 19 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 126 556K 556K 78643K 126 0 0 exec 0 0K 1K 78643K 642 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 129 104K 105K 78643K 7666 0 0 UVM aobj 130 5K 5K 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 651 0 0 NDP 20 0K 1K 78643K 129 0 0 temp 226 3544K 3673K 78643K 70089 0 0 kqueue 0 0K 0K 78643K 23 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 85 0 82 1 0 1 1 0 8 0 rtpcb 80 285 0 283 1 0 1 1 0 8 0 rtentry 112 337 0 307 2 0 2 2 0 8 0 unpcb 120 2294 0 2285 8 6 2 2 0 8 1 syncache 264 13 0 13 5 4 1 1 0 8 1 tcpqe 32 42 0 42 4 3 1 1 0 8 1 tcpcb 544 961 0 957 3 2 1 2 0 8 0 ipq 40 28 0 28 10 10 0 1 0 8 0 ipqe 40 496 0 496 10 10 0 1 0 8 0 inpcb 280 4418 0 4411 42 37 5 13 0 8 4 rttmr 72 4 0 4 4 4 0 1 0 8 0 nd6 48 37 0 37 1 0 1 1 0 8 1 pkpcb 40 14 0 14 6 5 1 1 0 8 1 ppxss 1128 27 0 27 14 13 1 1 0 8 1 art_heap8 4096 4 0 2 4 2 2 3 0 8 0 art_heap4 256 1296 0 1156 28 15 13 16 0 8 1 art_table 32 1300 0 1158 3 1 2 3 0 8 0 art_node 16 336 0 310 1 0 1 1 0 8 0 sysvmsgpl 40 68 0 46 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 828 0 818 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 6270 0 4871 46 0 46 46 0 8 0 ffsino 240 6270 0 4871 83 0 83 83 0 8 0 nchpl 144 10829 0 10357 60 41 19 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 38863 0 38862 4 3 1 1 0 8 0 vcpupl 1984 12 0 0 2 0 2 2 0 8 0 vmpool 520 16 0 4 1 0 1 1 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 36353 0 36353 27 26 1 7 0 8 1 plimitpl 152 242 0 235 1 0 1 1 0 8 0 sigapl 432 2763 0 2751 2 0 2 2 0 8 0 futexpl 56 110701 0 110701 5 4 1 1 0 8 1 knotepl 112 796 0 777 2 1 1 2 0 8 0 kqueuepl 104 830 0 828 1 0 1 1 0 8 0 pipepl 112 2252 0 2233 11 9 2 2 0 8 1 fdescpl 424 2764 0 2751 2 0 2 2 0 8 0 filepl 120 28833 0 28737 41 32 9 11 0 8 6 lockfpl 104 1509 0 1508 1 0 1 1 0 8 0 lockfspl 48 406 0 405 1 0 1 1 0 8 0 sessionpl 112 33 0 23 1 0 1 1 0 8 0 pgrppl 48 61 0 51 1 0 1 1 0 8 0 ucredpl 96 3170 0 3161 1 0 1 1 0 8 0 zombiepl 144 2753 0 2753 1 0 1 1 0 8 1 processpl 864 2781 0 2753 4 0 4 4 0 8 0 procpl 632 6119 0 6085 4 0 4 4 0 8 0 sosppl 128 46 0 46 12 11 1 1 0 8 1 sockpl 384 7065 0 7047 92 81 11 22 0 8 8 mcl64k 65536 527 0 269 35 2 33 34 0 8 0 mcl16k 16384 78 0 78 11 10 1 1 0 8 1 mcl12k 12288 94 0 94 8 7 1 1 0 8 1 mcl9k 9216 54 0 54 12 11 1 1 0 8 1 mcl8k 8192 138 0 138 8 7 1 1 0 8 1 mcl4k 4096 310 0 310 7 6 1 1 0 8 1 mcl2k2 2112 20 0 20 8 7 1 1 0 8 1 mcl2k 2048 67269 0 67224 15 7 8 12 0 8 1 mtagpl 80 251 0 251 4 3 1 1 0 8 1 mbufpl 256 136388 0 136051 106 71 35 44 0 8 8 bufpl 256 16315 0 11001 333 0 333 333 0 8 0 anonpl 16 402435 0 382424 169 82 87 99 0 62 0 amapchunkpl 152 14872 0 14726 39 31 8 11 0 158 0 amappl16 192 19207 0 18066 153 94 59 70 0 8 0 amappl15 184 277 0 277 3 3 0 1 0 8 0 amappl14 176 233 0 228 1 0 1 1 0 8 0 amappl13 168 144 0 143 1 0 1 1 0 8 0 amappl12 160 761 0 756 1 0 1 1 0 8 0 amappl11 152 327 0 315 1 0 1 1 0 8 0 amappl10 144 977 0 973 1 0 1 1 0 8 0 amappl9 136 869 0 863 1 0 1 1 0 8 0 amappl8 128 415 0 373 2 0 2 2 0 8 0 amappl7 120 1018 0 1012 1 0 1 1 0 8 0 amappl6 112 323 0 313 1 0 1 1 0 8 0 amappl5 104 1046 0 1036 1 0 1 1 0 8 0 amappl4 96 3163 0 3130 1 0 1 1 0 8 0 amappl3 88 401 0 395 1 0 1 1 0 8 0 amappl2 80 20533 0 20473 3 1 2 3 0 8 0 amappl1 72 60327 0 59934 26 17 9 20 0 8 0 amappl 80 6652 0 6606 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 141 0 12 3 0 3 3 0 8 0 uaddrrnd 24 2780 0 2751 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2780 0 2751 1 0 1 1 0 8 0 vmmpekpl 168 23066 0 23037 2 0 2 2 0 8 0 vmmpepl 168 347941 0 345750 280 173 107 144 0 357 1 vmsppl 272 2763 0 2751 3 2 1 2 0 8 0 pdppl 4096 5566 0 5522 8 1 7 7 0 8 0 pvpl 32 950718 0 928447 347 134 213 226 0 265 21 pmappl 200 2779 0 2755 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 653 0 130 16 0 16 16 0 8 0