diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-07-21 15:58:08 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-19 18:16:44 +0900 |
| commit | 0ab6dc1ac4601c8d79e5448a024daed6b0c5ef64 (patch) | |
| tree | dfc1b10d9eb224a1b1afb956b37092e447f3730f /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 7ed0028126b5a19f278183abbae2b3166d3ca9ac (diff) | |
ntfs: move attribute payload before shrinking its record
ntfs_new_attr_flags() resizes the non-resident attribute record before
moving its name and mapping pairs to their shorter-header offsets when
compression or sparse state is cleared.
Shrinking the record first moves the following attribute over the tail of
the old record. The subsequent memmove() therefore copies bytes from that
following attribute instead of the old mapping pairs. Re-enabling
compression on an empty file persists those bytes as a malformed mapping
pairs array, which ntfsck reports as a missing or invalid run length.
Move the payload before shrinking the record, while retaining the existing
resize-before-move ordering when growing it.
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
