mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
fs/ntfs3: Additional check in ni_clear()
Checking of NTFS_FLAGS_LOG_REPLAYING added to prevent access to uninitialized bitmap during replay process. Reported-by: syzbot+3bfd2cc059ab93efcdb4@syzkaller.appspotmail.com Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
parent
03b097099e
commit
d178944db3
@ -102,7 +102,9 @@ void ni_clear(struct ntfs_inode *ni)
|
|||||||
{
|
{
|
||||||
struct rb_node *node;
|
struct rb_node *node;
|
||||||
|
|
||||||
if (!ni->vfs_inode.i_nlink && ni->mi.mrec && is_rec_inuse(ni->mi.mrec))
|
if (!ni->vfs_inode.i_nlink && ni->mi.mrec &&
|
||||||
|
is_rec_inuse(ni->mi.mrec) &&
|
||||||
|
!(ni->mi.sbi->flags & NTFS_FLAGS_LOG_REPLAYING))
|
||||||
ni_delete_all(ni);
|
ni_delete_all(ni);
|
||||||
|
|
||||||
al_destroy(ni);
|
al_destroy(ni);
|
||||||
|
Loading…
Reference in New Issue
Block a user