fs/ntfs3: Use __GFP_NOWARN allocation at ntfs_load_attr_list()
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Tue, 28 Mar 2023 11:05:16 +0000 (20:05 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2023 10:08:23 +0000 (12:08 +0200)
commitccc6de4d4f3466fb70f17aea4e41b43742b6a979
tree05f9b034079eb5ec801a776f2c1ae08d7622e62f
parent33d9490b27e5d8da4444aefd714a4f50189db978
fs/ntfs3: Use __GFP_NOWARN allocation at ntfs_load_attr_list()

commit ea303f72d70ce2f0b0aa94ab127085289768c5a6 upstream.

syzbot is reporting too large allocation at ntfs_load_attr_list(), for
a crafted filesystem can have huge data_size.

Reported-by: syzbot <syzbot+89dbb3a789a5b9711793@syzkaller.appspotmail.com>
Link: https://syzkaller.appspot.com/bug?extid=89dbb3a789a5b9711793
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ntfs3/attrlist.c