kernel_optimize_test/fs/quota
Jan Kara 8584d4f31a quota: Fix memory leak when handling corrupted quota file
[ Upstream commit a4db1072e1a3bd7a8d9c356e1902b13ac5deb8ef ]

When checking corrupted quota file we can bail out and leak allocated
info structure. Properly free info structure on error return.

Reported-by: syzbot+77779c9b52ab78154b08@syzkaller.appspotmail.com
Fixes: 11c514a99bb9 ("quota: Sanity-check quota file headers on load")
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:37:53 +01:00
..
compat.h quota: simplify the quotactl compat handling 2020-09-17 13:00:46 -04:00
dquot.c fs: quota: fix array-index-out-of-bounds bug by passing correct argument to vfs_cleanup_quota_inode() 2020-12-26 16:02:45 +01:00
Kconfig quota: simplify the quotactl compat handling 2020-09-17 13:00:46 -04:00
kqid.c
Makefile quota: simplify the quotactl compat handling 2020-09-17 13:00:46 -04:00
netlink.c
quota_tree.c quota: Don't overflow quota file offsets 2021-01-06 14:56:53 +01:00
quota_tree.h
quota_v1.c quota: minor code cleanup for v1_format_ops 2019-10-17 10:30:28 +02:00
quota_v2.c quota: Fix memory leak when handling corrupted quota file 2021-03-04 11:37:53 +01:00
quota.c \n 2020-10-15 14:56:15 -07:00
quotaio_v1.h quota: avoid time_t in v1_disk_dqblk definition 2019-12-16 14:15:30 +01:00
quotaio_v2.h