From: Jan Kara Date: Thu, 4 Sep 2014 12:06:55 +0000 (+0200) Subject: udf: Avoid infinite loop when processing indirect ICBs X-Git-Tag: fixes-for-v3.18-merge-window~153^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c03aa9f6e1f938618e6db2e23afef0574efeeb65;p=pandora-kernel.git udf: Avoid infinite loop when processing indirect ICBs 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 --- Reading git-diff-tree failed