]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: add more checks to superblock validation
authorOlaf Weber <olaf@sgi.com>
Fri, 17 Apr 2009 21:12:45 +0000 (16:12 -0500)
committerFelix Blyakher <felixb@sgi.com>
Wed, 29 Apr 2009 14:24:29 +0000 (09:24 -0500)
commit2c779e272254da6835381c0eb328a1b4d77d3c12
treea04390733906bc8bb9d26c0a8dce12279cbb83cf
parent36ef2370ab7e9a55a6f93813a7cc57958ce1fce2
xfs: add more checks to superblock validation

There had been reports where xfs filesystem was randomly
corrupted with fsfuzzer, and xfs failed to handle it
gracefully. This patch fixes couple of reported problem
by providing additional checks in the superblock
validation routine.

Signed-off-by: Olaf Weber <olaf@sgi.com>
Reviewed-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Felix Blyakher <felixb@sgi.com>
fs/xfs/xfs_mount.c