Re: [PATCH] ntfs: fix incorrect MFT record pointer passed to ntfs_attr_record_resize
From: Namjae Jeon
Date: Wed Aug 26 2026 - 07:29:53 EST
On Mon, Aug 24, 2026 at 2:41 PM Hongling Zeng <zenghongling@xxxxxxxxxx> wrote:
>
> ntfs_new_attr_flags() passes the wrong MFT record to ntfs_attr_record_resize().
> When the attribute is in an extent record, ctx->mrec points to the extent
> but the function receives the base record pointer m, causing incorrect
> size calculations in memmove.
>
> Fix by passing ctx->mrec (the actual MFT record containing the attribute)
> instead of m (the base MFT record) to ntfs_attr_record_resize().
>
> Fixes: fc053f05ca28 ("ntfs: add reparse and ea operations")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Hongling Zeng <zenghongling@xxxxxxxxxx>
Applied it to #ntfs-next.
Thanks!