]> git.baikalelectronics.ru Git - kernel.git/commit
fs/ntfs3: Check fields while reading
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 10 Oct 2022 10:15:33 +0000 (13:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 23 Jul 2023 11:49:27 +0000 (13:49 +0200)
commit000a9a72efa4a9df289bab9c9e8ba1639c72e0d6
tree6b5e90f09f40c18a1af253dca914ced0a55d8871
parentbf2f2c059f17c198e4d041348eb84db1152e7568
fs/ntfs3: Check fields while reading

commit 0e8235d28f3a0e9eda9f02ff67ee566d5f42b66b upstream.

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>
Fixes: 82cae269cfa95 ("fs/ntfs3: Add initialization of super block")
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ntfs3/index.c
fs/ntfs3/inode.c
fs/ntfs3/ntfs_fs.h
fs/ntfs3/run.c
fs/ntfs3/xattr.c