]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs: remove redundant out-of-bound checks
authorHyunchul Lee <hyc.lee@gmail.com>
Tue, 17 Mar 2026 05:13:44 +0000 (14:13 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Tue, 7 Apr 2026 09:36:13 +0000 (18:36 +0900)
commit14f0a13ec79dfa63e143ea45e6530d80bec6e291
tree94084a93788bcc9bd723afec7d08458c3eb87690
parenta198a0c4b898f7c62f240a5b6baef93e456fb033
ntfs: remove redundant out-of-bound checks

Remove redundant out-of-bounds validations.
Since ntfs_attr_find and ntfs_external_attr_find
now validate the attribute value offsets and
lengths against the bounds of the MFT record block,
performing subsequent bounds checking in caller
functions like ntfs_attr_lookup is no longer necessary.

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/ntfs/inode.c
fs/ntfs/namei.c
fs/ntfs/super.c