panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 86571 24422 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(ffff8000169b1828) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd803d536d00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd803d536d00) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd803d536d00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff8000169b1ab0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8026ac6df0,ffff8000169b1c10,ffff8000169b1c60,ffff8000169b1b40) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff8000ffff2018,ffffff9c,7f7ffffee0c0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff8000169b1de0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffee0c0,88,0,7f7ffffee0e4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffee130, 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(ffff8000169b1828) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd803d536d00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd803d536d00) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd803d536d00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff8000169b1ab0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8026ac6df0,ffff8000169b1c10,ffff8000169b1c60,ffff8000169b1b40) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff8000ffff2018,ffffff9c,7f7ffffee0c0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff8000169b1de0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffee0c0,88,0,7f7ffffee0e4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffee130, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000169b1750 rbx 0xffff8000169b1800 rdx 0x2 rcx 0 rax 0 r8 0xffff8000169b1710 r9 0x1 r10 0 r11 0xc83659d7934463a r12 0x3000000008 r13 0xffff8000169b1760 r14 0x100 r15 0x1 rip 0xffffffff8208d768 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000169b1740 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=86571 stat=onproc flags process=2 proc=0 pri=17, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff38c8,0xffffffff82577d38 process=0xffff8000ffff6a30 user=0xffff8000169ac000, vmspace=0xfffffd803f013770 estcpu=36, cpticks=0, pctcpu=0.3 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *24422 86571 78149 0 7 0x2 syz-executor.1 76884 440575 78149 0 2 0x2 syz-executor.0 96766 110573 0 0 3 0x14200 acct acct 56470 150867 0 0 3 0x14200 bored sosplice 78149 377555 61737 0 3 0x82 thrsleep syz-fuzzer 78149 110780 61737 0 3 0x4000082 nanosleep syz-fuzzer 78149 288908 61737 0 3 0x4000082 thrsleep syz-fuzzer 78149 313369 61737 0 3 0x4000082 thrsleep syz-fuzzer 78149 360932 61737 0 3 0x4000082 thrsleep syz-fuzzer 78149 122275 61737 0 3 0x4000082 kqread syz-fuzzer 78149 196858 61737 0 3 0x4000082 thrsleep syz-fuzzer 78149 31387 61737 0 3 0x4000082 thrsleep syz-fuzzer 61737 13293 17829 0 3 0x10008a pause ksh 17829 390301 31994 0 3 0x92 select sshd 92018 228811 1 0 3 0x100083 ttyin getty 31994 321227 1 0 3 0x80 select sshd 82596 295012 7155 73 3 0x100090 kqread syslogd 7155 35344 1 0 3 0x100082 netio syslogd 77360 238494 0 0 3 0x14200 pgzero zerothread 20818 125090 0 0 3 0x14200 aiodoned aiodoned 23684 70809 0 0 3 0x14200 syncer update 80810 431416 0 0 3 0x14200 cleaner cleaner 8525 232835 0 0 3 0x14200 reaper reaper 57754 91692 0 0 3 0x14200 pgdaemon pagedaemon 63932 243522 0 0 3 0x14200 bored crynlk 29435 29500 0 0 3 0x14200 bored crypto 44004 230563 0 0 3 0x40014200 acpi0 acpi0 73795 421486 0 0 3 0x14200 bored softnet 91837 31671 0 0 3 0x14200 bored systqmp 15883 328656 0 0 3 0x14200 bored systq 67331 44456 0 0 3 0x40014200 bored softclock 39199 407576 0 0 3 0x40014200 idle0 63513 63222 0 0 3 0x14200 bored smr 1 502760 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 9615 7103K 14558K 78643K 42420 0 0 pcb 13 14K 16K 78643K 3141 0 0 rtable 119 8K 9K 78643K 3066 0 0 ifaddr 101 22K 23K 78643K 1013 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 369 0 0 iov 0 0K 32K 78643K 1378 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1238 78K 78K 78643K 10362 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 86 0 0 VM map 55 13K 13K 78643K 100 0 0 sem 12 0K 1K 78643K 1778 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 4 9K 25K 78643K 5543 0 0 sigio 0 0K 0K 78643K 92 0 0 proc 45 30K 55K 78643K 2392 0 0 subproc 32 2K 2K 78643K 667 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 568 0 0 in_multi 34 2K 2K 78643K 694 0 0 ether_multi 1 0K 0K 78643K 61 0 0 mrt 0 0K 0K 78643K 44 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 156 689K 689K 78643K 156 0 0 exec 0 0K 1K 78643K 1280 0 0 pfkey data 0 0K 0K 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 184 462K 463K 78643K 14894 0 0 UVM aobj 130 6K 6K 78643K 138 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 1107 0 0 NDP 24 0K 1K 78643K 334 0 0 temp 254 3545K 4185K 78643K 284474 0 0 kqueue 0 0K 0K 78643K 36 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 121 0 115 1 0 1 1 0 8 0 rtpcb 80 612 0 612 2 1 1 1 0 8 1 rtentry 112 654 0 612 2 0 2 2 0 8 0 unpcb 120 2741 0 2722 3 2 1 2 0 8 0 syncache 264 39 0 39 16 16 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 158 0 158 13 13 0 1 0 8 0 tcpcb 544 2389 0 2385 25 23 2 15 0 8 1 ipq 40 51 0 51 17 17 0 1 0 8 0 ipqe 40 1441 0 1441 17 17 0 1 0 8 0 inpcb 280 8810 0 8806 54 52 2 13 0 8 1 rttmr 72 12 0 12 8 8 0 1 0 8 0 nd6 48 92 0 89 4 3 1 1 0 8 0 pkpcb 40 22 0 22 8 7 1 1 0 8 1 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 111 0 111 20 19 1 1 0 8 1 art_heap8 4096 28 0 27 16 15 1 4 0 8 0 art_heap4 256 2767 0 2556 42 27 15 17 0 8 1 art_table 32 2795 0 2583 5 3 2 3 0 8 0 art_node 16 653 0 615 1 0 1 1 0 8 0 sysvmsgpl 40 73 0 57 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1776 0 1766 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9827 0 8407 46 0 46 46 0 8 0 ffsino 240 9827 0 8407 84 0 84 84 0 8 0 nchpl 144 19531 0 19038 61 41 20 61 0 8 0 uvmvnodes 72 7200 0 0 131 0 131 131 0 8 0 vnodes 208 7200 0 0 379 0 379 379 0 8 0 namei 1024 73812 0 73811 6 5 1 1 0 8 0 vcpupl 1984 53 0 0 7 0 7 7 0 8 0 vmpool 520 98 0 45 6 2 4 4 0 8 0 scsiplug 64 4 0 4 4 4 0 1 0 8 0 scxspl 192 72434 0 72434 27 26 1 6 0 8 1 plimitpl 152 511 0 505 1 0 1 1 0 8 0 sigapl 432 5603 0 5593 2 0 2 2 0 8 0 futexpl 56 191626 0 191626 7 6 1 1 0 8 1 knotepl 112 1568 0 1549 5 4 1 3 0 8 0 kqueuepl 104 1585 0 1583 4 3 1 4 0 8 0 pipepl 112 3532 0 3513 15 13 2 2 0 8 1 fdescpl 424 5604 0 5593 2 0 2 2 0 8 0 filepl 120 56501 0 56416 43 38 5 11 0 8 2 lockfpl 104 2189 0 2189 2 1 1 1 0 8 1 lockfspl 48 733 0 733 2 1 1 1 0 8 1 sessionpl 112 54 0 46 1 0 1 1 0 8 0 pgrppl 48 111 0 103 1 0 1 1 0 8 0 ucredpl 96 7820 0 7813 1 0 1 1 0 8 0 zombiepl 144 5596 0 5596 1 0 1 1 0 8 1 processpl 864 5623 0 5596 4 0 4 4 0 8 0 procpl 632 12321 0 12287 5 1 4 5 0 8 0 sosppl 128 91 0 91 20 19 1 1 0 8 1 sockpl 384 12379 0 12356 75 69 6 22 0 8 3 mcl64k 65536 1450 0 1450 56 55 1 33 0 8 1 mcl16k 16384 129 0 129 17 16 1 1 0 8 1 mcl12k 12288 214 0 214 11 10 1 1 0 8 1 mcl9k 9216 125 0 125 21 20 1 1 0 8 1 mcl8k 8192 276 0 276 14 13 1 1 0 8 1 mcl4k 4096 542 0 542 8 7 1 1 0 8 1 mcl2k2 2112 39 0 39 20 19 1 1 0 8 1 mcl2k 2048 81367 0 81317 32 25 7 14 0 8 0 mtagpl 80 253 0 236 5 4 1 1 0 8 0 mbufpl 256 197262 0 197090 150 138 12 32 0 8 0 bufpl 256 30084 0 22884 451 0 451 451 0 8 0 anonpl 16 733977 0 714478 226 131 95 99 0 62 6 amapchunkpl 152 30366 0 30246 97 90 7 19 0 158 0 amappl16 192 35555 0 34366 297 228 69 73 0 8 8 amappl15 184 1528 0 1526 4 3 1 1 0 8 0 amappl14 176 835 0 830 1 0 1 1 0 8 0 amappl13 168 423 0 421 2 1 1 1 0 8 0 amappl12 160 875 0 874 2 1 1 1 0 8 0 amappl11 152 1474 0 1470 1 0 1 1 0 8 0 amappl10 144 120 0 119 1 0 1 1 0 8 0 amappl9 136 1410 0 1402 1 0 1 1 0 8 0 amappl8 128 903 0 862 2 0 2 2 0 8 0 amappl7 120 291 0 283 1 0 1 1 0 8 0 amappl6 112 1399 0 1384 1 0 1 1 0 8 0 amappl5 104 1689 0 1682 1 0 1 1 0 8 0 amappl4 96 5402 0 5376 1 0 1 1 0 8 0 amappl3 88 1589 0 1574 1 0 1 1 0 8 0 amappl2 80 42916 0 42862 3 1 2 3 0 8 0 amappl1 72 113507 0 113146 26 17 9 20 0 8 0 amappl 80 13165 0 13104 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 137 0 8 3 0 3 3 0 8 0 uaddrrnd 24 5702 0 5593 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5702 0 5593 1 0 1 1 0 8 0 vmmpekpl 168 38215 0 38179 2 0 2 2 0 8 0 vmmpepl 168 697701 0 695513 447 308 139 152 0 357 26 vmsppl 272 5603 0 5593 6 5 1 2 0 8 0 pdppl 4096 11410 0 11329 13 2 11 11 0 8 0 pvpl 32 1976115 0 1953880 592 371 221 329 0 265 22 pmappl 200 5701 0 5638 6 2 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 925 0 333 18 0 18 18 0 8 0