diff options
| author | Yang Wen <anmuxixixi@gmail.com> | 2026-08-13 22:29:19 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-14 23:43:02 +0900 |
| commit | 2de727471b3b13409466a4af4f8824a86073bf4b (patch) | |
| tree | f6e63e007dbbe32ca3a5e19485477ff18de42644 /scripts/stackusage | |
| parent | 27af3392196ddfa4c212f4c883b9964a6dcd5f95 (diff) | |
| download | linux-2de727471b3b13409466a4af4f8824a86073bf4b.tar.gz linux-2de727471b3b13409466a4af4f8824a86073bf4b.zip | |
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 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
