udf: limit the maximum number of TD redirections
authorVegard Nossum <vegard.nossum@oracle.com>
Thu, 10 Dec 2015 16:13:41 +0000 (17:13 +0100)
committerJan Kara <jack@suse.cz>
Mon, 14 Dec 2015 19:13:36 +0000 (20:13 +0100)
commite7a4eb861203b605c6428ec29e0b5e3c3f4f537f
tree0ce3fe22c7c0013f7ba9b7b9308bfb2f91cb4dc1
parent331221fac721788615dd9d5b27f710f7c758d60a
udf: limit the maximum number of TD redirections

Filesystem fuzzing revealed that we could get stuck in the
udf_process_sequence() loop.

The maximum limit was chosen arbitrarily but fixes the problem I saw.

Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c