panic: ffs_valloc: dup alloc
Stopped at db_enter+0x25: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*406760 14121 0 0 0x4000000 0 syz-executor
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff83465a26) at panic+0x1cf sys/kern/subr_prf.c:198
ffs_inode_alloc(fffff100677f1b00,8184,fffff10007ffd8f0,ffff80003c8f9160) at ffs_inode_alloc+0x94e
ufs_makeinode(8184,fffff10067831980,ffff80003c8f94a0,ffff80003c8f94d0) at ufs_makeinode+0xcd sys/ufs/ufs/ufs_vnops.c:1759
ufs_create(ffff80003c8f9210) at ufs_create+0x4e sys/ufs/ufs/ufs_vnops.c:147
VOP_CREATE(fffff10067831980,ffff80003c8f94a0,ffff80003c8f94d0,ffff80003c8f9290) at VOP_CREATE+0xfe sys/kern/vfs_vops.c:103
vn_open(ffff80003c8f9470,201,184) at vn_open+0x50d sys/kern/vfs_vnops.c:118
doopenat(ffff80002f0b0d10,ffffff9c,2000000000c0,200,186,0,89f71b6d1eef7a0b) at doopenat+0x352 sys/kern/vfs_syscalls.c:1163
sys_open(ffff80002f0b0d10,ffff80003c8f9710,ffff80003c8f9660) at sys_open+0x59 sys/kern/vfs_syscalls.c:1065
syscall(ffff80003c8f9710) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c8f9710) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d72b821450, 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
*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(ffffffff83465a26) at panic+0x1cf sys/kern/subr_prf.c:198
ffs_inode_alloc(fffff100677f1b00,8184,fffff10007ffd8f0,ffff80003c8f9160) at ffs_inode_alloc+0x94e
ufs_makeinode(8184,fffff10067831980,ffff80003c8f94a0,ffff80003c8f94d0) at ufs_makeinode+0xcd sys/ufs/ufs/ufs_vnops.c:1759
ufs_create(ffff80003c8f9210) at ufs_create+0x4e sys/ufs/ufs/ufs_vnops.c:147
VOP_CREATE(fffff10067831980,ffff80003c8f94a0,ffff80003c8f94d0,ffff80003c8f9290) at VOP_CREATE+0xfe sys/kern/vfs_vops.c:103
vn_open(ffff80003c8f9470,201,184) at vn_open+0x50d sys/kern/vfs_vnops.c:118
doopenat(ffff80002f0b0d10,ffffff9c,2000000000c0,200,186,0,89f71b6d1eef7a0b) at doopenat+0x352 sys/kern/vfs_syscalls.c:1163
sys_open(ffff80002f0b0d10,ffff80003c8f9710,ffff80003c8f9660) at sys_open+0x59 sys/kern/vfs_syscalls.c:1065
syscall(ffff80003c8f9710) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c8f9710) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d72b821450, count: -11
ddb> show registers
rdi 0
rsi 0x1
rbp 0xffff80003c8f8f00
rbx 0x6657 __ALIGN_SIZE+0x5657
rdx 0xffff8000015e4200
rcx 0
rax 0xffff80002f0b0d10
r8 0x101010101010101
r9 0x8080808080808080
r10 0x19253263defb4e81
r11 0x830a5c19204f7656
r12 0
r13 0xfffff1006d16b600
r14 0
r15 0x1
rip 0xffffffff81d92ca5 db_enter+0x25
cs 0x8
rflags 0x246
rsp 0xffff80003c8f8ef0
ss 0x10
db_enter+0x25: addq $0x8,%rsp
ddb> show proc
PROC (syz-executor) tid=406760 pid=14121 tcnt=2 stat=onproc
flags process=0 proc=4000000<THREAD>
runpri=32, usrpri=50, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
forw=0xffffffffffffffff, list=0xffff80002f0b1240,0xffff80002f0b0a88
process=0xffff800045ffba98 user=0xffff80003c8f4000, vmspace=0xfffff1006d1988b0
estcpu=16, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0
ddb> ps
PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND
2303 264657 75421 0 2 0 0 syz-executor
2303 13005 75421 0 3 0 0x4000080 kqsel syz-executor
846 126355 37523 0 3 0 0x80 nanoslp syz-executor
846 250709 37523 0 3 0 0x4000080 sbwait syz-executor
846 449778 37523 0 3 0 0x4000080 sbwait syz-executor
846 333259 37523 0 3 0 0x4000080 fsleep syz-executor
14121 463331 56535 0 2 0 0 syz-executor
*14121 406760 56535 0 7 0 0x4000000 syz-executor
83652 386804 5141 0 3 0x1010 0x2000 suspend syz-executor
83652 112807 5141 0 2 0x1010 0x4080000 syz-executor
49106 489081 77253 0 2 0x10000002 0x80 syz-executor
46927 193309 77253 0 3 0x2 0x80 wait syz-executor
37523 483159 77253 0 3 0x2 0x80 nanoslp syz-executor
75421 151965 77253 0 3 0x2 0x80 nanoslp syz-executor
56535 260829 77253 0 3 0x2 0x80 nanoslp syz-executor
7955 346564 77253 0 2 0x10000002 0x80 syz-executor
5141 232833 77253 0 3 0x2 0x80 nanoslp syz-executor
77253 382454 33308 0 3 0x2 0x80 wait syz-executor
33308 482269 65612 0 3 0x100002 0x88 sigsusp ksh
65612 119600 54993 0 3 0x10 0x88 kqread sshd-session
54993 52658 45801 0 3 0x12 0x80 kqread sshd-session
15560 132292 1 0 3 0x100003 0x80 ttyin getty
45801 425969 1 0 3 0 0x88 kqread sshd
59542 139674 94750 73 3 0x1100010 0x80 kqread syslogd
94750 428746 1 0 3 0x100002 0x80 sbwait syslogd
92776 362755 1 0 3 0x100000 0x80 kqread resolvd
21372 204816 426 77 3 0x100012 0x80 kqread dhcpleased
4283 391696 426 77 3 0x100012 0x80 kqread dhcpleased
426 394227 1 0 3 0 0x80 kqread dhcpleased
89226 503756 0 0 3 0x14000 0x200 bored smr
22880 228130 0 0 2 0x14000 0x200 zerothread
15955 86451 0 0 3 0x14000 0x200 aiodoned aiodoned
31680 283445 0 0 3 0x14000 0x200 syncer update
36903 309495 0 0 3 0x14000 0x200 cleaner cleaner
60990 454731 0 0 3 0x14000 0x200 reaper reaper
76710 243988 0 0 3 0x14000 0x200 pgdaemon pagedaemon
5072 411787 0 0 3 0x14000 0x200 bored viomb
22510 466002 0 0 3 0x14000 0x40000200 acpi0 acpi0
42542 98470 0 0 3 0x14000 0x200 bored softnet0
62428 414425 0 0 3 0x14000 0x200 bored systqmp
86633 469659 0 0 3 0x14000 0x200 bored systq
40194 396191 0 0 3 0x14000 0x40000200 tmoslp softclock
14657 432917 0 0 3 0x14000 0x40000200 idle0
1 405837 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 11039 12234K 13230K 166960K 12430 0
pcb 17 12K 12K 166960K 22 0
rtable 235 6K 6K 166960K 357 0
pf 31 13K 17K 166960K 35 0
ifaddr 42 7K 7K 166960K 45 0
ifgroup 50 2K 2K 166960K 52 0
sysctl 2 1K 9K 166960K 7 0
counters 33 17K 17K 166960K 34 0
ioctlops 0 0K 4K 166960K 37 0
iov 0 0K 12K 166960K 1 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1356 85K 86K 166960K 1465 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 5K 166960K 3 0
VM map 2 1K 1K 166960K 2 0
sem 5 0K 0K 166960K 6 0
dirhash 12 2K 2K 166960K 12 0
ACPI 1734 201K 291K 166960K 11964 0
file desc 15 53K 93K 166960K 182 0
proc 59 59K 83K 166960K 497 0
subproc 72 4K 4K 166960K 72 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 12 0
in_multi 99 7K 7K 166960K 101 0
ether_multi 1 0K 0K 166960K 1 0
mrt 1 0K 0K 166960K 5 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 61 281K 281K 166960K 61 0
exec 0 0K 1K 166960K 367 0
fusefs mount 1 32K 32K 166960K 1 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 206 150K 158K 166960K 3432 0
UVM aobj 5 2K 2K 166960K 5 0
pinsyscall 36 72K 94K 166960K 1282 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 3 0
NDP 11 0K 2K 166960K 28 0
temp 37 9106K 9114K 166960K 4273 0
kqueue 13 20K 26K 166960K 36 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 36 0 33 1 0 1 1 0 8 0
rtentry 136 113 0 4 4 0 4 4 0 8 0
unpcb 144 67 0 44 1 0 1 1 0 8 0
syncache 336 4 0 4 1 0 1 1 0 8 1
tcpcb 736 23 0 19 1 0 1 1 0 8 0
arp 96 19 0 1 1 0 1 1 0 8 0
inpcb 328 98 0 91 2 0 2 2 0 8 1
ip6q 72 2 0 1 1 0 1 1 0 8 0
ip6af 40 3 0 2 1 0 1 1 0 8 0
nd6 112 24 0 0 1 0 1 1 0 8 0
pkpcb 40 1 0 1 1 0 1 1 0 8 1
kcovpl 48 8 0 0 1 0 1 1 0 8 0
ppxss 1072 1 0 1 1 0 1 1 0 8 1
pfstscr 40 2 0 0 1 0 1 1 0 8 0
pfstitem 24 1 0 0 1 0 1 1 0 8 0
pfstkey 128 1 0 0 1 0 1 1 0 8 0
pfstate 384 1 0 0 1 0 1 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 453 0 2 29 0 29 29 0 8 0
art_table 40 454 0 2 5 0 5 5 0 8 0
art_node 32 113 0 14 1 0 1 1 0 8 0
sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1
semapl 72 3 0 0 1 0 1 1 0 8 0
shmpl 112 2 0 0 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1649 0 189 92 0 92 92 0 8 0
ffsino 256 1650 0 190 92 0 92 92 0 8 0
nchpl 144 1899 0 206 63 0 63 63 0 8 0
vnodes 216 1819 0 0 102 0 102 102 0 8 0
namei 1024 5891 0 5890 2 0 2 2 0 8 1
kstatmem 264 25 0 2 2 0 2 2 0 8 0
scxspl 216 6657 0 6657 8 0 8 8 1 8 8
plimitpl 152 32 0 15 1 0 1 1 0 8 0
sigapl 424 477 0 435 6 0 6 6 0 8 1
knotepl 120 4006 0 3959 10 0 10 10 0 8 7
kqueuepl 184 35 0 23 1 0 1 1 0 8 0
pipepl 304 128 0 101 3 0 3 3 0 8 0
fdescpl 448 464 0 437 5 0 5 5 0 8 1
filepl 120 1866 0 1648 11 0 11 11 0 8 3
lockfpl 104 15 0 13 1 0 1 1 0 8 0
lockfspl 48 8 0 6 1 0 1 1 0 8 0
sessionpl 144 24 0 16 1 0 1 1 0 8 0
pgrppl 48 32 0 16 1 0 1 1 0 8 0
ucredpl 104 134 0 121 1 0 1 1 0 8 0
zombiepl 144 440 0 435 1 0 1 1 0 8 0
processpl 1152 477 0 435 4 0 4 4 0 8 0
procpl 664 568 0 520 5 0 5 5 0 8 0
sockpl 552 203 0 170 3 0 3 3 0 8 0
mcl64k 65536 5 0 4 1 0 1 1 0 8 0
mcl8k 8192 7 0 6 1 0 1 1 0 8 0
mcl4k 4096 2537 0 2487 14 0 14 14 0 8 7
mcl2k 2048 157 0 156 1 0 1 1 0 8 0
mextrefs 64 47 0 47 1 0 1 1 0 8 1
mtagpl 96 4 0 4 1 0 1 1 0 8 1
mbufpl 256 4742 0 4596 11 0 11 11 0 8 0
bufpl 272 2296 0 102 147 0 147 147 0 8 0
anonpl 24 87225 0 84223 32 0 32 32 0 187 11
amapchunkpl 152 9375 0 8948 26 0 26 26 0 158 3
amappl16 200 1280 0 1260 4 0 4 4 0 8 2
amappl15 192 5 0 5 1 0 1 1 0 8 1
amappl14 184 408 0 407 1 0 1 1 0 8 0
amappl13 176 112 0 102 1 0 1 1 0 8 0
amappl12 168 698 0 672 2 0 2 2 0 8 0
amappl11 160 2 0 2 1 0 1 1 0 8 1
amappl10 152 57 0 47 1 0 1 1 0 8 0
amappl9 144 268 0 268 1 0 1 1 0 8 1
amappl8 136 94 0 93 1 0 1 1 0 8 0
amappl7 128 140 0 129 1 0 1 1 0 8 0
amappl6 120 151 0 150 1 0 1 1 0 8 0
amappl5 112 98 0 91 1 0 1 1 0 8 0
amappl4 104 259 0 243 1 0 1 1 0 8 0
amappl3 96 1679 0 1581 3 0 3 3 0 8 0
amappl2 88 524 0 471 2 0 2 2 0 8 0
amappl1 80 10182 0 9647 13 0 13 13 0 8 1
amappl 88 2744 0 2599 4 0 4 4 0 92 0
uvmvnodes 80 95 0 0 2 0 2 2 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 253 0 253 1 0 1 1 0 8 1
dma64 64 6 0 6 1 0 1 1 0 8 1
dma32 32 7 0 7 1 0 1 1 0 8 1
dma16 16 19 0 18 1 0 1 1 0 8 0
aobjpl 72 4 0 0 1 0 1 1 0 8 0
uaddrrnd 24 464 0 437 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 464 0 437 1 0 1 1 0 8 0
vmmpekpl 168 5748 0 5710 2 0 2 2 0 8 0
vmmpepl 168 38316 0 36665 80 0 80 80 0 357 2
vmsppl 368 463 0 437 4 0 4 4 0 8 1
rwobjpl 40 13984 0 13068 11 0 11 11 0 8 1
pdppl 4096 934 0 874 94 26 68 80 0 8 8
pvpl 32 219765 0 211919 96 0 96 96 0 265 18
pmappl 216 463 0 437 3 0 3 3 0 8 0
extentpl 40 46 0 28 1 0 1 1 0 8 0
phpool 112 502 0 26 14 0 14 14 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(ffffffff83465a26) at panic+0x1cf sys/kern/subr_prf.c:198
ffs_inode_alloc(fffff100677f1b00,8184,fffff10007ffd8f0,ffff80003c8f9160) at ffs_inode_alloc+0x94e
ufs_makeinode(8184,fffff10067831980,ffff80003c8f94a0,ffff80003c8f94d0) at ufs_makeinode+0xcd sys/ufs/ufs/ufs_vnops.c:1759
ufs_create(ffff80003c8f9210) at ufs_create+0x4e sys/ufs/ufs/ufs_vnops.c:147
VOP_CREATE(fffff10067831980,ffff80003c8f94a0,ffff80003c8f94d0,ffff80003c8f9290) at VOP_CREATE+0xfe sys/kern/vfs_vops.c:103
vn_open(ffff80003c8f9470,201,184) at vn_open+0x50d sys/kern/vfs_vnops.c:118
doopenat(ffff80002f0b0d10,ffffff9c,2000000000c0,200,186,0,89f71b6d1eef7a0b) at doopenat+0x352 sys/kern/vfs_syscalls.c:1163
sys_open(ffff80002f0b0d10,ffff80003c8f9710,ffff80003c8f9660) at sys_open+0x59 sys/kern/vfs_syscalls.c:1065
syscall(ffff80003c8f9710) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c8f9710) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d72b821450, count: -11
ddb> machine ddbcpu 1
No such command
ddb> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff83465a26) at panic+0x1cf sys/kern/subr_prf.c:198
ffs_inode_alloc(fffff100677f1b00,8184,fffff10007ffd8f0,ffff80003c8f9160) at ffs_inode_alloc+0x94e
ufs_makeinode(8184,fffff10067831980,ffff80003c8f94a0,ffff80003c8f94d0) at ufs_makeinode+0xcd sys/ufs/ufs/ufs_vnops.c:1759
ufs_create(ffff80003c8f9210) at ufs_create+0x4e sys/ufs/ufs/ufs_vnops.c:147
VOP_CREATE(fffff10067831980,ffff80003c8f94a0,ffff80003c8f94d0,ffff80003c8f9290) at VOP_CREATE+0xfe sys/kern/vfs_vops.c:103
vn_open(ffff80003c8f9470,201,184) at vn_open+0x50d sys/kern/vfs_vnops.c:118
doopenat(ffff80002f0b0d10,ffffff9c,2000000000c0,200,186,0,89f71b6d1eef7a0b) at doopenat+0x352 sys/kern/vfs_syscalls.c:1163
sys_open(ffff80002f0b0d10,ffff80003c8f9710,ffff80003c8f9660) at sys_open+0x59 sys/kern/vfs_syscalls.c:1065
syscall(ffff80003c8f9710) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c8f9710) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d72b821450, count: -11