From: Dave Chinner Date: Tue, 29 Oct 2013 11:11:56 +0000 (+1100) Subject: xfs: validity check the directory block leaf entry count X-Git-Tag: v3.13-rc1~87^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a62936210525da2f46ae264e0bf9680eafac176e;p=pandora-kernel.git xfs: validity check the directory block leaf entry count The directory block format verifier fails to check that the leaf entry count is in a valid range, and so if it is corrupted then it can lead to derefencing a pointer outside the block buffer. While we can't exactly validate the count without first walking the directory block, we can ensure the count lands in the valid area within the directory block and hence avoid out-of-block references. Signed-off-by: Dave Chinner Reviewed-by: Ben Myers Signed-off-by: Ben Myers --- Reading git-diff-tree failed