Skip to contentSkip to conversation

ntfs fixes for 7.4-rc3

GIT PULL Merged Namjae Jeon 2 participants 2 messages Nov 14 NTFS filesystem

lore
Share & tools
lore

Namjae Jeon

author maintainer
#0 lore raw

Hi Linus,

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

Thanks!

The following changes since commit fa4ad798f6f681031775266044ba1b0cf3c670bd:

Merge tag 'for-7.4-rc1-tag' of
git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux (2026-11-07 13:52:02 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/ntfs.git
tags/ntfs-for-7.4-rc3

for you to fetch changes up to bada7bbb11aaa6feba8904cf38ff833453f5b5d9:

ntfs: open the index allocation before reading or writing an index
block (2026-11-08 12:43:07 +0900)

----------------------------------------------------------------
- Validate that $INDEX_ALLOCATION is open and non-resident before reading or writing index blocks, preventing NULL pointer dereferences when an earlier index operation has not opened it.

- Check that index allocation inodes are non-resident and child VCNs are non-negative and within bounds before directory lookup reads, preventing a deadlock when $INDEX_ALLOCATION is missing or damaged.

- Validate file names against the index entry's key length, preventing out-of-bounds reads when directory enumeration resumes using a copied key.

- Return -ENOENT for NTFS_IOC_LIST_STREAMS on deleted base files and fix unsigned underflow in its buffer bounds check, preventing out-of-bounds writes when the sizing and filling passes disagree.

- Use kfree() for the temporary runlist allocated with kmalloc() on merge failure, resolving the Coccinelle allocation/free mismatch warning.

----------------------------------------------------------------
Namjae Jeon (1):
ntfs: silence kmalloc/kvfree mismatch warning

Wahid Khan (3):
ntfs: check the file name against the key length of an index entry
ntfs: do not read an index block outside $INDEX_ALLOCATION
ntfs: open the index allocation before reading or writing an index block

Xingyuan Mo (1):
ntfs: fix out-of-bounds write race in NTFS_IOC_LIST_STREAMS

 fs/ntfs/dir.c          | 14 ++++++++++++++
 fs/ntfs/index.c        | 30 +++++++++++++++++++++++++++---
 fs/ntfs/iomap.c        |  2 +-
 fs/ntfs/named_stream.c |  6 +++++-
 4 files changed, 47 insertions(+), 5 deletions(-)
merge bot Merged
#1 lore raw
The pull request you sent on Sat, 14 Nov 2026 14:46:51 +0900:

The pull request you sent on Sat, 14 Nov 2026 14:46:51 +0900:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/ntfs.git tags/ntfs-for-7.4-rc3

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/68271fbe7d14b6397e90df730c3967d3a481902b

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html