summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorYang Wen <anmuxixixi@gmail.com>2026-08-13 22:29:19 +0800
committerNamjae Jeon <linkinjeon@kernel.org>2026-08-14 23:43:02 +0900
commit2de727471b3b13409466a4af4f8824a86073bf4b (patch)
treef6e63e007dbbe32ca3a5e19485477ff18de42644 /tools/perf/scripts/python/stackcollapse.py
parent27af3392196ddfa4c212f4c883b9964a6dcd5f95 (diff)
exfat: keep FITRIM within the requested range
exfat_find_free_bitmap() searches the entire allocation bitmap and may wrap around to its beginning. exfat_trim_fs() does not verify that the returned cluster is still within the requested FITRIM range. As a result, a partial FITRIM operation may discard free clusters outside the user-specified range and report a trimmed length larger than the requested length. Validate each returned cluster against the requested range and stop the search when it wraps around or passes the range end. Signed-off-by: Yang Wen <anmuxixixi@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions