summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorSJ Park <sj@kernel.org>2026-07-14 20:10:00 -0700
committerAndrew Morton <akpm@linux-foundation.org>2026-08-06 18:57:09 -0700
commitab4d9358e32316fa39b5f1f5360292135978c3d9 (patch)
tree2489ef69ac04a950ba85e820e79e38274ad19d00 /tools/perf/scripts/python/bin/stackcollapse-report
parentf23f0aa62b2f32c2b12f95959fc4603ef81678b2 (diff)
mm/damon/sysfs: read addr_unit only once in damon_sysfs_apply_inputs()
damon_sysfs_apply_inputs() reads addr_unit twice. It could race with addr_unit_store(). As a result, the min_region_sz could wrongly be set up. Read it once. The user impact is trivial. Sane users ain't update the parameter in parallel. Even if it happens, the DAMON core layer handles the wrong min_region_sz (!is_power_of_2()). Even if somehow the race ended up making a min_region_sz that is different from the user's intention but still valid, only monitoring itself runs differently than expected. No critical consequences like kernel panic or memory corruption happen. The issue was discovered [1] by Sashiko. Link: https://lore.kernel.org/20260715031002.108504-6-sj@kernel.org Link: https://lore.kernel.org/20260714142950.100711-1-sj@kernel.org [1] Fixes: 540a2aebc657 ("mm/damon/sysfs: implement addr_unit file under context dir") Signed-off-by: SJ Park <sj@kernel.org> Cc: <stable@vger.kernel.org> # 6.18.x Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions