panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 15233 72884 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(ffff800015964038) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd802c7f3400) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd802c7f3400) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd802c7f3400) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff8000159642c0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8039bc39d8,ffff800015964420,ffff800015964470,ffff800015964350) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800014914290,ffffff9c,7f7ffffe1400,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff8000159645f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffe1400,88,0,7f7ffffe1424) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1470, 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(ffff800015964038) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd802c7f3400) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd802c7f3400) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd802c7f3400) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff8000159642c0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8039bc39d8,ffff800015964420,ffff800015964470,ffff800015964350) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800014914290,ffffff9c,7f7ffffe1400,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff8000159645f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffe1400,88,0,7f7ffffe1424) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1470, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800015963f60 rbx 0xffff800015964010 rdx 0x2 rcx 0 rax 0 r8 0xffff800015963f20 r9 0x1 r10 0 r11 0xacb370a3d6c4ea5e r12 0x3000000008 r13 0xffff800015963f70 r14 0x100 r15 0x1 rip 0xffffffff817df538 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015963f50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=15233 stat=onproc flags process=2 proc=0 pri=17, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000149149f8,0xffff800014914518 process=0xffff8000148a2018 user=0xffff80001595f000, vmspace=0xfffffd803f013440 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 29600 280992 12970 0 2 0x2 syz-executor.0 *72884 15233 12970 0 7 0x2 syz-executor.1 6246 258978 1 0 3 0x100083 ttyin getty 40167 521003 0 0 3 0x14200 acct acct 18694 317859 0 0 3 0x14200 bored sosplice 12970 30469 37459 0 3 0x82 thrsleep syz-fuzzer 12970 378727 37459 0 3 0x4000082 nanosleep syz-fuzzer 12970 24083 37459 0 3 0x4000082 kqread syz-fuzzer 12970 173266 37459 0 3 0x4000082 thrsleep syz-fuzzer 12970 386729 37459 0 3 0x4000082 thrsleep syz-fuzzer 12970 287524 37459 0 3 0x4000082 thrsleep syz-fuzzer 12970 73965 37459 0 3 0x4000082 thrsleep syz-fuzzer 37459 90284 83685 0 3 0x10008a pause ksh 83685 489448 47124 0 3 0x92 select sshd 47124 110575 1 0 3 0x80 select sshd 17133 378832 31738 73 3 0x100090 kqread syslogd 31738 366801 1 0 3 0x100082 netio syslogd 84258 488650 1 77 3 0x100090 poll dhclient 4496 339593 1 0 3 0x80 poll dhclient 10054 264418 0 0 3 0x14200 pgzero zerothread 61379 346761 0 0 3 0x14200 aiodoned aiodoned 87165 355168 0 0 3 0x14200 syncer update 26572 236025 0 0 3 0x14200 cleaner cleaner 79088 131874 0 0 3 0x14200 reaper reaper 75817 40517 0 0 3 0x14200 pgdaemon pagedaemon 41028 440430 0 0 3 0x14200 bored crynlk 78426 411431 0 0 3 0x14200 bored crypto 73457 297946 0 0 3 0x40014200 acpi0 acpi0 42605 93860 0 0 3 0x14200 bored softnet 5370 457325 0 0 3 0x14200 bored systqmp 22026 273637 0 0 3 0x14200 bored systq 31368 410232 0 0 3 0x40014200 bored softclock 43701 487183 0 0 3 0x40014200 idle0 96318 351596 0 0 3 0x14200 bored smr 1 46737 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 9566 7019K 8055K 78643K 15668 0 0 pcb 13 11K 12K 78643K 576 0 0 rtable 82 11K 13K 78643K 1663 0 0 ifaddr 72 15K 17K 78643K 474 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 151 0 0 iov 0 0K 24K 78643K 572 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1237 78K 78K 78643K 3202 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 37 0 0 VM map 29 7K 7K 78643K 46 0 0 sem 12 0K 1K 78643K 823 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 4 9K 25K 78643K 2085 0 0 sigio 0 0K 0K 78643K 33 0 0 proc 48 38K 63K 78643K 891 0 0 subproc 32 2K 2K 78643K 204 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 313 0 0 in_multi 12 0K 2K 78643K 256 0 0 ether_multi 1 0K 0K 78643K 22 0 0 mrt 0 0K 0K 78643K 14 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 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 147 234K 234K 78643K 6079 0 0 UVM aobj 130 6K 6K 78643K 140 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 505 0 0 NDP 17 0K 0K 78643K 146 0 0 temp 206 3540K 4180K 78643K 91830 0 0 kqueue 0 0K 0K 78643K 27 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 66 0 63 1 0 1 1 0 8 0 rtpcb 80 275 0 273 1 0 1 1 0 8 0 rtentry 112 288 0 263 2 0 2 2 0 8 0 unpcb 120 1297 0 1286 3 2 1 2 0 8 0 syncache 264 17 0 17 7 7 0 1 0 8 0 tcpqe 32 164 0 164 5 5 0 1 0 8 0 tcpcb 544 1417 0 1413 8 7 1 3 0 8 0 ipq 40 13 0 13 5 5 0 1 0 8 0 ipqe 40 283 0 283 5 5 0 1 0 8 0 inpcb 280 3478 0 3471 24 22 2 13 0 8 1 rttmr 72 5 0 5 4 4 0 1 0 8 0 nd6 48 31 0 31 2 1 1 1 0 8 1 pkpcb 40 13 0 13 7 7 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 55 0 55 6 5 1 1 0 8 1 art_heap8 4096 5 0 4 5 4 1 3 0 8 0 art_heap4 256 1102 0 974 24 13 11 16 0 8 1 art_table 32 1107 0 978 2 0 2 2 0 8 0 art_node 16 287 0 264 1 0 1 1 0 8 0 sysvmsgpl 40 34 0 16 1 0 1 1 0 8 0 semapl 112 819 0 809 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4750 0 3345 46 0 46 46 0 8 0 ffsino 240 4750 0 3345 83 0 83 83 0 8 0 nchpl 144 9142 0 8660 62 42 20 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 28731 0 28730 3 2 1 1 0 8 0 vcpupl 1984 27 0 0 4 0 4 4 0 8 0 vmpool 520 44 0 17 2 0 2 2 0 8 0 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 25886 0 25886 24 22 2 6 0 8 2 plimitpl 152 156 0 149 1 0 1 1 0 8 0 sigapl 432 2227 0 2215 2 0 2 2 0 8 0 futexpl 56 64129 0 64129 4 3 1 1 0 8 1 knotepl 112 500 0 481 1 0 1 1 0 8 0 kqueuepl 104 572 0 570 1 0 1 1 0 8 0 pipepl 112 1546 0 1527 5 4 1 2 0 8 0 fdescpl 424 2228 0 2215 2 0 2 2 0 8 0 filepl 120 21020 0 20924 19 14 5 11 0 8 2 lockfpl 104 782 0 781 1 0 1 1 0 8 0 lockfspl 48 258 0 257 1 0 1 1 0 8 0 sessionpl 112 28 0 18 1 0 1 1 0 8 0 pgrppl 48 48 0 38 1 0 1 1 0 8 0 ucredpl 96 2861 0 2853 1 0 1 1 0 8 0 zombiepl 144 2215 0 2215 1 0 1 1 0 8 1 processpl 864 2244 0 2215 4 0 4 4 0 8 0 procpl 632 4778 0 4743 4 0 4 4 0 8 0 sosppl 128 39 0 39 5 4 1 1 0 8 1 sockpl 384 5126 0 5106 44 40 4 21 0 8 1 mcl64k 65536 444 0 444 36 35 1 33 0 8 1 mcl16k 16384 38 0 38 9 8 1 1 0 8 1 mcl12k 12288 68 0 68 6 5 1 1 0 8 1 mcl9k 9216 33 0 33 9 9 0 1 0 8 0 mcl8k 8192 78 0 78 6 5 1 1 0 8 1 mcl4k 4096 270 0 270 5 4 1 1 0 8 1 mcl2k2 2112 21 0 21 9 9 0 1 0 8 0 mcl2k 2048 71283 0 71239 18 11 7 15 0 8 0 mtagpl 80 104 0 104 3 2 1 1 0 8 1 mbufpl 256 133425 0 133354 86 75 11 30 0 8 1 bufpl 256 13065 0 7911 323 0 323 323 0 8 0 anonpl 16 322248 0 302852 151 68 83 97 0 62 0 amapchunkpl 152 12086 0 11966 30 24 6 10 0 158 0 amappl16 192 15365 0 14234 147 86 61 69 0 8 3 amappl15 184 116 0 116 1 1 0 1 0 8 0 amappl14 176 541 0 538 1 0 1 1 0 8 0 amappl13 168 135 0 134 4 3 1 1 0 8 0 amappl12 160 529 0 525 1 0 1 1 0 8 0 amappl11 152 632 0 620 1 0 1 1 0 8 0 amappl10 144 15 0 15 2 2 0 1 0 8 0 amappl9 136 824 0 817 1 0 1 1 0 8 0 amappl8 128 376 0 337 2 0 2 2 0 8 0 amappl7 120 85 0 78 1 0 1 1 0 8 0 amappl6 112 648 0 632 1 0 1 1 0 8 0 amappl5 104 766 0 755 1 0 1 1 0 8 0 amappl4 96 2263 0 2234 1 0 1 1 0 8 0 amappl3 88 728 0 717 1 0 1 1 0 8 0 amappl2 80 16553 0 16493 3 1 2 3 0 8 0 amappl1 72 49962 0 49568 26 17 9 20 0 8 0 amappl 80 5215 0 5167 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 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 2272 0 2215 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2272 0 2215 1 0 1 1 0 8 0 vmmpekpl 168 17741 0 17708 2 0 2 2 0 8 0 vmmpepl 168 277741 0 275551 251 105 146 149 0 357 39 vmsppl 272 2227 0 2215 4 3 1 2 0 8 0 pdppl 4096 4550 0 4491 12 3 9 9 0 8 1 pvpl 32 752091 0 730275 303 98 205 227 0 265 22 pmappl 200 2271 0 2232 3 0 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 627 0 172 15 0 15 15 0 8 0