diff options
| author | Hongling Zeng <zenghongling@kylinos.cn> | 2026-08-24 15:59:35 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-27 21:50:45 +0900 |
| commit | acb1095fd2db884b417cb70808c886e4b615ff05 (patch) | |
| tree | 9ca92f044a45976e1b62e8074fecfee8a71f8561 /tools/perf/scripts/python | |
| parent | 6faa235a649e78a82e3230b849607f446ba65ed5 (diff) | |
ntfs: fix memmove overlap in ntfs_new_attr_flags
When the record shrinks while the payload offsets increase (e.g., enabling
compression reduces padding, making arec_size < old_arec_size, but the header
grows by 8 bytes), moving the name first can overwrite the old mapping_pairs
before they are copied. Move mapping_pairs first in this case.
Since mp_ofs is derived from name_ofs, they always change in the same
direction. Checking name_ofs alone is sufficient.
Fixes: fc053f05ca28 ("ntfs: add reparse and ea operations")
Cc: stable@vger.kernel.org
Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
