summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-09-04 14:06:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-09 12:21:26 -0700
commit82335226733fdf82ee3f231c08269a17fd62a3fc (patch)
treec1afc248123988ca32d469620e60090341930904 /kernel
parent2023c00d650dfa409e58539596aca7d9deded824 (diff)
downloadlwn-82335226733fdf82ee3f231c08269a17fd62a3fc.tar.gz
lwn-82335226733fdf82ee3f231c08269a17fd62a3fc.zip
udf: Avoid infinite loop when processing indirect ICBs
commit c03aa9f6e1f938618e6db2e23afef0574efeeb65 upstream. We did not implement any bound on number of indirect ICBs we follow when loading inode. Thus corrupted medium could cause kernel to go into an infinite loop, possibly causing a stack overflow. Fix the possible stack overflow by removing recursion from __udf_read_inode() and limit number of indirect ICBs we follow to avoid infinite loops. Signed-off-by: Jan Kara <jack@suse.cz> Cc: Chuck Ebbert <cebbert.lkml@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions