• Jan Kara's avatar
    quota: Don't overflow quota file offsets · 10f04d40
    Jan Kara authored
    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: default avatarAndreas Dilger <adilger@dilger.ca>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    10f04d40
quota_tree.c 18.2 KB