panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 69044 63726 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(ffff80001596c3c8) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd803d006400) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd803d006400) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd803d006400) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff80001596c650) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd802ddc9aa8,ffff80001596c7b0,ffff80001596c800,ffff80001596c6e0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800014f329f8,ffffff9c,7f7fffff8310,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff80001596c980) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7fffff8310,88,0,7f7fffff8334) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff8380, 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(ffff80001596c3c8) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd803d006400) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd803d006400) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd803d006400) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff80001596c650) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd802ddc9aa8,ffff80001596c7b0,ffff80001596c800,ffff80001596c6e0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800014f329f8,ffffff9c,7f7fffff8310,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff80001596c980) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7fffff8310,88,0,7f7fffff8334) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff8380, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001596c2f0 rbx 0xffff80001596c3a0 rdx 0x2 rcx 0 rax 0 r8 0xffff80001596c2b0 r9 0x1 r10 0 r11 0x5183454b9ce61800 r12 0x3000000008 r13 0xffff80001596c300 r14 0x100 r15 0x1 rip 0xffffffff817df538 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001596c2e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=69044 stat=onproc flags process=2 proc=0 pri=17, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800014f32508,0xffffffff825a6d38 process=0xffff8000148a2d98 user=0xffff800015967000, vmspace=0xfffffd803f013220 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *63726 69044 27485 0 7 0x2 syz-executor.1 16375 447226 27485 0 2 0x2 syz-executor.0 27627 476864 0 0 3 0x14200 acct acct 39115 211224 0 0 3 0x14200 bored sosplice 27485 293544 75141 0 3 0x82 thrsleep syz-fuzzer 27485 270378 75141 0 3 0x4000082 nanosleep syz-fuzzer 27485 292277 75141 0 3 0x4000082 thrsleep syz-fuzzer 27485 109467 75141 0 3 0x4000082 kqread syz-fuzzer 27485 508816 75141 0 3 0x4000082 thrsleep syz-fuzzer 27485 3103 75141 0 3 0x4000082 thrsleep syz-fuzzer 27485 427207 75141 0 3 0x4000082 thrsleep syz-fuzzer 27485 7409 75141 0 3 0x4000082 thrsleep syz-fuzzer 75141 357779 76369 0 3 0x10008a pause ksh 76369 171724 10839 0 3 0x92 select sshd 73542 443704 1 0 3 0x100083 ttyin getty 10839 501929 1 0 3 0x80 select sshd 89580 117658 97422 73 3 0x100090 kqread syslogd 97422 483263 1 0 3 0x100082 netio syslogd 51531 336868 1 77 3 0x100090 poll dhclient 16817 11085 1 0 3 0x80 poll dhclient 78276 246215 0 0 3 0x14200 pgzero zerothread 47443 327119 0 0 3 0x14200 aiodoned aiodoned 39990 508761 0 0 3 0x14200 syncer update 21877 287131 0 0 3 0x14200 cleaner cleaner 71834 55683 0 0 3 0x14200 reaper reaper 88297 499808 0 0 3 0x14200 pgdaemon pagedaemon 19601 392706 0 0 3 0x14200 bored crynlk 9535 345105 0 0 3 0x14200 bored crypto 18678 94729 0 0 3 0x40014200 acpi0 acpi0 23330 81603 0 0 3 0x14200 bored softnet 5402 433777 0 0 3 0x14200 bored systqmp 63045 81797 0 0 3 0x14200 bored systq 54137 332855 0 0 3 0x40014200 bored softclock 54303 358723 0 0 3 0x40014200 idle0 33206 394918 0 0 3 0x14200 bored smr 1 198508 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 9581 7143K 7992K 78643K 15852 0 0 pcb 13 12K 14K 78643K 488 0 0 rtable 115 12K 12K 78643K 1667 0 0 ifaddr 78 16K 17K 78643K 404 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 159 0 0 iov 0 0K 32K 78643K 707 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 77K 78K 78643K 3098 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 32 0 0 VM map 34 8K 8K 78643K 48 0 0 sem 12 1K 1K 78643K 113 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 4 9K 25K 78643K 2084 0 0 sigio 0 0K 0K 78643K 52 0 0 proc 49 38K 63K 78643K 972 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 206 0 0 in_multi 31 2K 2K 78643K 288 0 0 ether_multi 1 0K 0K 78643K 15 0 0 mrt 0 0K 0K 78643K 18 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 174 768K 768K 78643K 174 0 0 exec 0 0K 1K 78643K 545 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 160 299K 299K 78643K 6158 0 0 UVM aobj 120 6K 6K 78643K 126 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 472 0 0 NDP 18 0K 0K 78643K 134 0 0 temp 212 3540K 4179K 78643K 119880 0 0 kqueue 0 0K 0K 78643K 18 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 69 0 63 1 0 1 1 0 8 0 rtpcb 80 245 0 243 1 0 1 1 0 8 0 rtentry 112 350 0 307 2 0 2 2 0 8 0 unpcb 120 1720 0 1710 4 3 1 2 0 8 0 syncache 264 17 0 17 6 5 1 1 0 8 1 tcpqe 32 177 0 177 6 5 1 1 0 8 1 tcpcb 544 1010 0 1004 16 14 2 13 0 8 1 ipq 40 18 0 18 5 4 1 1 0 8 1 ipqe 40 420 0 420 5 4 1 1 0 8 1 inpcb 280 2874 0 2865 27 25 2 13 0 8 1 rttmr 72 5 0 4 2 1 1 1 0 8 0 ip6q 72 2 0 2 2 2 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 48 41 0 38 1 0 1 1 0 8 0 pkpcb 40 12 0 12 5 5 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 48 0 48 10 9 1 1 0 8 1 art_heap8 4096 7 0 6 4 3 1 3 0 8 0 art_heap4 256 1392 0 1163 23 8 15 17 0 8 0 art_table 32 1399 0 1169 4 2 2 3 0 8 0 art_node 16 348 0 308 1 0 1 1 0 8 0 sysvmsgpl 40 21 0 7 1 0 1 1 0 8 0 semapl 112 109 0 99 1 0 1 1 0 8 0 shmpl 112 124 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5307 0 3904 46 0 46 46 0 8 0 ffsino 240 5307 0 3904 84 0 84 84 0 8 0 nchpl 144 9010 0 8564 61 42 19 61 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 30590 0 30589 3 2 1 1 0 8 0 vcpupl 1984 33 0 1 4 0 4 4 0 8 0 vmpool 520 46 0 14 3 0 3 3 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 29007 0 29007 21 20 1 7 0 8 1 plimitpl 152 203 0 196 1 0 1 1 0 8 0 sigapl 432 2222 0 2210 2 0 2 2 0 8 0 futexpl 56 67260 0 67260 4 3 1 1 0 8 1 knotepl 112 589 0 570 3 2 1 3 0 8 0 kqueuepl 104 718 0 716 4 3 1 4 0 8 0 pipepl 112 1756 0 1737 6 5 1 2 0 8 0 fdescpl 424 2223 0 2210 2 0 2 2 0 8 0 filepl 120 21545 0 21449 25 21 4 11 0 8 1 lockfpl 104 5525 0 5524 1 0 1 1 0 8 0 lockfspl 48 941 0 940 1 0 1 1 0 8 0 sessionpl 112 28 0 18 1 0 1 1 0 8 0 pgrppl 48 56 0 46 1 0 1 1 0 8 0 ucredpl 96 2587 0 2580 1 0 1 1 0 8 0 zombiepl 144 2210 0 2210 1 0 1 1 0 8 1 processpl 864 2239 0 2210 4 0 4 4 0 8 0 procpl 632 4809 0 4773 4 0 4 4 0 8 0 sosppl 128 62 0 62 8 7 1 1 0 8 1 sockpl 384 4866 0 4845 48 44 4 21 0 8 1 mcl64k 65536 473 0 470 35 34 1 33 0 8 0 mcl16k 16384 26 0 26 7 7 0 1 0 8 0 mcl12k 12288 88 0 88 4 3 1 1 0 8 1 mcl9k 9216 45 0 45 9 9 0 1 0 8 0 mcl8k 8192 104 0 104 4 3 1 1 0 8 1 mcl4k 4096 230 0 230 6 5 1 1 0 8 1 mcl2k2 2112 24 0 24 8 7 1 1 0 8 1 mcl2k 2048 72377 0 72325 23 15 8 16 0 8 1 mtagpl 80 148 0 131 2 1 1 1 0 8 0 mbufpl 256 136013 0 135583 92 60 32 34 0 8 3 bufpl 256 13959 0 8831 321 0 321 321 0 8 0 anonpl 16 297819 0 277902 140 57 83 98 0 62 0 amapchunkpl 152 12683 0 12520 37 30 7 16 0 158 0 amappl16 192 13405 0 12278 130 67 63 69 0 8 5 amappl15 184 385 0 384 1 0 1 1 0 8 0 amappl14 176 330 0 324 1 0 1 1 0 8 0 amappl13 168 255 0 254 1 0 1 1 0 8 0 amappl12 160 470 0 469 4 3 1 1 0 8 0 amappl11 152 396 0 385 1 0 1 1 0 8 0 amappl10 144 165 0 165 3 3 0 1 0 8 0 amappl9 136 903 0 895 1 0 1 1 0 8 0 amappl8 128 454 0 416 2 0 2 2 0 8 0 amappl7 120 243 0 236 1 0 1 1 0 8 0 amappl6 112 381 0 370 1 0 1 1 0 8 0 amappl5 104 696 0 685 1 0 1 1 0 8 0 amappl4 96 1815 0 1789 1 0 1 1 0 8 0 amappl3 88 1117 0 1109 1 0 1 1 0 8 0 amappl2 80 16942 0 16872 3 1 2 3 0 8 0 amappl1 72 50215 0 49817 26 16 10 20 0 8 0 amappl 80 5278 0 5219 3 1 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 125 0 6 2 0 2 2 0 8 0 uaddrrnd 24 2269 0 2210 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2269 0 2210 1 0 1 1 0 8 0 vmmpekpl 168 18331 0 18299 2 0 2 2 0 8 0 vmmpepl 168 277623 0 275429 235 112 123 143 0 357 16 vmsppl 272 2222 0 2210 3 2 1 2 0 8 0 pdppl 4096 4544 0 4480 12 3 9 9 0 8 0 pvpl 32 713686 0 691581 274 82 192 222 0 265 7 pmappl 200 2268 0 2224 3 0 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 638 0 158 15 0 15 15 0 8 0