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

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: Vegard Nossum <[email protected]>
Cc: [email protected]
Cc: Jan Kara <[email protected]>
Cc: Quentin Casasnovas <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
1 file changed