Re: [PATCH v3] ntfs: handle a failed size rollback in the write error path

From: Hyunchul Lee

Date: Tue Oct 20 2026 - 02:07:35 EST


> mutex_lock(&mrec_ni->mrec_lock);
> - ntfs_attr_truncate(ni, old_data_size);
> + data_err = __ntfs_attr_truncate_vfs(ni, old_data_size,
> + old_data_size);

The shrink can clamp `initialized_size` to `old_data_size`, and this can
expose the uninitialized data in the read path.

--
Thanks,
Hyunchul