]> Git Repo - linux.git/commit
xfs: catch bad block numbers freeing extents.
authorDave Chinner <[email protected]>
Fri, 8 Apr 2011 02:45:07 +0000 (12:45 +1000)
committerDave Chinner <[email protected]>
Fri, 8 Apr 2011 02:45:07 +0000 (12:45 +1000)
commitbe65b18a10e62321c5ba09a1dc0f70babeb0eba1
tree512dba387c91b778c4e2b9fafa42bfef7f074bb7
parentfd074841cfe01b006465fb9388091012585e8dfb
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 <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
fs/xfs/xfs_alloc.c
This page took 0.05136 seconds and 4 git commands to generate.