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)
commit2ac00af7a6d2e65013e6f28bd1f37c0cd98ba134
treea04390733906bc8bb9d26c0a8dce12279cbb83cf
parentf25181f598cf4a8ccc40a51d8b74f8b555ecddee
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