kernel_optimize_test/fs/quota
Jan Kara 26058c397b quota: Don't overflow quota file offsets
[ Upstream commit 10f04d40a9fa29785206c619f80d8beedb778837 ]

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
dquot.c
Kconfig
kqid.c
Makefile
netlink.c
quota_tree.c
quota_tree.h
quota_v1.c
quota_v2.c
quota.c
quotaio_v1.h
quotaio_v2.h