linux-stable/fs/quota
Jan Kara 26058c397b quota: Don't overflow quota file offsets
[ Upstream commit 10f04d40a9 ]

The on-disk quota format supports quota files with upto 2^32 blocks. Be
careful when computing quota file offsets in the quota files from block
numbers as they can overflow 32-bit types. Since quota files larger than
4GB would require ~26 millions of quota users, this is mostly a
theoretical concern now but better be careful, fuzzers would find the
problem sooner or later anyway...

Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-01-06 14:56: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.c \n 2020-10-15 14:56:15 -07:00
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: Sanity-check quota file headers on load 2020-12-26 16:02:44 +01:00
quotaio_v1.h quota: avoid time_t in v1_disk_dqblk definition 2019-12-16 14:15:30 +01:00
quotaio_v2.h