panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *324309 47471 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(ffff800017965ad8) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd803b21ef00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd803b21ef00) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd803b21ef00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800017965d60) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd802e58c5d0,ffff800017965ec0,ffff800017965f10,ffff800017965df0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff8000ffff2508,ffffff9c,7f7ffffc5850,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800017966090) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffc5850,88,0,7f7ffffc5874) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc58c0, 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(ffff800017965ad8) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd803b21ef00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd803b21ef00) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd803b21ef00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800017965d60) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd802e58c5d0,ffff800017965ec0,ffff800017965f10,ffff800017965df0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff8000ffff2508,ffffff9c,7f7ffffc5850,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800017966090) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffc5850,88,0,7f7ffffc5874) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc58c0, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800017965a00 rbx 0xffff800017965ab0 rdx 0x2 rcx 0 rax 0 r8 0xffff8000179659c0 r9 0x1 r10 0 r11 0xf7aedfc16940d1ec r12 0x3000000008 r13 0xffff800017965a10 r14 0x100 r15 0x1 rip 0xffffffff82060498 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000179659f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=324309 stat=onproc flags process=2 proc=0 pri=17, usrpri=63, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3160,0xffffffff82573380 process=0xffff8000ffff6370 user=0xffff800017961000, vmspace=0xfffffd803f013880 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *47471 324309 76061 0 7 0x2 syz-executor.1 20273 327026 76061 0 2 0x2 syz-executor.0 26360 274874 0 0 3 0x14200 acct acct 31918 250630 0 0 3 0x14200 bored sosplice 76061 405266 15589 0 3 0x82 thrsleep syz-fuzzer 76061 335111 15589 0 3 0x4000082 nanosleep syz-fuzzer 76061 229601 15589 0 3 0x4000082 thrsleep syz-fuzzer 76061 396670 15589 0 3 0x4000082 kqread syz-fuzzer 76061 99585 15589 0 3 0x4000082 thrsleep syz-fuzzer 76061 277469 15589 0 3 0x4000082 thrsleep syz-fuzzer 76061 520462 15589 0 3 0x4000082 thrsleep syz-fuzzer 15589 478334 8452 0 3 0x10008a pause ksh 8452 366187 80326 0 3 0x92 select sshd 98194 231563 1 0 3 0x100083 ttyin getty 80326 159514 1 0 3 0x80 select sshd 52946 494488 77934 73 3 0x100090 kqread syslogd 77934 69063 1 0 3 0x100082 netio syslogd 68452 422023 0 0 3 0x14200 pgzero zerothread 18128 13421 0 0 3 0x14200 aiodoned aiodoned 88204 150934 0 0 3 0x14200 syncer update 29242 463596 0 0 3 0x14200 cleaner cleaner 85705 246220 0 0 3 0x14200 reaper reaper 963 320055 0 0 3 0x14200 pgdaemon pagedaemon 99203 253266 0 0 3 0x14200 bored crynlk 94848 357974 0 0 3 0x14200 bored crypto 75246 385458 0 0 3 0x40014200 acpi0 acpi0 79202 322569 0 0 3 0x14200 bored softnet 73945 52372 0 0 3 0x14200 bored systqmp 92521 447763 0 0 3 0x14200 bored systq 17720 360479 0 0 3 0x40014200 bored softclock 2454 109099 0 0 3 0x40014200 idle0 760 97326 0 0 3 0x14200 bored smr 1 410669 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 9534 6933K 8407K 78643K 13194 0 0 pcb 13 8K 8K 78643K 438 0 0 rtable 111 4K 4K 78643K 1438 0 0 ifaddr 92 20K 20K 78643K 382 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 64 0 0 iov 0 0K 16K 78643K 191 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1227 77K 78K 78643K 2273 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 16 0 0 VM map 6 1K 1K 78643K 8 0 0 sem 12 0K 1K 78643K 130 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 4 9K 25K 78643K 976 0 0 sigio 0 0K 1K 78643K 264 0 0 proc 44 30K 63K 78643K 664 0 0 subproc 32 2K 2K 78643K 136 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 39 0 0 in_multi 33 2K 2K 78643K 286 0 0 ether_multi 1 0K 0K 78643K 3 0 0 mrt 0 0K 0K 78643K 3 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 361 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 102 54K 56K 78643K 3242 0 0 UVM aobj 66 3K 3K 78643K 66 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 169 0 0 NDP 20 1K 1K 78643K 66 0 0 temp 198 3540K 4167K 78643K 18156 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 26 0 20 1 0 1 1 0 8 0 rtpcb 80 89 0 89 3 2 1 1 0 8 1 rtentry 112 546 0 502 2 0 2 2 0 8 0 unpcb 120 972 0 966 3 2 1 2 0 8 0 syncache 264 13 0 13 5 4 1 1 0 8 1 tcpqe 32 93 0 93 4 3 1 1 0 8 1 tcpcb 544 732 0 728 4 2 2 2 0 8 1 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 1 0 8 0 inpcb 280 3216 0 3212 7 5 2 5 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 19 0 15 1 0 1 1 0 8 0 ppxss 1128 10 0 10 2 1 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1825 0 1610 16 2 14 15 0 8 0 art_table 32 1826 0 1610 2 0 2 2 0 8 0 art_node 16 545 0 505 1 0 1 1 0 8 0 sysvmsgpl 40 67 0 45 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 128 0 118 1 0 1 1 0 8 0 shmpl 112 64 0 0 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2853 0 1461 46 0 46 46 0 8 0 ffsino 240 2853 0 1461 83 0 83 83 0 8 0 nchpl 144 4472 0 4026 60 40 20 60 0 8 0 uvmvnodes 72 3620 0 0 66 0 66 66 0 8 0 vnodes 208 3620 0 0 191 0 191 191 0 8 0 namei 1024 15712 0 15711 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 520 6 0 2 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 13938 0 13938 11 9 2 7 0 8 2 plimitpl 152 69 0 63 1 0 1 1 0 8 0 sigapl 432 1129 0 1119 2 0 2 2 0 8 0 futexpl 56 30401 0 30401 1 0 1 1 0 8 1 knotepl 112 238 0 219 1 0 1 1 0 8 0 kqueuepl 104 136 0 134 1 0 1 1 0 8 0 pipepl 112 1136 0 1117 4 2 2 2 0 8 1 fdescpl 424 1130 0 1119 2 0 2 2 0 8 0 filepl 120 12553 0 12468 13 7 6 9 0 8 3 lockfpl 104 257 0 257 2 1 1 1 0 8 1 lockfspl 48 86 0 86 2 1 1 1 0 8 1 sessionpl 112 23 0 15 1 0 1 1 0 8 0 pgrppl 48 41 0 33 1 0 1 1 0 8 0 ucredpl 96 3111 0 3105 1 0 1 1 0 8 0 zombiepl 144 1119 0 1119 1 0 1 1 0 8 1 processpl 864 1146 0 1119 4 0 4 4 0 8 0 procpl 632 2267 0 2234 4 0 4 4 0 8 0 sosppl 128 303 0 303 1 0 1 1 0 8 1 sockpl 384 4299 0 4289 21 13 8 13 0 8 6 mcl64k 65536 332 0 332 32 24 8 32 0 8 8 mcl16k 16384 11 0 11 4 3 1 1 0 8 1 mcl12k 12288 34 0 34 2 1 1 1 0 8 1 mcl9k 9216 11 0 11 5 4 1 1 0 8 1 mcl8k 8192 69 0 69 2 1 1 1 0 8 1 mcl4k 4096 92 0 92 3 2 1 1 0 8 1 mcl2k2 2112 7 0 7 3 2 1 1 0 8 1 mcl2k 2048 68019 0 67972 16 9 7 13 0 8 0 mtagpl 80 156 0 156 3 1 2 2 0 8 2 mbufpl 256 118354 0 118259 41 21 20 24 0 8 6 bufpl 256 10099 0 4242 368 1 367 367 0 8 0 anonpl 16 146356 0 132124 101 8 93 94 0 62 15 amapchunkpl 152 5701 0 5597 20 9 11 15 0 158 6 amappl16 192 6623 0 5551 99 37 62 67 0 8 7 amappl15 184 678 0 677 1 0 1 1 0 8 0 amappl14 176 216 0 212 1 0 1 1 0 8 0 amappl12 160 14 0 10 1 0 1 1 0 8 0 amappl11 152 172 0 168 1 0 1 1 0 8 0 amappl10 144 254 0 252 1 0 1 1 0 8 0 amappl9 136 652 0 646 1 0 1 1 0 8 0 amappl8 128 232 0 202 2 0 2 2 0 8 0 amappl7 120 309 0 303 1 0 1 1 0 8 0 amappl6 112 177 0 167 1 0 1 1 0 8 0 amappl5 104 199 0 189 1 0 1 1 0 8 0 amappl4 96 1349 0 1323 1 0 1 1 0 8 0 amappl3 88 301 0 295 1 0 1 1 0 8 0 amappl2 80 8174 0 8119 3 1 2 3 0 8 0 amappl1 72 30197 0 29833 26 17 9 20 0 8 0 amappl 80 2582 0 2549 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 65 0 0 2 0 2 2 0 8 0 uaddrrnd 24 1136 0 1119 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1136 0 1119 1 0 1 1 0 8 0 vmmpekpl 168 12282 0 12259 2 0 2 2 0 8 0 vmmpepl 168 146207 0 144237 169 32 137 137 0 357 40 vmsppl 272 1129 0 1119 2 1 1 2 0 8 0 pdppl 4096 2278 0 2246 6 1 5 6 0 8 0 pvpl 32 389863 0 373020 232 18 214 218 0 265 35 pmappl 200 1135 0 1121 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 584 0 69 15 0 15 15 0 8 0