OpenCloudOS-Kernel/fs/ntfs3
Diogo Jahchan Koike c556e72cea ntfs3: Change to non-blocking allocation in ntfs_d_hash
[ Upstream commit 589996bf8c459deb5bbc9747d8f1c51658608103 ]

d_hash is done while under "rcu-walk" and should not sleep.
__get_name() allocates using GFP_KERNEL, having the possibility
to sleep when under memory pressure. Change the allocation to
GFP_NOWAIT.

Reported-by: syzbot+7f71f79bbfb4427b00e1@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=7f71f79bbfb4427b00e1
Fixes: d392e85fd1e8 ("fs/ntfs3: Fix the format of the "nocase" mount option")
Signed-off-by: Diogo Jahchan Koike <djahchankoike@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-17 15:24:14 +02:00
..
lib fs/ntfs3: Add missing header and guards to lib/ headers 2021-09-13 19:41:44 +03:00
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile
attrib.c fs/ntfs3: Keep runs for $MFT::$ATTR_DATA and $MFT::$ATTR_BITMAP 2024-08-03 08:54:10 +02:00
attrlist.c fs/ntfs3: Use kvfree to free memory allocated by kvmalloc 2024-03-01 13:34:54 +01:00
bitfunc.c fs/ntfs3: Add ntfs_bitmap_weight_le function and refactoring 2022-11-14 19:50:42 +03:00
bitmap.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-08-29 17:33:13 +02:00
debug.h fs/ntfs3. Add forward declarations for structs to debug.h 2021-09-13 19:41:43 +03:00
dir.c fs/ntfs3: Check more cases when directory is corrupted 2024-09-12 11:11:37 +02:00
file.c fs/ntfs3: Do not call file_modified if collapse range failed 2024-10-17 15:24:14 +02:00
frecord.c fs/ntfs3: Fix sparse warning in ni_fiemap 2024-10-17 15:24:14 +02:00
fslog.c fs/ntfs3: Refactor enum_rstbl to suppress static checker 2024-10-17 15:24:14 +02:00
fsntfs.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-08-29 17:33:13 +02:00
index.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-08-29 17:33:13 +02:00
inode.c fs/ntfs3: Correct undo if ntfs_create_inode failed 2024-08-03 08:54:07 +02:00
lznt.c fs/ntfs3: Code formatting 2023-07-03 00:21:27 +04:00
namei.c ntfs3: Change to non-blocking allocation in ntfs_d_hash 2024-10-17 15:24:14 +02:00
ntfs.h fs/ntfs3: Fix field-spanning write in INDEX_HDR 2024-08-03 08:54:08 +02:00
ntfs_fs.h fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-08-29 17:33:13 +02:00
record.c fs/ntfs3: Taking DOS names into account during link counting 2024-06-12 11:11:20 +02:00
run.c fs/ntfs3: Code formatting 2023-07-03 00:21:27 +04:00
super.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-08-29 17:33:13 +02:00
upcase.c fs/ntfs3: Add option "nocase" 2022-09-30 17:39:47 +03:00
xattr.c fs/ntfs3: Mark volume as dirty if xattr is broken 2024-07-11 12:49:19 +02:00