""""panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 317259 87219 0 0 0x4000080 0 syz-executor.1 *111289 68471 0 0x2 0 1 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(ffff800023b74e28) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8067474600) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8067474600) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8067474600) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800023b750b0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8065a18420,ffff800023b75210,ffff800023b75260,ffff800023b75140) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020ace020,ffffff9c,7f7ffffdc860,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800023b753e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b753e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffdc860,88,0,7f7ffffdc884) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc8d0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic fifo_badop called ddb{1}> 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(ffff800023b74e28) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8067474600) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8067474600) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8067474600) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800023b750b0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8065a18420,ffff800023b75210,ffff800023b75260,ffff800023b75140) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020ace020,ffffff9c,7f7ffffdc860,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800023b753e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b753e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffdc860,88,0,7f7ffffdc884) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc8d0, count: -11 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800023b74d50 rbx 0xffff800023b74e00 rdx 0xffff800020ace020 rcx 0 rax 0 r8 0xffffffff819a376f kprintf+0x16f r9 0x1 r10 0x25 r11 0xfeaa886511e16074 r12 0x3000000008 r13 0xffff800023b74d60 r14 0x100 r15 0x1 rip 0xffffffff812a9ce8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b74d40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=111289 stat=onproc flags process=2 proc=0 pri=17, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1650,0xffff800020ab02a0 process=0xffff800020a8b510 user=0xffff800023b70000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=3, pctcpu=0.30 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 14870 367410 0 0 3 0x14200 acct acct 87219 389248 4706 0 2 0 syz-executor.1 87219 317259 4706 0 7 0x4000080 syz-executor.1 87219 377189 4706 0 3 0x4000080 fsleep syz-executor.1 87219 388692 4706 0 3 0x4000080 fsleep syz-executor.1 4706 416174 96221 0 3 0x82 nanosleep syz-executor.1 *68471 111289 96221 0 7 0x2 syz-executor.0 17056 119551 1 0 3 0x100083 ttyin getty 82289 409149 0 0 3 0x14200 bored sosplice 96221 6619 8151 0 3 0x82 kqread syz-fuzzer 96221 169491 8151 0 3 0x4000082 nanosleep syz-fuzzer 96221 451240 8151 0 3 0x4000082 thrsleep syz-fuzzer 96221 509883 8151 0 3 0x4000082 thrsleep syz-fuzzer 96221 227498 8151 0 3 0x4000082 thrsleep syz-fuzzer 96221 414313 8151 0 3 0x4000082 thrsleep syz-fuzzer 96221 95190 8151 0 3 0x4000082 thrsleep syz-fuzzer 96221 196907 8151 0 3 0x4000082 thrsleep syz-fuzzer 96221 441665 8151 0 3 0x4000082 nanosleep syz-fuzzer 96221 500946 8151 0 3 0x4000082 thrsleep syz-fuzzer 8151 267057 42020 0 3 0x10008a pause ksh 42020 445695 87261 0 3 0x92 select sshd 87261 112462 1 0 3 0x80 select sshd 24027 134543 36499 74 3 0x100092 bpf pflogd 36499 93808 1 0 3 0x80 netio pflogd 48592 212785 88681 73 3 0x100090 kqread syslogd 88681 2905 1 0 3 0x100082 netio syslogd 23973 473491 1 77 3 0x100090 poll dhclient 18831 299570 1 0 3 0x80 poll dhclient 19025 169790 0 0 3 0x14200 pgzero zerothread 57889 27577 0 0 3 0x14200 aiodoned aiodoned 44149 197071 0 0 3 0x14200 syncer update 41101 202561 0 0 3 0x14200 cleaner cleaner 13109 283256 0 0 3 0x14200 reaper reaper 37731 320316 0 0 3 0x14200 pgdaemon pagedaemon 51419 501057 0 0 3 0x14200 bored crynlk 19619 210790 0 0 3 0x14200 bored crypto 88390 341733 0 0 3 0x40014200 acpi0 acpi0 30778 182935 0 0 3 0x40014200 idle1 16928 145947 0 0 3 0x14200 bored softnet 51944 17561 0 0 3 0x14200 bored systqmp 82575 88418 0 0 3 0x14200 bored systq 2786 278259 0 0 3 0x40014200 bored softclock 52845 41841 0 0 3 0x40014200 idle0 57881 487057 0 0 3 0x14200 bored smr 1 353506 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 68471 (syz-executor.0) thread 0xffff800020ace020 (111289) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826360e0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 #2 mi_switch+0x392 sys/kern/sched_bsd.c:441 #3 sleep_finish+0x113 sys/kern/kern_synch.c:373 #4 tsleep+0x198 sleep_finish_timeout sys/kern/kern_synch.c:397 [inline] #4 tsleep+0x198 sleep_finish_all sys/kern/kern_synch.c:183 [inline] #4 tsleep+0x198 sys/kern/kern_synch.c:152 #5 biowait+0xa1 sys/kern/vfs_bio.c:1231 #6 bwrite+0x1e4 sys/kern/vfs_bio.c:747 #7 ffs_update+0x2c2 sys/ufs/ffs/ffs_inode.c:113 #8 ufs_mkdir+0x665 sys/ufs/ufs/ufs_vnops.c:1234 #9 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #10 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #11 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #11 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #12 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806f7444d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #9 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #10 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #11 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #12 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #12 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #13 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806ac766f8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9612 6474K 8391K 78643K 23109 0 0 pcb 14 13K 15K 78643K 4368 0 0 rtable 85 5K 7K 78643K 3475 0 0 ifaddr 83 18K 21K 78643K 1004 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1747 0 0 iov 0 0K 32K 78643K 1121 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1225 77K 78K 78643K 7891 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 69 0 0 VM map 37 18K 18K 78643K 65 0 0 sem 12 1K 1K 78643K 1117 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 5276 0 0 sigio 0 0K 0K 78643K 68 0 0 proc 61 63K 83K 78643K 2436 0 0 subproc 32 2K 2K 78643K 666 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 652 0 0 in_multi 14 0K 2K 78643K 692 0 0 ether_multi 1 0K 0K 78643K 58 0 0 mrt 1 0K 0K 78643K 48 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 150 662K 662K 78643K 150 0 0 exec 0 0K 1K 78643K 1263 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 198 350K 359K 78643K 19977 0 0 UVM aobj 130 8K 8K 78643K 136 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 1 0K 1K 78643K 4211 0 0 NDP 21 0K 1K 78643K 319 0 0 temp 235 3565K 4205K 78643K 155116 0 0 kqueue 0 0K 0K 78643K 41 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 125 0 122 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 406 0 404 1 0 1 1 0 8 0 rtentry 112 585 0 559 2 0 2 2 0 8 0 unpcb 120 2944 0 2932 4 3 1 2 0 8 0 syncache 264 35 0 35 13 13 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 126 0 126 7 7 0 1 0 8 0 tcpcb 544 2142 0 2137 13 12 1 11 0 8 0 inpcb 280 10038 0 10029 30 28 2 13 0 8 1 rttmr 72 16 0 16 9 9 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 88 0 88 5 4 1 1 0 8 1 pkpcb 40 15 0 15 6 6 0 1 0 8 0 swfcl 56 5 0 0 1 0 1 1 0 8 0 ppxss 1128 132 0 132 12 12 0 1 0 8 0 pffrag 232 113 0 113 20 19 1 1 0 482 1 pffrnode 88 113 0 113 20 19 1 1 0 8 1 pffrent 40 3746 0 3746 20 19 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 446 0 382 1 0 1 1 0 8 0 pfstkey 112 446 0 382 4 0 4 4 0 8 0 pfstate 328 446 0 382 11 1 10 10 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 5 0 4 5 4 1 3 0 8 0 art_heap4 256 2446 0 2312 47 35 12 18 0 8 1 art_table 32 2451 0 2316 3 1 2 3 0 8 0 art_node 16 583 0 559 1 0 1 1 0 8 0 sysvmsgpl 40 39 0 21 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1115 0 1105 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10803 0 9389 46 0 46 46 0 8 0 ffsino 272 10803 0 9389 95 0 95 95 0 8 0 nchpl 144 20260 0 19749 61 40 21 61 0 8 0 uvmvnodes 72 6429 0 0 117 0 117 117 0 8 0 vnodes 208 6429 0 0 339 0 339 339 0 8 0 namei 1024 82178 0 82177 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 35 0 0 5 0 5 5 0 8 0 vmpool 552 63 0 28 5 2 3 3 0 8 0 scsiplug 64 5 0 5 5 5 0 1 0 8 0 scxspl 192 59734 0 59734 44 41 3 7 0 8 3 plimitpl 152 477 0 469 1 0 1 1 0 8 0 sigapl 432 5367 0 5352 3 1 2 3 0 8 0 futexpl 56 125722 0 125720 1 0 1 1 0 8 0 knotepl 112 1488 0 1469 3 2 1 2 0 8 0 kqueuepl 104 1365 0 1363 4 3 1 4 0 8 0 pipepl 112 3238 0 3219 7 6 1 2 0 8 0 fdescpl 488 5368 0 5352 3 0 3 3 0 8 0 filepl 152 60606 0 60504 48 42 6 14 0 8 2 lockfpl 104 2240 0 2239 1 0 1 1 0 8 0 lockfspl 48 759 0 758 1 0 1 1 0 8 0 sessionpl 112 57 0 46 1 0 1 1 0 8 0 pgrppl 48 117 0 106 1 0 1 1 0 8 0 ucredpl 96 17615 0 17605 1 0 1 1 0 8 0 zombiepl 144 5357 0 5357 1 0 1 1 0 8 1 processpl 896 5390 0 5357 4 0 4 4 0 8 0 procpl 632 17203 0 17158 5 0 5 5 0 8 0 srpgc 64 62 0 62 20 19 1 1 0 8 1 sosppl 128 118 0 118 17 17 0 1 0 8 0 sockpl 384 13543 0 13520 55 51 4 22 0 8 1 mcl64k 65536 549 0 0 67 29 38 65 0 8 1 mcl16k 16384 16 0 0 2 0 2 2 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 19 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 21 0 0 3 1 2 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 194 0 0 22 3 19 22 0 8 0 mtagpl 80 61 0 0 1 0 1 1 0 8 0 mbufpl 256 735 0 0 37 0 37 37 0 8 0 bufpl 256 25458 0 18410 441 0 441 441 0 8 0 anonpl 16 679019 0 661016 214 119 95 96 0 124 13 amapchunkpl 152 42206 0 42029 96 81 15 15 0 158 7 amappl16 192 30134 0 29060 232 170 62 75 0 8 8 amappl15 184 497 0 497 3 3 0 1 0 8 0 amappl14 176 1158 0 1156 1 0 1 1 0 8 0 amappl13 168 1231 0 1231 4 3 1 1 0 8 1 amappl12 160 501 0 497 1 0 1 1 0 8 0 amappl11 152 535 0 518 1 0 1 1 0 8 0 amappl10 144 443 0 435 1 0 1 1 0 8 0 amappl9 136 1875 0 1868 1 0 1 1 0 8 0 amappl8 128 1461 0 1405 2 0 2 2 0 8 0 amappl7 120 622 0 613 1 0 1 1 0 8 0 amappl6 112 448 0 434 1 0 1 1 0 8 0 amappl5 104 878 0 863 1 0 1 1 0 8 0 amappl4 96 6022 0 5988 1 0 1 1 0 8 0 amappl3 88 1452 0 1444 1 0 1 1 0 8 0 amappl2 80 40527 0 40449 3 1 2 3 0 8 0 amappl1 72 132312 0 131866 25 15 10 20 0 8 0 amappl 80 18184 0 18110 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 5431 0 5352 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5431 0 5352 1 0 1 1 0 8 0 vmmpekpl 168 47368 0 47325 4 1 3 3 0 8 0 vmmpepl 168 699626 0 697264 331 187 144 154 0 357 29 vmsppl 368 5367 0 5352 2 0 2 2 0 8 0 pdppl 4096 10869 0 10795 11 1 10 10 0 8 0 pvpl 32 1797368 0 1777140 411 199 212 218 0 265 30 pmappl 232 5430 0 5380 4 0 4 4 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 758 0 90 21 1 20 21 0 8 0