aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-08-17 11:49:57 +0200
committerJan Kara <jack@suse.cz>2014-08-19 18:29:30 +0200
commit410dd3cf4c9b36f27ed4542ee18b1af5e68645a4 (patch)
treebe3af2da6fcc9bd0ef2518e6d344d726670b2df7 /fs/ext3
parentudf: avoid unneeded up_write when fail to add entry in ->symlink (diff)
downloadlinux-dev-410dd3cf4c9b36f27ed4542ee18b1af5e68645a4.tar.xz
linux-dev-410dd3cf4c9b36f27ed4542ee18b1af5e68645a4.zip
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 <cevans@google.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext3')
0 files changed, 0 insertions, 0 deletions