panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 81505 84648 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(ffff8000148f8028) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd80282c7800) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd80282c7800) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd80282c7800) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff8000148f82b0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd802e64bb70,ffff8000148f8410,ffff8000148f8460,ffff8000148f8340) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff8000ffff3650,ffffff9c,7f7ffffdca20,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff8000148f85e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffdca20,88,0,7f7ffffdca44) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdca90, 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(ffff8000148f8028) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd80282c7800) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd80282c7800) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd80282c7800) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff8000148f82b0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd802e64bb70,ffff8000148f8410,ffff8000148f8460,ffff8000148f8340) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff8000ffff3650,ffffff9c,7f7ffffdca20,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff8000148f85e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffdca20,88,0,7f7ffffdca44) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdca90, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000148f7f50 rbx 0xffff8000148f8000 rdx 0x2 rcx 0 rax 0 r8 0xffff8000148f7f10 r9 0x1 r10 0 r11 0x754e70e8bb9d3cf6 r12 0x3000000008 r13 0xffff8000148f7f60 r14 0x100 r15 0x1 rip 0xffffffff817df538 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000148f7f40 ss 0 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=81505 stat=onproc flags process=2 proc=0 pri=17, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3b40,0xffff8000ffff2790 process=0xffff8000148a2d98 user=0xffff8000148f3000, vmspace=0xfffffd803f013220 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 83338 232051 2705 0 2 0x2 syz-executor.1 *84648 81505 2705 0 7 0x2 syz-executor.0 33373 221583 0 0 3 0x14200 acct acct 81837 218685 1 0 3 0x100083 ttyin getty 85571 391528 0 0 3 0x14200 bored sosplice 2705 134015 11198 0 3 0x82 thrsleep syz-fuzzer 2705 518307 11198 0 3 0x4000082 nanosleep syz-fuzzer 2705 154072 11198 0 2 0x4000002 syz-fuzzer 2705 282420 11198 0 3 0x4000082 thrsleep syz-fuzzer 2705 338294 11198 0 3 0x4000082 thrsleep syz-fuzzer 2705 142112 11198 0 3 0x4000082 thrsleep syz-fuzzer 2705 170407 11198 0 3 0x4000082 thrsleep syz-fuzzer 2705 442753 11198 0 3 0x4000082 thrsleep syz-fuzzer 11198 349410 53319 0 3 0x10008a pause ksh 53319 253961 75880 0 3 0x92 select sshd 75880 298752 1 0 3 0x80 select sshd 31514 171656 62368 73 3 0x100090 kqread syslogd 62368 363967 1 0 3 0x100082 netio syslogd 38232 365518 1 77 3 0x100090 poll dhclient 40196 521877 1 0 3 0x80 poll dhclient 15974 165748 0 0 2 0x14200 zerothread 71880 331517 0 0 3 0x14200 aiodoned aiodoned 81700 459897 0 0 3 0x14200 syncer update 43313 476062 0 0 3 0x14200 cleaner cleaner 24210 108390 0 0 3 0x14200 reaper reaper 79289 33260 0 0 3 0x14200 pgdaemon pagedaemon 47379 65694 0 0 3 0x14200 bored crynlk 95789 487850 0 0 3 0x14200 bored crypto 78867 237648 0 0 3 0x40014200 acpi0 acpi0 31981 50337 0 0 3 0x14200 bored softnet 44407 239548 0 0 3 0x14200 bored systqmp 46135 81558 0 0 3 0x14200 bored systq 26430 505958 0 0 3 0x40014200 bored softclock 13043 343710 0 0 3 0x40014200 idle0 67202 351974 0 0 3 0x14200 bored smr 1 89640 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 9621 7167K 8200K 78643K 35734 0 0 pcb 13 13K 15K 78643K 2473 0 0 rtable 113 12K 13K 78643K 7676 0 0 ifaddr 101 30K 38K 78643K 2468 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 658 0 0 iov 0 0K 48K 78643K 2467 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 11487 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 146 0 0 VM map 105 26K 26K 78643K 169 0 0 sem 12 0K 0K 78643K 4635 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 4 9K 25K 78643K 10118 0 0 sigio 0 0K 0K 78643K 134 0 0 proc 50 38K 55K 78643K 3012 0 0 subproc 32 2K 2K 78643K 799 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 1302 0 0 in_multi 21 1K 2K 78643K 1190 0 0 ether_multi 1 0K 0K 78643K 132 0 0 mrt 0 0K 0K 78643K 67 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 144 636K 636K 78643K 144 0 0 exec 0 0K 1K 78643K 1916 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 271 853K 854K 78643K 26740 0 0 UVM aobj 130 5K 6K 78643K 177 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 2641 0 0 NDP 24 0K 1K 78643K 753 0 0 temp 255 3541K 4181K 78643K 499658 0 0 kqueue 0 0K 0K 78643K 139 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 262 0 254 1 0 1 1 0 8 0 rtpcb 80 1158 0 1156 1 0 1 1 0 8 0 rtentry 112 1189 0 1151 2 0 2 2 0 8 0 unpcb 120 5391 0 5366 22 20 2 2 0 8 1 syncache 264 68 0 68 30 30 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 161 0 161 18 18 0 1 0 8 0 tcpcb 544 4599 0 4595 31 30 1 15 0 8 0 ipq 40 74 0 74 26 26 0 1 0 8 0 ipqe 40 1547 0 1547 26 26 0 1 0 8 0 inpcb 280 13554 0 13544 96 94 2 13 0 8 1 rttmr 72 14 0 14 4 4 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 1 0 1 1 1 0 1 0 8 0 nd6 48 133 0 133 6 5 1 1 0 8 1 pkpcb 40 46 0 46 18 18 0 1 0 8 0 swfcl 56 11 0 0 1 0 1 1 0 8 0 ppxss 1128 372 0 372 28 27 1 1 0 8 1 art_heap8 4096 36 0 34 14 12 2 4 0 8 0 art_heap4 256 4678 0 4475 52 33 19 20 0 8 1 art_table 32 4714 0 4509 4 1 3 3 0 8 0 art_node 16 1184 0 1148 1 0 1 1 0 8 0 sysvmsgpl 40 44 0 34 1 0 1 1 0 8 0 semapl 112 4631 0 4621 1 0 1 1 0 8 0 shmpl 112 175 0 47 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 19578 0 18122 48 0 48 48 0 8 0 ffsino 240 19578 0 18122 86 0 86 86 0 8 0 nchpl 144 37564 0 37075 64 43 21 61 0 8 0 uvmvnodes 72 6932 0 0 127 0 127 127 0 8 0 vnodes 208 6932 0 0 365 0 365 365 0 8 0 namei 1024 165323 0 165322 1 0 1 1 0 8 0 vcpupl 1984 104 0 1 13 0 13 13 0 8 0 vmpool 520 167 0 64 8 1 7 7 0 8 0 scsiplug 64 8 0 8 7 7 0 1 0 8 0 scxspl 192 121555 0 121555 67 66 1 7 0 8 1 plimitpl 152 925 0 918 1 0 1 1 0 8 0 sigapl 432 10156 0 10144 2 0 2 2 0 8 0 futexpl 56 333141 0 333141 2 1 1 1 0 8 1 knotepl 112 2563 0 2544 8 7 1 3 0 8 0 kqueuepl 104 3063 0 3061 4 3 1 4 0 8 0 pipepl 112 6504 0 6485 25 24 1 2 0 8 0 fdescpl 424 10157 0 10144 2 0 2 2 0 8 0 filepl 120 120742 0 120646 67 63 4 11 0 8 1 lockfpl 104 3842 0 3841 1 0 1 1 0 8 0 lockfspl 48 1364 0 1363 1 0 1 1 0 8 0 sessionpl 112 64 0 54 1 0 1 1 0 8 0 pgrppl 48 134 0 124 1 0 1 1 0 8 0 ucredpl 96 32896 0 32888 1 0 1 1 0 8 0 zombiepl 144 10146 0 10146 1 0 1 1 0 8 1 processpl 864 10175 0 10146 4 0 4 4 0 8 0 procpl 632 23427 0 23391 10 6 4 5 0 8 0 sosppl 128 175 0 175 41 40 1 1 0 8 1 sockpl 384 20308 0 20274 131 126 5 22 0 8 1 mcl64k 65536 2255 0 2255 140 130 10 33 0 8 10 mcl16k 16384 147 0 147 39 38 1 1 0 8 1 mcl12k 12288 320 0 320 23 22 1 1 0 8 1 mcl9k 9216 161 0 161 42 41 1 1 0 8 1 mcl8k 8192 545 0 545 9 8 1 1 0 8 1 mcl4k 4096 1447 0 1447 4 3 1 1 0 8 1 mcl2k2 2112 115 0 115 36 36 0 1 0 8 0 mcl2k 2048 89482 0 89437 23 16 7 18 0 8 0 mtagpl 80 648 0 618 5 4 1 1 0 8 0 mbufpl 256 243062 0 242857 260 238 22 37 0 8 7 bufpl 256 48009 0 40736 455 0 455 455 0 8 0 anonpl 16 1243427 0 1225450 357 262 95 105 0 62 4 amapchunkpl 152 55292 0 55167 195 188 7 20 0 158 1 amappl16 192 61458 0 60182 439 366 73 78 0 8 7 amappl15 184 2655 0 2655 8 7 1 1 0 8 1 amappl14 176 3035 0 3030 1 0 1 1 0 8 0 amappl13 168 1473 0 1473 6 6 0 1 0 8 0 amappl12 160 1234 0 1230 1 0 1 1 0 8 0 amappl11 152 902 0 891 1 0 1 1 0 8 0 amappl10 144 907 0 907 6 6 0 1 0 8 0 amappl9 136 2071 0 2062 1 0 1 1 0 8 0 amappl8 128 1654 0 1603 2 0 2 2 0 8 0 amappl7 120 1120 0 1113 1 0 1 1 0 8 0 amappl6 112 806 0 796 1 0 1 1 0 8 0 amappl5 104 1799 0 1787 1 0 1 1 0 8 0 amappl4 96 7783 0 7755 1 0 1 1 0 8 0 amappl3 88 5490 0 5470 1 0 1 1 0 8 0 amappl2 80 80762 0 80689 3 1 2 3 0 8 0 amappl1 72 195258 0 194862 27 18 9 20 0 8 0 amappl 80 24541 0 24449 3 0 3 3 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 176 0 47 3 0 3 3 0 8 0 uaddrrnd 24 10324 0 10144 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10324 0 10144 2 0 2 2 0 8 0 vmmpekpl 168 62314 0 62260 3 0 3 3 0 8 0 vmmpepl 168 1235236 0 1232603 669 506 163 169 0 357 35 vmsppl 272 10156 0 10144 7 6 1 2 0 8 0 pdppl 4096 20654 0 20519 22 4 18 18 0 8 0 pvpl 32 3005601 0 2987231 724 461 263 296 0 265 78 pmappl 200 10323 0 10208 7 0 7 7 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1148 0 520 19 0 19 19 0 8 0