From: Jan Kara Date: Sun, 17 Aug 2014 09:49:57 +0000 (+0200) Subject: isofs: Fix unbounded recursion when processing relocated directories X-Git-Tag: omap-for-v3.17/fixes-against-rc2~34^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=410dd3cf4c9b36f27ed4542ee18b1af5e68645a4;p=pandora-kernel.git isofs: Fix unbounded recursion when processing relocated directories We did not check relocated directory in any way when processing Rock Ridge 'CL' tag. Thus a corrupted isofs image can possibly have a CL entry pointing to another CL entry leading to possibly unbounded recursion in kernel code and thus stack overflow or deadlocks (if there is a loop created from CL entries). Fix the problem by not allowing CL entry to point to a directory entry with CL entry (such use makes no good sense anyway) and by checking whether CL entry doesn't point to itself. CC: stable@vger.kernel.org Reported-by: Chris Evans Signed-off-by: Jan Kara --- Reading git-diff-tree failed