summaryrefslogtreecommitdiff
path: root/fs/quota/quota_v2.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2020-11-02 16:32:10 +0100
committerJan Kara <jack@suse.cz>2020-11-03 11:17:00 +0100
commit10f04d40a9fa29785206c619f80d8beedb778837 (patch)
tree9351d9208e5a95fef22ef849c4903d105fdd19e4 /fs/quota/quota_v2.c
parenta219ee41899bcfabd63cd6617256d5be13a7f4b6 (diff)
quota: Don't overflow quota file offsets
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>
Diffstat (limited to 'fs/quota/quota_v2.c')
0 files changed, 0 insertions, 0 deletions