Patch "fs/ntfs3: Use __GFP_NOWARN allocation at ntfs_fill_super()" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    fs/ntfs3: Use __GFP_NOWARN allocation at ntfs_fill_super()

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     fs-ntfs3-use-__gfp_nowarn-allocation-at-ntfs_fill_su.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 6c62bd45d17c117b2b94ce0f6c38774bed77457c
Author: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx>
Date:   Sun Oct 2 23:54:11 2022 +0900

    fs/ntfs3: Use __GFP_NOWARN allocation at ntfs_fill_super()
    
    [ Upstream commit 59bfd7a483da36bd202532a3d9ea1f14f3bf3aaf ]
    
    syzbot is reporting too large allocation at ntfs_fill_super() [1], for a
    crafted filesystem can contain bogus inode->i_size. Add __GFP_NOWARN in
    order to avoid too large allocation warning, than exhausting memory by
    using kvmalloc().
    
    Link: https://syzkaller.appspot.com/bug?extid=33f3faaa0c08744f7d40 [1]
    Reported-by: syzot <syzbot+33f3faaa0c08744f7d40@xxxxxxxxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Konstantin Komarov <almaz.alexandrovich@xxxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c
index 94f9e4b775a7..8e2fe0f69203 100644
--- a/fs/ntfs3/super.c
+++ b/fs/ntfs3/super.c
@@ -1141,7 +1141,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
 		goto put_inode_out;
 	}
 	bytes = inode->i_size;
-	sbi->def_table = t = kmalloc(bytes, GFP_NOFS);
+	sbi->def_table = t = kmalloc(bytes, GFP_NOFS | __GFP_NOWARN);
 	if (!t) {
 		err = -ENOMEM;
 		goto put_inode_out;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux