panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *301414 33395 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(ffff800014942698) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd803d8ea200) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd803d8ea200) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd803d8ea200) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800014942920) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8032dc3840,ffff800014942a80,ffff800014942ad0,ffff8000149429b0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff8000ffff8770,ffffff9c,7f7ffffeddb0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800014942c50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffeddb0,88,0,7f7ffffeddd4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffede20, 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(ffff800014942698) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd803d8ea200) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd803d8ea200) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd803d8ea200) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800014942920) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8032dc3840,ffff800014942a80,ffff800014942ad0,ffff8000149429b0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff8000ffff8770,ffffff9c,7f7ffffeddb0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800014942c50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffeddb0,88,0,7f7ffffeddd4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffede20, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000149425c0 rbx 0xffff800014942670 rdx 0x2 rcx 0 rax 0 r8 0xffff800014942580 r9 0x1 r10 0 r11 0x69e2de686b1d32d3 r12 0x3000000008 r13 0xffff8000149425d0 r14 0x100 r15 0x1 rip 0xffffffff81939468 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149425b0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=301414 stat=onproc flags process=2 proc=0 pri=17, usrpri=58, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8280,0xffff8000149153e8 process=0xffff8000148a2d98 user=0xffff80001493d000, vmspace=0xfffffd803f013330 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 95185 84926 0 0 3 0x14200 acct acct *33395 301414 20531 0 7 0x2 syz-executor.0 7694 292771 20531 0 2 0x2 syz-executor.1 20531 267490 8641 0 2 0x2 syz-fuzzer 20531 57656 8641 0 3 0x4000082 nanosleep syz-fuzzer 20531 255220 8641 0 3 0x4000082 thrsleep syz-fuzzer 20531 481929 8641 0 3 0x4000082 thrsleep syz-fuzzer 20531 505621 8641 0 3 0x4000082 thrsleep syz-fuzzer 20531 121146 8641 0 3 0x4000082 thrsleep syz-fuzzer 20531 64891 8641 0 3 0x4000082 thrsleep syz-fuzzer 8641 226524 78638 0 3 0x10008a pause ksh 78638 354442 20978 0 3 0x92 select sshd 73950 41757 1 0 3 0x100083 ttyin getty 20978 317815 1 0 3 0x80 select sshd 82102 255920 52075 73 3 0x100090 kqread syslogd 52075 28635 1 0 3 0x100082 netio syslogd 53876 320746 1 77 3 0x100090 poll dhclient 47187 57861 1 0 3 0x80 poll dhclient 46538 50084 0 0 2 0x14200 zerothread 7821 316792 0 0 3 0x14200 aiodoned aiodoned 85637 480079 0 0 3 0x14200 syncer update 61504 433674 0 0 3 0x14200 cleaner cleaner 27639 134901 0 0 3 0x14200 reaper reaper 31423 337616 0 0 3 0x14200 pgdaemon pagedaemon 29653 72907 0 0 3 0x14200 bored crynlk 89551 364659 0 0 3 0x14200 bored crypto 64613 398024 0 0 3 0x40014200 acpi0 acpi0 34267 170114 0 0 3 0x14200 bored softnet 75511 284874 0 0 3 0x14200 bored systqmp 77613 1803 0 0 3 0x14200 bored systq 43393 48863 0 0 3 0x40014200 bored softclock 64479 99268 0 0 3 0x40014200 idle0 86517 161250 0 0 3 0x14200 bored smr 1 100905 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 9474 6575K 6705K 78643K 10713 0 0 pcb 13 8K 8K 78643K 29 0 0 rtable 88 3K 4K 78643K 225 0 0 ifaddr 36 9K 11K 78643K 47 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 15 0 0 iov 0 0K 12K 78643K 18 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 77K 77K 78643K 1287 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 39 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 4 9K 25K 78643K 112 0 0 sigio 0 0K 0K 78643K 2 0 0 proc 48 38K 63K 78643K 351 0 0 subproc 32 2K 2K 78643K 34 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 22 1K 2K 78643K 33 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 36 159K 159K 78643K 36 0 0 exec 0 0K 1K 78643K 184 0 0 pfkey data 0 0K 4K 78643K 2 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 87 20K 21K 78643K 1061 0 0 UVM aobj 2 2K 2K 78643K 2 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 12 0 0 NDP 6 0K 0K 78643K 12 0 0 temp 92 3529K 3593K 78643K 3460 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 6 0 2 1 0 1 1 0 8 0 rtpcb 80 57 0 55 1 0 1 1 0 8 0 rtentry 112 45 0 11 2 0 2 2 0 8 0 unpcb 120 63 0 55 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 33 0 33 1 1 0 1 0 8 0 tcpcb 544 20 0 16 1 0 1 1 0 8 0 inpcb 280 66 0 59 1 0 1 1 0 8 0 nd6 48 4 0 2 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 ppxss 1128 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 212 0 43 14 0 14 14 0 8 1 art_table 32 213 0 43 2 0 2 2 0 8 0 art_node 16 44 0 13 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 4 1 0 1 1 0 8 0 semapl 112 37 0 27 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1524 0 125 46 0 46 46 0 8 0 ffsino 240 1524 0 125 83 0 83 83 0 8 0 nchpl 144 1873 0 260 60 0 60 60 0 8 0 uvmvnodes 72 1626 0 0 30 0 30 30 0 8 0 vnodes 208 1626 0 0 86 0 86 86 0 8 0 namei 1024 4564 0 4563 1 0 1 1 0 8 0 scxspl 192 5024 0 5024 8 1 7 7 0 8 7 plimitpl 152 18 0 11 1 0 1 1 0 8 0 sigapl 432 283 0 271 2 0 2 2 0 8 0 futexpl 56 1332 0 1332 1 0 1 1 0 8 1 knotepl 112 59 0 40 1 0 1 1 0 8 0 kqueuepl 104 10 0 8 1 0 1 1 0 8 0 pipepl 112 178 0 159 1 0 1 1 0 8 0 fdescpl 424 284 0 271 2 0 2 2 0 8 0 filepl 120 1445 0 1349 4 0 4 4 0 8 1 lockfpl 104 22 0 21 1 0 1 1 0 8 0 lockfspl 48 8 0 7 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 23 0 13 1 0 1 1 0 8 0 ucredpl 96 82 0 75 1 0 1 1 0 8 0 zombiepl 144 271 0 271 1 0 1 1 0 8 1 processpl 864 299 0 271 4 0 4 4 0 8 0 procpl 632 397 0 363 4 0 4 4 0 8 0 sockpl 384 188 0 171 4 0 4 4 0 8 2 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 1 0 1 1 0 1 1 0 8 1 mcl4k 4096 18 0 18 2 1 1 1 0 8 1 mcl2k 2048 66286 0 66242 16 2 14 14 0 8 8 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 105459 0 105395 10 1 9 9 0 8 2 bufpl 256 6188 0 1410 299 0 299 299 0 8 0 anonpl 16 42158 0 24387 74 2 72 72 0 62 0 amapchunkpl 152 1143 0 1038 7 0 7 7 0 158 2 amappl16 192 1424 0 418 51 0 51 51 0 8 0 amappl15 184 48 0 45 1 0 1 1 0 8 0 amappl14 176 29 0 26 1 0 1 1 0 8 0 amappl13 168 1 0 1 1 1 0 1 0 8 0 amappl12 160 5 0 4 1 0 1 1 0 8 0 amappl11 152 86 0 73 1 0 1 1 0 8 0 amappl10 144 8 0 6 1 0 1 1 0 8 0 amappl9 136 568 0 562 1 0 1 1 0 8 0 amappl8 128 149 0 126 1 0 1 1 0 8 0 amappl7 120 44 0 40 1 0 1 1 0 8 0 amappl6 112 104 0 95 1 0 1 1 0 8 0 amappl5 104 150 0 141 1 0 1 1 0 8 0 amappl4 96 492 0 469 1 0 1 1 0 8 0 amappl3 88 116 0 109 1 0 1 1 0 8 0 amappl2 80 1503 0 1445 3 1 2 3 0 8 0 amappl1 72 14500 0 14113 26 13 13 20 0 8 4 amappl 80 613 0 579 1 0 1 1 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 284 0 271 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 284 0 271 1 0 1 1 0 8 0 vmmpekpl 168 6118 0 6096 2 0 2 2 0 8 0 vmmpepl 168 41271 0 39332 129 6 123 123 0 357 34 vmsppl 272 283 0 271 2 0 2 2 0 8 1 pdppl 4096 574 0 542 6 0 6 6 0 8 1 pvpl 32 139788 0 119136 171 0 171 171 0 265 3 pmappl 200 283 0 271 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 441 0 6 13 0 13 13 0 8 0