Home
last modified time | relevance | path

Searched hist:"10 f04d40" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/quota/
H A Dquota_tree.c10f04d40 Mon Nov 02 09:32:10 CST 2020 Jan Kara <jack@suse.cz> 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>