]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: catch bad block numbers freeing extents.
authorDave Chinner <dchinner@redhat.com>
Fri, 8 Apr 2011 02:45:07 +0000 (12:45 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 8 Apr 2011 02:45:07 +0000 (12:45 +1000)
commit21d2474d1df80a0eb9996bd34dd11e8530d0581a
tree512dba387c91b778c4e2b9fafa42bfef7f074bb7
parente798a5da6aaa2ac3083d900c4a0aca326437f4bf
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 <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_alloc.c