]> git.hungrycats.org Git - linux/commit
ntfs: validate index block header more strictly
authorHyunchul Lee <hyc.lee@gmail.com>
Sat, 23 May 2026 04:14:20 +0000 (13:14 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Fri, 5 Jun 2026 15:19:52 +0000 (00:19 +0900)
commit14bc34fe948523dc2b0174691f9af9e74eb4f3fd
tree3871f3154f6f3e71d2611c8ffaba3146bb697b71
parentc05132077df57a384919f61d7f8a8e76d748a6d4
ntfs: validate index block header more strictly

Modify ntfs_index_block_inconsisent() to perform stricter validation of
INDEX_HEADER geometry in INDX blocks, and update
ntfs_lookup_inode_by_name() to use that function to validate INDX
blocks.

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/dir.c
fs/ntfs/index.c
fs/ntfs/index.h