[GIT PULL] ntfs fixes for 7.1-rc2

From: Namjae Jeon

Date: Fri May 01 2026 - 21:02:26 EST


Hi Linus,

This is ntfs fixes pull request for v7.1-rc2. I add the description of
this pull request below. Please pull the following ntfs fixes.

Thanks!

The following changes since commit 897d54018cc9aa97fd1529ca08a53b429d05a566:

Merge tag 'fbdev-for-7.1-rc1-2' of
git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev
(2026-04-25 07:48:33 -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-rc2

for you to fetch changes up to 9e9354075d5a15cfc0aba965f3d0d77b7d4303e9:

ntfs: Use return instead of goto in ntfs_mapping_pairs_decompress()
(2026-04-30 07:05:48 +0900)

----------------------------------------------------------------
Description for this pull request:
- Fix a NULL pointer dereference in ntfs_index_walk_down() by validating
index block allocation.
- Fix a memory leak of the symlink target string in
ntfs_reparse_set_wsl_symlink() during error paths.
- Prevent VCN overflow and validate lowest_vcn in
ntfs_mapping_pairs_decompress() to avoid runlist corruption.
- Fix a page reference leak in ntfs_write_iomap_end_resident() when
attribute search context allocation fails.
- Fix an invalid PTR_ERR() usage on a valid folio pointer in
__ntfs_bitmap_set_bits_in_run().
- Correct directory link counting by dropping nlink only when the MFT
record link count reaches zero for WIN32/DOS aliases.
- Fix an uninitialized variable usage in ntfs_mapping_pairs_decompress()
by returning an error pointer directly.

----------------------------------------------------------------
DaeMyung Kang (2):
ntfs: fix NULL dereference in ntfs_index_walk_down()
ntfs: fix WSL symlink target leak on reparse failure

Hyunchul Lee (1):
ntfs: drop nlink once for WIN32/DOS aliases

Namjae Jeon (2):
ntfs: fix error handling in ntfs_write_iomap_end_resident()
ntfs: fix invalid PTR_ERR() usage in __ntfs_bitmap_set_bits_in_run()

Nathan Chancellor (1):
ntfs: Use return instead of goto in ntfs_mapping_pairs_decompress()

Zhan Xusheng (1):
ntfs: fix VCN overflow in ntfs_mapping_pairs_decompress()

fs/ntfs/bitmap.c | 19 +++++++++++--------
fs/ntfs/dir.c | 13 ++++++++++---
fs/ntfs/index.c | 17 +++++++++++++----
fs/ntfs/iomap.c | 6 +++---
fs/ntfs/namei.c | 13 +++++++++++--
fs/ntfs/reparse.c | 5 +++--
fs/ntfs/runlist.c | 24 +++++++++++++++++++++---
7 files changed, 72 insertions(+), 25 deletions(-)