diff options
| author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2026-09-03 09:52:38 +0200 |
|---|---|---|
| committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2026-09-08 10:44:40 +0200 |
| commit | cd31336c23f6e40826675880396b45b32ef33fcb (patch) | |
| tree | d1142a9ca7b845abb6abfae4b3e2d3fb40e1939c /scripts | |
| parent | 85482241f208975fcaba8c1892d2cfc95f6ef5aa (diff) | |
fs/ntfs3: convert to non-resident when the new size exceeds the record size
attr_set_size_res() only checked whether the attribute still fits when
the attribute was growing (dsize > 0), and only against
sbi->max_bytes_per_attr. A resident attribute could therefore be
resized to a value larger than a single MFT record can hold.
Move the check ahead of the memmove() paths and also reject a new size
larger than sbi->record_size, falling back to attr_make_nonresident()
in both cases.
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
