[GIT PULL] ntfs3: bugfixes for 7.1

From: Konstantin Komarov

Date: Mon Apr 20 2026 - 12:13:26 EST


Hello, please pull this branch containing ntfs3 code for 7.1.

Regards,
Konstantin

----------------------------------------------------------------
The following changes since commit 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f:

Linux 7.0-rc1 (2026-02-22 13:18:59 -0800)

are available in the Git repository at:

https://github.com/Paragon-Software-Group/linux-ntfs3.git tags/ntfs3_for_7.1

for you to fetch changes up to 819bd270abf9de3b7f306e233054b85a07c47820:

fs/ntfs3: fix Smatch warnings (2026-04-16 10:28:32 +0200)

----------------------------------------------------------------
Changes for 7.1-rc1

Added:
reject inodes with zero non-DOS link count
return folios from ntfs_lock_new_page()
subset of W=1 warnings for stricter checks
work around -Wmaybe-uninitialized warnings
buffer boundary checks to run_unpack()
terminate the cached volume label after UTF-8 conversion

Fixed:
check return value of indx_find to avoid infinite loop
prevent uninitialized lcn caused by zero len
increase CLIENT_REC name field size to prevent buffer overflow
missing run load for vcn0 in attr_data_get_block_locked()
memory leak in indx_create_allocate()
OOB write in attr_wof_frame_info()
mount failure on volumes with fragmented MFT bitmap
integer overflow in run_unpack() volume boundary check
validate rec->used in journal-replay file record check

Changed:
resolve compare function in public index APIs
$LXDEV xattr lookup
potential double iput on d_make_root() failure
initialize err in ni_allocate_da_blocks_locked()
correct the pre_alloc condition in attr_allocate_clusters()

----------------------------------------------------------------
0xkato (1):
ntfs3: fix OOB write in attr_wof_frame_info()

Adarsh Das (1):
fs/ntfs3: resolve compare function in public index APIs

Arnd Bergmann (1):
ntfs3: work around false-postive -Wmaybe-uninitialized warnings

Deepanshu Kartikey (2):
fs/ntfs3: fix missing run load for vcn0 in attr_data_get_block_locked()
ntfs3: fix memory leak in indx_create_allocate()

Edward Adam Davis (1):
fs/ntfs3: prevent uninitialized lcn caused by zero len

Greg Kroah-Hartman (1):
fs/ntfs3: validate rec->used in journal-replay file record check

Konstantin Komarov (4):
fs/ntfs3: add a subset of W=1 warnings for stricter checks
fs/ntfs3: increase CLIENT_REC name field size
ntfs3: fix mount failure on volumes with fragmented MFT bitmap
fs/ntfs3: fix Smatch warnings

Pengpeng Hou (1):
fs/ntfs3: terminate the cached volume label after UTF-8 conversion

Sun Jian (1):
fs/ntfs3: return folios from ntfs_lock_new_page()

Tobias Gaertner (2):
ntfs3: add buffer boundary checks to run_unpack()
ntfs3: fix integer overflow in run_unpack() volume boundary check

Zhan Xusheng (2):
fs/ntfs3: fix $LXDEV xattr lookup
fs/ntfs3: fix potential double iput on d_make_root() failure

Ziyi Guo (1):
ntfs3: reject inodes with zero non-DOS link count

fs/ntfs3/Makefile | 20 ++++++++++++++
fs/ntfs3/attrib.c | 23 +++++++++++++++-
fs/ntfs3/frecord.c | 49 ++++++++++++++++++----------------
fs/ntfs3/fslog.c | 16 +++++++++---
fs/ntfs3/fsntfs.c | 4 +--
fs/ntfs3/index.c | 77 +++++++++++++++++++++++++++++++++++-------------------
fs/ntfs3/inode.c | 15 +++++++----
fs/ntfs3/ntfs_fs.h | 3 ---
fs/ntfs3/run.c | 18 ++++++++++---
fs/ntfs3/super.c | 48 +++++++++++++++++++++++++++++-----
fs/ntfs3/xattr.c | 2 +-
11 files changed, 202 insertions(+), 73 deletions(-)