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>
Thu, 30 Apr 2009 05:26:14 +0000 (00:26 -0500)
commitb9ec9068d79e039507a247ebc5bc9c0ce53654ce
treee90838da3d37d9a5ab05301b421ad85e5514acba
parentdef6b3ba56b637d58126ef67fc19bab57945fcc4
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