[XFS] prevent panic during log recovery due to bogus op_hdr length
authorLachlan McIlroy <lachlan@sgi.com>
Thu, 10 Jan 2008 05:43:36 +0000 (16:43 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Thu, 7 Feb 2008 07:20:58 +0000 (18:20 +1100)
commit9742bb93da27737fe490eab2af9fba1efa243dcb
treea5563e9775d42756024bc741d12d139f9a068dcb
parentf71354bc3a96c657a70e36dcf980cbad6c9fc63f
[XFS] prevent panic during log recovery due to bogus op_hdr length

A problem was reported where a system panicked in log recovery due to a
corrupt log record. The cause of the corruption is not known but this
change will at least prevent a crash for this specific scenario. Log
recovery definitely needs some more work in this area.

SGI-PV: 974151
SGI-Modid: xfs-linux-melb:xfs-kern:30318a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
fs/xfs/xfs_log_recover.c