]> git.ipfire.org Git - thirdparty/linux.git/commit
ntfs: centalize $INDEX_ROOT header validation
authorHyunchul Lee <hyc.lee@gmail.com>
Sat, 23 May 2026 04:14:21 +0000 (13:14 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Fri, 5 Jun 2026 15:19:54 +0000 (00:19 +0900)
commit8b97b302f553a480fb76d2afd53cd6c0635a9dcd
treef87e4064c5b30b899c5a128fd5bb03856b8f13fc
parent14bc34fe948523dc2b0174691f9af9e74eb4f3fd
ntfs: centalize $INDEX_ROOT header validation

Add a dedicated helper to perform stricter validation of $INDEX_ROOT and
use it for both directory inodes and named index inodes. This keeps the
root size and header geometry checks consistent across both read paths.

Cc: stable@vger.kernel.org # v7.1
Tested-by: woot000 <woot000@woot000.com>
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/ntfs/index.c
fs/ntfs/index.h
fs/ntfs/inode.c