]> git.baikalelectronics.ru Git - kernel.git/commit
fs/ntfs3: Fix missing i_op in ntfs_read_mft
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 26 May 2022 09:51:03 +0000 (12:51 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 6 Jun 2022 15:38:58 +0000 (18:38 +0300)
commit7af106918fef469d9f561464c2f56a8da91f0e94
tree9e6dcc2d78a465dd1c63cee9ebdd1fdb58eb54ca
parent8920f996d544efdee6c1876cffd53a0a34d77216
fs/ntfs3: Fix missing i_op in ntfs_read_mft

There is null pointer dereference because i_op == NULL.
The bug happens because we don't initialize i_op for records in $Extend.
Fixes: e4fc806fdd16 ("fs/ntfs3: Add initialization of super block")
Reported-by: Liangbin Lian <jjm2473@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/inode.c