Commit 7fb40bde authored by Vegard Nossum's avatar Vegard Nossum Committed by Willy Tarreau
Browse files

udf: limit the maximum number of indirect extents in a row



commit b0918d9f upstream.

udf_next_aext() just follows extent pointers while extents are marked as
indirect. This can loop forever for corrupted filesystem. Limit number
the of indirect extents we are willing to follow in a row.

[JK: Updated changelog, limit, style]

Signed-off-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
Cc: Jan Kara <jack@suse.com>
Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
[wt: udf_error() instead of udf_err() in 2.6.32]
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent 140d2462
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment