panic: ffs_valloc: dup alloc Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *293134 92637 0 0x2 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834a53a1) at panic+0x1cf sys/kern/subr_prf.c:198 ffs_inode_alloc(fffff9806fc21200,41c0,fffff98007ffd410,ffff8000384b7538) at ffs_inode_alloc+0x94e ufs_mkdir(ffff8000384b75a0) at ufs_mkdir+0xfc sys/ufs/ufs/ufs_vnops.c:1113 VOP_MKDIR(fffff9806ff42540,ffff8000384b7700,ffff8000384b7730,ffff8000384b7630) at VOP_MKDIR+0x101 sys/kern/vfs_vops.c:394 domkdirat(ffff8000384bc7e8,ffffff9c,783f2125e460,1c0) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3060 syscall(ffff8000384b78a0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000384b78a0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x783f2125e420, count: 7 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 *cpu0: ffs_valloc: dup alloc ddb> show kasan No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834a53a1) at panic+0x1cf sys/kern/subr_prf.c:198 ffs_inode_alloc(fffff9806fc21200,41c0,fffff98007ffd410,ffff8000384b7538) at ffs_inode_alloc+0x94e ufs_mkdir(ffff8000384b75a0) at ufs_mkdir+0xfc sys/ufs/ufs/ufs_vnops.c:1113 VOP_MKDIR(fffff9806ff42540,ffff8000384b7700,ffff8000384b7730,ffff8000384b7630) at VOP_MKDIR+0x101 sys/kern/vfs_vops.c:394 domkdirat(ffff8000384bc7e8,ffffff9c,783f2125e460,1c0) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3060 syscall(ffff8000384b78a0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000384b78a0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x783f2125e420, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000384b72c0 rbx 0x1fb00 acpi_pdirpa+0xb971 rdx 0 rcx 0 rax 0xffff8000384bc7e8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5ca59f4736b0029b r11 0xbc92efcfa26d9a7b r12 0 r13 0xfffff980608d2e00 r14 0 r15 0x1 rip 0xffffffff8170bcc5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000384b72b0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=293134 pid=92637 tcnt=1 stat=onproc flags process=2 proc=0 runpri=17, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000384bd4e0,0xffff8000384bcd28 process=0xffff80002a77c920 user=0xffff8000384b2000, vmspace=0xfffff9806d0bb740 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 11019 238965 39839 0 2 0x40 0 syz-executor 91831 178739 68745 0 2 0x2 0 sh 35057 454856 91945 0 2 0x100002 0 sh 25086 339287 10202 0 2 0x2 0 syz-executor 47164 327440 35783 0 2 0 0 syz-executor 47164 151587 35783 0 2 0 0x4000000 syz-executor 64738 36430 10202 0 2 0x2 0 syz-executor *92637 293134 10202 0 7 0x2 0 syz-executor 39839 214796 10202 0 3 0x82 0 ppwait syz-executor 68745 486895 10202 0 3 0x2 0x80 wait syz-executor 2447 401601 1228 0 2 0x2 0 ifconfig 1228 275165 575 0 3 0x100002 0x88 sigsusp sh 575 379442 10202 0 3 0x2 0x80 wait syz-executor 39074 13439 1 0 3 0x2 0x80 nanoslp getty 91945 174986 10202 0 3 0x2 0x80 wait syz-executor 35783 51681 10202 0 3 0x2 0x80 nanoslp syz-executor 10202 233402 1 0 3 0x2 0x80 kqread syz-executor 38474 204616 1 0 3 0x2 0x88 kqread sshd 62615 7995 56216 73 3 0x1100010 0x80 kqread syslogd 56216 48154 1 0 3 0x100002 0x80 sbwait syslogd-parent 61180 268221 1 0 3 0x100000 0x80 kqread resolvd 1221 253251 72043 77 3 0x100012 0x80 kqread dhcpleased 87557 134634 72043 77 3 0x100012 0x80 kqread dhcpleased 72043 246970 1 0 3 0 0x80 kqread dhcpleased 69649 356828 0 0 3 0x14000 0x200 bored smr 15880 28356 0 0 2 0x14000 0x200 zerothread 20850 33982 0 0 3 0x14000 0x200 aiodoned aiodoned 10656 101583 0 0 3 0x14000 0x200 syncer update 52280 473482 0 0 3 0x14000 0x200 cleaner cleaner 78678 331757 0 0 3 0x14000 0x200 reaper reaper 86059 374604 0 0 3 0x14000 0x200 pgdaemon pagedaemon 91370 6607 0 0 3 0x14000 0x200 bored viomb 55269 241144 0 0 3 0x14000 0x40000200 acpi0 acpi0 23627 370956 0 0 3 0x14000 0x200 bored softnet0 87122 331276 0 0 3 0x14000 0x200 smrbar systqmp 77313 204737 0 0 3 0x14000 0x200 bored systq 45211 295952 0 0 3 0x14000 0x40000200 tmoslp softclock 46680 132363 0 0 3 0x14000 0x40000200 idle0 1 439561 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11048 12098K 12256K 166960K 12598 0 pcb 17 12K 12K 166960K 86 0 rtable 80 3K 7K 166960K 2068 0 pf 21 11K 20K 166960K 222 0 ifaddr 17 3K 8K 166960K 289 0 ifgroup 30 1K 2K 166960K 323 0 sysctl 3 1K 9K 166960K 11 0 counters 28 17K 18K 166960K 101 0 ioctlops 0 0K 4K 166960K 167 0 iov 0 0K 12K 166960K 9 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1292 81K 82K 166960K 2198 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 27 1K 1K 166960K 92 0 dirhash 15 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 16 48K 85K 166960K 1322 0 sigio 0 0K 0K 166960K 1 0 proc 67 67K 100K 166960K 2217 0 subproc 45 2K 4K 166960K 621 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 21 0 in_multi 22 1K 6K 166960K 729 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 27 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 1157 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 141 102K 155K 166960K 10713 0 UVM aobj 9 2K 4K 166960K 11 0 pinsyscall 32 64K 88K 166960K 3971 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 7 0 NDP 6 0K 2K 166960K 209 0 temp 30 9123K 9190K 166960K 17884 0 kqueue 11 16K 26K 166960K 70 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 173 0 170 1 0 1 1 0 8 0 rtentry 136 738 0 704 4 0 4 4 0 8 0 unpcb 144 454 0 442 6 0 6 6 0 8 5 syncache 336 8 0 8 1 0 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 191 0 187 7 0 7 7 0 8 6 arp 96 132 0 128 1 0 1 1 0 8 0 ipq 40 3 0 2 1 0 1 1 0 8 0 ipqe 40 7 0 6 1 0 1 1 0 8 0 inpcb 328 682 0 674 7 0 7 7 0 8 5 ip6q 80 2 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 112 195 0 192 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 kcovpl 48 69 0 64 1 0 1 1 0 8 0 ppxss 1072 2 0 2 1 0 1 1 0 8 1 pfosfp 40 2 0 1 1 0 1 1 0 8 0 pfosfpen 112 2 0 0 1 0 1 1 0 8 0 pfanchor 1288 10 0 1 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfrule 1360 7 0 3 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2984 0 2790 33 5 28 32 0 8 10 art_table 40 2985 0 2790 6 0 6 6 0 8 0 art_node 32 738 0 698 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0 semapl 72 90 0 65 1 0 1 1 0 8 0 shmpl 120 7 0 1 1 0 1 1 0 8 0 dirhash 1024 21 0 2 3 0 3 3 0 8 0 dino2pl 256 2284 0 685 100 0 100 100 0 8 0 ffsino 256 2284 0 685 100 0 100 100 0 8 0 nchpl 144 2930 0 1005 72 0 72 72 0 8 0 vnodes 216 3028 0 0 169 0 169 169 0 8 0 namei 1024 17644 0 17643 2 0 2 2 0 8 1 vcpupl 3968 16 0 16 2 0 2 2 0 8 2 vmpool 808 1 0 1 1 0 1 1 0 8 1 kstatmem 264 159 0 146 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 0 1 1 0 8 1 scxspl 216 9275 0 9275 8 0 8 8 1 8 8 plimitpl 152 189 0 175 1 0 1 1 0 8 0 sigapl 424 1494 0 1456 6 0 6 6 0 8 1 knotepl 120 12472 0 12430 9 0 9 9 0 8 6 kqueuepl 184 314 0 307 4 0 4 4 0 8 3 pipepl 304 345 0 318 3 0 3 3 0 8 0 fdescpl 448 1481 0 1456 4 0 4 4 0 8 1 filepl 120 6540 0 6377 13 0 13 13 0 8 5 lockfpl 104 151 0 149 1 0 1 1 0 8 0 lockfspl 48 55 0 53 1 0 1 1 0 8 0 sessionpl 144 104 0 98 1 0 1 1 0 8 0 pgrppl 48 178 0 164 1 0 1 1 0 8 0 ucredpl 104 682 0 672 1 0 1 1 0 8 0 zombiepl 144 1456 0 1456 1 0 1 1 0 8 1 processpl 1160 1494 0 1456 4 0 4 4 0 8 1 procpl 664 2162 0 2123 6 0 6 6 0 8 1 sosppl 176 4 0 4 1 0 1 1 0 8 1 sockpl 552 1324 0 1301 18 7 11 17 0 8 8 mcl64k 65536 110 0 108 1 0 1 1 0 8 0 mcl9k128 9344 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 16 0 16 1 0 1 1 0 8 1 mcl4k 4096 2960 0 2910 14 0 14 14 0 8 6 mcl2k 2048 1416 0 1415 4 0 4 4 0 8 3 mextrefs 64 344 0 344 1 0 1 1 0 8 1 mtagpl 96 5 0 5 1 0 1 1 0 8 1 mbufpl 256 16532 0 16460 18 0 18 18 0 8 4 bufpl 272 3065 0 88 199 0 199 199 0 8 0 anonpl 24 186091 0 183812 44 0 44 44 0 187 23 amapchunkpl 152 29633 0 29387 23 0 23 23 0 158 9 amappl16 200 2154 0 2145 14 4 10 14 0 8 8 amappl15 192 4 0 4 1 0 1 1 0 8 1 amappl14 184 1089 0 1087 1 0 1 1 0 8 0 amappl13 176 284 0 276 1 0 1 1 0 8 0 amappl12 168 1955 0 1937 2 0 2 2 0 8 0 amappl11 160 8 0 8 1 0 1 1 0 8 1 amappl10 152 75 0 66 1 0 1 1 0 8 0 amappl9 144 280 0 280 1 0 1 1 0 8 1 amappl8 136 316 0 314 1 0 1 1 0 8 0 amappl7 128 274 0 265 1 0 1 1 0 8 0 amappl6 120 465 0 460 1 0 1 1 0 8 0 amappl5 112 362 0 355 1 0 1 1 0 8 0 amappl4 104 604 0 589 1 0 1 1 0 8 0 amappl3 96 6131 0 6068 4 0 4 4 0 8 1 amappl2 88 735 0 691 2 0 2 2 0 8 0 amappl1 80 22757 0 22390 13 0 13 13 0 8 4 amappl 88 8944 0 8856 5 0 5 5 0 92 1 uvmvnodes 80 109 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 255 0 255 1 0 1 1 0 8 1 dma64 64 7 0 7 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 10 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1481 0 1456 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1481 0 1456 1 0 1 1 0 8 0 vmmpekpl 168 13816 0 13769 3 0 3 3 0 8 0 vmmpepl 168 108150 0 106977 90 0 90 90 0 357 29 vmsppl 368 1480 0 1456 4 0 4 4 0 8 1 rwobjpl 40 34550 0 33801 13 0 13 13 0 8 3 pdppl 4096 2970 0 2914 154 98 56 74 0 8 0 pvpl 32 555433 0 549935 111 0 111 111 0 265 48 pmappl 216 1481 0 1457 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 651 0 103 17 0 17 17 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834a53a1) at panic+0x1cf sys/kern/subr_prf.c:198 ffs_inode_alloc(fffff9806fc21200,41c0,fffff98007ffd410,ffff8000384b7538) at ffs_inode_alloc+0x94e ufs_mkdir(ffff8000384b75a0) at ufs_mkdir+0xfc sys/ufs/ufs/ufs_vnops.c:1113 VOP_MKDIR(fffff9806ff42540,ffff8000384b7700,ffff8000384b7730,ffff8000384b7630) at VOP_MKDIR+0x101 sys/kern/vfs_vops.c:394 domkdirat(ffff8000384bc7e8,ffffff9c,783f2125e460,1c0) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3060 syscall(ffff8000384b78a0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000384b78a0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x783f2125e420, count: -8 ddb>