diff options
author | Jan Kara <jack@suse.cz> | 2006-08-15 13:56:26 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-08-22 12:04:55 -0700 |
commit | 7127be29378b1230eb8dd8b84f18d6b69c56e959 (patch) | |
tree | 342758b9e597d50e73dc30c1347f253f028b49d0 /fs/udf/super.c | |
parent | 96ec9da385cf72c5f775e5f163420ea92e66ded2 (diff) |
Fix possible UDF deadlock and memory corruption (CVE-2006-4145)
UDF code is not really ready to handle extents larger that 1GB. This is
the easy way to forbid creating those.
Also truncation code did not count with the case when there are no
extents in the file and we are extending the file.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/udf/super.c')
-rw-r--r-- | fs/udf/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index e45789fe38e..73fc0d8ae8b 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -1653,7 +1653,7 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent) iput(inode); goto error_out; } - sb->s_maxbytes = MAX_LFS_FILESIZE; + sb->s_maxbytes = 1<<30; return 0; error_out: |