panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 78888 96912 0 0 0x4000000 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(ffff80001797d958) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd802acc4700) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd802acc4700) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd802acc4700) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff80001797dbe0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd80052915c8,ffff80001797dd40,ffff80001797dd90,ffff80001797dc70) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff8000ffff3b40,ffffff9c,200001c0,fffffffd) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff80001797df10) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff8b,0,2,af6a308a010) at Xsyscall+0x128 end of kernel end trace frame: 0xaf962101970, 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(ffff80001797d958) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd802acc4700) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd802acc4700) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd802acc4700) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff80001797dbe0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd80052915c8,ffff80001797dd40,ffff80001797dd90,ffff80001797dc70) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff8000ffff3b40,ffffff9c,200001c0,fffffffd) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff80001797df10) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff8b,0,2,af6a308a010) at Xsyscall+0x128 end of kernel end trace frame: 0xaf962101970, count: -11 ddb> show registers rdi 0xffffffff81605487 db_enter+0x17 rsi 0x16a9 __ALIGN_SIZE+0x6a9 rbp 0xffff80001797d880 rbx 0xffff80001797d930 rdx 0x16aa __ALIGN_SIZE+0x6aa rcx 0xffff800015952000 rax 0xffff800015952000 r8 0xffff80001797d840 r9 0x1 r10 0xffff800000a966c0 r11 0xdc628e39a4b2f2e9 r12 0x3000000008 r13 0xffff80001797d890 r14 0x100 r15 0x1 rip 0xffffffff81605488 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001797d870 ss 0 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=78888 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2ee8,0xffff8000ffff3660 process=0xffff8000148a2018 user=0xffff800017978000, vmspace=0xfffffd803f013880 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 96912 420702 31905 0 2 0 syz-executor.0 *96912 78888 31905 0 7 0x4000000 syz-executor.0 8790 170652 46750 0 3 0x3000 suspend syz-executor.1 8790 384730 46750 0 2 0x4081000 syz-executor.1 46750 297921 60747 0 3 0x82 nanosleep syz-executor.1 31905 9574 60747 0 3 0x82 nanosleep syz-executor.0 46888 411722 1 0 3 0x100083 ttyin getty 26886 352162 0 0 3 0x14200 bored sosplice 60747 164121 14211 0 3 0x82 thrsleep syz-fuzzer 60747 257172 14211 0 3 0x4000082 nanosleep syz-fuzzer 60747 413383 14211 0 3 0x4000082 thrsleep syz-fuzzer 60747 480189 14211 0 3 0x4000082 thrsleep syz-fuzzer 60747 489000 14211 0 3 0x4000082 thrsleep syz-fuzzer 60747 423660 14211 0 3 0x4000082 kqread syz-fuzzer 60747 510328 14211 0 3 0x4000082 thrsleep syz-fuzzer 60747 426856 14211 0 3 0x4000082 thrsleep syz-fuzzer 14211 432836 48222 0 3 0x10008a pause ksh 48222 319042 42937 0 3 0x92 select sshd 42937 173595 1 0 3 0x80 select sshd 51971 328277 24714 73 3 0x100090 kqread syslogd 24714 478303 1 0 3 0x100082 netio syslogd 30611 192363 1 77 3 0x100090 poll dhclient 35140 499922 1 0 3 0x80 poll dhclient 9799 273085 0 0 2 0x14200 zerothread 44787 202831 0 0 3 0x14200 aiodoned aiodoned 29178 56739 0 0 3 0x14200 syncer update 16074 61975 0 0 3 0x14200 cleaner cleaner 93202 368623 0 0 3 0x14200 reaper reaper 88924 495426 0 0 3 0x14200 pgdaemon pagedaemon 96602 139529 0 0 3 0x14200 bored crynlk 87367 437430 0 0 3 0x14200 bored crypto 13514 186569 0 0 3 0x40014200 acpi0 acpi0 10206 147155 0 0 3 0x14200 bored softnet 47492 287765 0 0 3 0x14200 bored systqmp 104 102815 0 0 3 0x14200 bored systq 53858 360670 0 0 3 0x40014200 bored softclock 16833 5670 0 0 3 0x40014200 idle0 95987 81689 0 0 3 0x14200 bored smr 1 310854 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 9523 6984K 7625K 78643K 13909 0 0 pcb 13 10K 12K 78643K 854 0 0 rtable 128 5K 5K 78643K 2889 0 0 ifaddr 65 14K 15K 78643K 225 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 85 0 0 iov 0 0K 28K 78643K 899 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1229 77K 78K 78643K 2749 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 19 0 0 VM map 12 3K 3K 78643K 18 0 0 sem 12 0K 0K 78643K 2300 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 2002 0 0 sigio 0 0K 0K 78643K 2 0 0 proc 48 38K 62K 78643K 862 0 0 subproc 32 2K 2K 78643K 221 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 154 0 0 in_multi 33 2K 2K 78643K 181 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 8 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 387 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 125 71K 75K 78643K 5710 0 0 UVM aobj 65 3K 3K 78643K 82 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 826 0 0 NDP 14 0K 0K 78643K 78 0 0 temp 184 3543K 4183K 78643K 63439 0 0 kqueue 0 0K 0K 78643K 4 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 50 0 42 1 0 1 1 0 8 0 rtpcb 80 1163 0 1161 1 0 1 1 0 8 0 rtentry 112 218 0 167 2 0 2 2 0 8 0 unpcb 120 520 0 512 1 0 1 1 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 86 0 86 1 1 0 1 0 8 0 tcpcb 544 1422 0 1418 20 19 1 16 0 8 0 ipq 40 4 0 4 2 2 0 1 0 8 0 ipqe 40 10 0 10 2 2 0 1 0 8 0 inpcb 280 3872 0 3859 21 19 2 10 0 8 0 rttmr 72 2 0 2 2 2 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 nd6 48 28 0 24 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 13 0 13 7 7 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 884 0 643 19 3 16 16 0 8 0 art_table 32 885 0 643 2 0 2 2 0 8 0 art_node 16 216 0 170 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 2298 0 2288 1 0 1 1 0 8 0 shmpl 112 80 0 17 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4400 0 3007 46 0 46 46 0 8 0 ffsino 240 4400 0 3007 83 0 83 83 0 8 0 nchpl 144 9375 0 8913 60 41 19 60 0 8 0 uvmvnodes 72 5768 0 0 105 0 105 105 0 8 0 vnodes 208 5768 0 0 304 0 304 304 0 8 0 namei 1024 33255 0 33252 3 2 1 1 0 8 0 vcpupl 1984 10 0 0 2 0 2 2 0 8 0 vmpool 520 16 0 6 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 27583 0 27583 17 16 1 7 0 8 1 plimitpl 152 95 0 88 1 0 1 1 0 8 0 sigapl 432 2141 0 2127 2 0 2 2 0 8 0 futexpl 56 71701 0 71701 3 2 1 1 0 8 1 knotepl 112 1004 0 985 1 0 1 1 0 8 0 kqueuepl 104 3161 0 3157 4 3 1 4 0 8 0 pipepl 112 676 0 657 2 1 1 2 0 8 0 fdescpl 424 2142 0 2127 2 0 2 2 0 8 0 filepl 120 23521 0 23417 18 14 4 11 0 8 0 lockfpl 104 1194 0 1193 1 0 1 1 0 8 0 lockfspl 48 503 0 502 1 0 1 1 0 8 0 sessionpl 112 29 0 19 1 0 1 1 0 8 0 pgrppl 48 31 0 21 1 0 1 1 0 8 0 ucredpl 96 5139 0 5132 1 0 1 1 0 8 0 zombiepl 144 2128 0 2127 1 0 1 1 0 8 0 processpl 864 2157 0 2127 4 0 4 4 0 8 0 procpl 632 4485 0 4446 4 0 4 4 0 8 0 sosppl 128 18 0 18 5 4 1 1 0 8 1 sockpl 384 5569 0 5552 30 27 3 14 0 8 1 mcl64k 65536 554 0 554 41 41 0 32 0 8 0 mcl16k 16384 9 0 9 7 7 0 1 0 8 0 mcl12k 12288 521 0 521 7 6 1 1 0 8 1 mcl9k 9216 188 0 188 9 9 0 1 0 8 0 mcl8k 8192 60 0 60 13 13 0 1 0 8 0 mcl4k 4096 165 0 165 9 9 0 1 0 8 0 mcl2k2 2112 17 0 17 5 5 0 1 0 8 0 mcl2k 2048 70072 0 70032 19 13 6 13 0 8 0 mtagpl 80 34 0 31 7 6 1 1 0 8 0 mbufpl 256 135130 0 135032 44 37 7 22 0 8 0 bufpl 256 15722 0 8757 437 1 436 436 0 8 0 anonpl 16 232303 0 213785 124 47 77 89 0 62 0 amapchunkpl 152 10394 0 10276 46 37 9 19 0 158 3 amappl16 192 11077 0 10021 125 71 54 64 0 8 0 amappl15 184 259 0 259 2 2 0 1 0 8 0 amappl14 176 114 0 111 1 0 1 1 0 8 0 amappl13 168 81 0 80 1 0 1 1 0 8 0 amappl12 160 123 0 119 1 0 1 1 0 8 0 amappl11 152 628 0 615 1 0 1 1 0 8 0 amappl10 144 151 0 148 2 1 1 1 0 8 0 amappl9 136 1549 0 1543 1 0 1 1 0 8 0 amappl8 128 1089 0 1052 2 0 2 2 0 8 0 amappl7 120 215 0 207 1 0 1 1 0 8 0 amappl6 112 615 0 603 1 0 1 1 0 8 0 amappl5 104 326 0 316 1 0 1 1 0 8 0 amappl4 96 2381 0 2353 1 0 1 1 0 8 0 amappl3 88 868 0 863 1 0 1 1 0 8 0 amappl2 80 15684 0 15605 3 1 2 3 0 8 0 amappl1 72 46810 0 46382 27 18 9 20 0 8 0 amappl 80 4901 0 4856 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 81 0 17 2 0 2 2 0 8 0 uaddrrnd 24 2158 0 2127 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2158 0 2127 1 0 1 1 0 8 0 vmmpekpl 168 16692 0 16669 3 1 2 2 0 8 0 vmmpepl 168 263373 0 261095 336 208 128 160 0 357 28 vmsppl 272 2141 0 2127 7 6 1 2 0 8 0 pdppl 4096 4322 0 4276 8 2 6 7 0 8 0 pvpl 32 671186 0 649990 370 187 183 296 0 265 8 pmappl 200 2157 0 2133 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 716 0 155 17 0 17 17 0 8 0