From: Dave Chinner Date: Fri, 8 Apr 2011 02:45:07 +0000 (+1000) Subject: xfs: catch bad block numbers freeing extents. X-Git-Tag: v2.6.39-rc3~1^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be65b18a10e62321c5ba09a1dc0f70babeb0eba1;p=pandora-kernel.git xfs: catch bad block numbers freeing extents. A fuzzed filesystem crashed a kernel when freeing an extent with a block number beyond the end of the filesystem. Convert all the debug asserts in xfs_free_extent() to active checks so that we catch bad extents and return that the filesytsem is corrupted rather than crashing. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder --- Reading git-diff-tree failed