linux-stable/fs/ext2
Jan Kara 18c37236b0 ext2: Use kvmalloc() for group descriptor array
[ Upstream commit e7c7fbb9a8 ]

Array of group descriptor block buffers can get rather large. In theory
in can reach 1MB for perfectly valid filesystem and even more for
maliciously crafted ones. Use kvmalloc() to allocate the array to avoid
straining memory allocator with large order allocations unnecessarily.

Reported-by: syzbot+0f2f7e65a3007d39539f@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-24 09:58:28 +02:00
..
Kconfig
Makefile
acl.c
acl.h
balloc.c
dir.c ext2: fix fs corruption when trying to remove a non-empty directory with IO error 2022-06-16 10:55:45 +02:00
ext2.h dax: return the partition offset from fs_dax_get_by_bdev 2021-12-04 08:58:54 -08:00
file.c
ialloc.c remove bdi_congested() and wb_congested() and related functions 2022-03-22 15:57:01 -07:00
inode.c fs: Fix syntax errors in comments 2022-06-06 09:53:03 +02:00
ioctl.c
namei.c
super.c ext2: Use kvmalloc() for group descriptor array 2022-10-24 09:58:28 +02:00
symlink.c
xattr.c
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c