udf: Limit file size to 4TB
authorJan Kara <jack@suse.cz>
Wed, 25 Jan 2023 16:56:06 +0000 (17:56 +0100)
committerJan Kara <jack@suse.cz>
Thu, 26 Jan 2023 15:46:37 +0000 (16:46 +0100)
commitc2efd13a2ed4f29bf9ef14ac2fbb7474084655f8
tree707e9cf056470b44ff8f10434effaa0f253c50d7
parentf386c802a6fda8f9fe4a5cf418c49aa84dfc52e4
udf: Limit file size to 4TB

UDF disk format supports in principle file sizes up to 1<<64-1. However
the file space (including holes) is described by a linked list of
extents, each of which can have at most 1GB. Thus the creation and
handling of extents gets unusably slow beyond certain point. Limit the
file size to 4TB to avoid locking up the kernel too easily.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c