fs/ntfs3: Check fields while reading
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 10 Oct 2022 10:15:33 +0000 (13:15 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 14 Nov 2022 16:50:47 +0000 (19:50 +0300)
commit0e8235d28f3a0e9eda9f02ff67ee566d5f42b66b
tree99078a7d388b9b9867b7387cce413fd918cef4f9
parent6f80ed14d76c730f7943777ba259cd32870e6433
fs/ntfs3: Check fields while reading

Added new functions index_hdr_check and index_buf_check.
Now we check all stuff for correctness while reading from disk.
Also fixed bug with stale nfs data.

Reported-by: van fantasy <g1042620637@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/index.c
fs/ntfs3/inode.c
fs/ntfs3/ntfs_fs.h
fs/ntfs3/run.c
fs/ntfs3/xattr.c