[GIT PULL] ntfs fixes for 7.1-rc1
From: Namjae Jeon
Date: Fri Apr 24 2026 - 10:09:44 EST
Hi Linus,
This is ntfs fixes pull request for v7.1-rc1. I add the description of
this pull request below. Please pull the following ntfs fixes.
Thanks!
The following changes since commit 8541d8f725c673db3bd741947f27974358b2e163:
Merge tag 'mtd/for-7.1' of
git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux (2026-04-17
17:57:04 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/ntfs.git
tags/ntfs-for-7.1-rc1-part2
for you to fetch changes up to 36ee1313199b7f16bf963c6ac0241861585125d9:
ntfs: use page allocation for resident attribute inline data
(2026-04-22 19:05:07 +0900)
----------------------------------------------------------------
Description for this pull request:
- Fix potential data leakage by zeroing the portion of the straddle block
beyond initialized_size when reading non-resident attributes.
- Remove unnecessary zeroing in ntfs_punch_hole() for ranges beyond
initialized_size, as they are already returned as zeros on read.
- Fix writable check in ntfs_file_mmap_prepare() to correctly handle
shared mappings using VMA_SHARED_BIT | VMA_MAYWRITE_BIT.
- Use page allocation instead of kmemdup() for IOMAP_INLINE data to
ensure page-aligned address and avoid BUG trap in
iomap_inline_data_valid() caused by the page boundary check.
- Add a size check before memory allocation in ntfs_attr_readall() and
reject overly large attributes.
- Remove unneeded noop_direct_IO from ntfs_aops as it is no longer
required following the FMODE_CAN_ODIRECT flag.
- Fix seven static analysis warnings reported by Smatch.
----------------------------------------------------------------
Dan Carpenter (3):
ntfs: add missing error code in ntfs_mft_record_alloc()
ntfs: delete dead code
ntfs: fix potential 32-bit truncation in ntfs_write_cb()
Hyunchul Lee (4):
ntfs: zero out stale data in straddle block beyond initialized_size
ntfs: not zero out range beyond init in punch_hole
ntfs: limit memory allocation in ntfs_attr_readall
ntfs: remove noop_direct_IO from address_space_operations
Namjae Jeon (6):
ntfs: fix uninitialized variable in
ntfs_write_simple_iomap_begin_non_resident
ntfs: fix uninitialized pointer in ntfs_write_mft_block
ntfs: fix uninitialized variables in ntfs_ea_set_wsl_inode()
ntfs: fix uninitialized variable in ntfs_map_runlist_nolock
ntfs: fix mmap_prepare writable check for shared mappings
ntfs: use page allocation for resident attribute inline data
fs/ntfs/aops.c | 48 +++++++++++++++++++++++++++++++++++++++++++++---
fs/ntfs/attrib.c | 16 +++++++++++++++-
fs/ntfs/compress.c | 3 ++-
fs/ntfs/ea.c | 5 ++++-
fs/ntfs/file.c | 51 +++++++++++++++++++++++++--------------------------
fs/ntfs/iomap.c | 28 ++++++++++++++++++++--------
fs/ntfs/mft.c | 5 +++--
7 files changed, 114 insertions(+), 42 deletions(-)