summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2026-02-14 07:32:05 +0000
committerTejun Heo <tj@kernel.org>2026-02-16 21:01:18 -1000
commitcabd76bbc03617e55c25f0b06167aa5e0b911a36 (patch)
tree9859a1e8daf39945445ddf154b33dd6088313590 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent0b82cc331d2e23537670878c62c19ee3f4147a93 (diff)
tools/sched_ext: scx_flatcg: fix potential stack overflow from VLA in fcg_read_stats
fcg_read_stats() had a VLA allocating 21 * nr_cpus * 8 bytes on the stack, risking stack overflow on large CPU counts (nr_cpus can be up to 512). Fix by using a single heap allocation with the correct size, reusing it across all stat indices, and freeing it at the end. Signed-off-by: David Carlier <devnexen@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions