xfs: Check buffer lengths in log recovery
authorDave Chinner <[email protected]>
Thu, 22 Jan 2009 04:37:47 +0000 (15:37 +1100)
committerFelix Blyakher <[email protected]>
Tue, 3 Feb 2009 17:01:32 +0000 (11:01 -0600)
commit6139a2360987f55e4490a7813cf69df74ec8b93a
tree650a4ac7ef9181b0e98cae627728eae2b260c33d
parent6d2160bfe7826aca1c94b4bca77093908a452ae7
xfs: Check buffer lengths in log recovery

Before trying to obtain, read or write a buffer,
check that the buffer length is actually valid. If
it is not valid, then something read in the recovery
process has been corrupted and we should abort
recovery.

Reported-by: Eric Sesterhenn <[email protected]>
Tested-by: Eric Sesterhenn <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Felix Blyakher <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Signed-off-by: Felix Blyakher <[email protected]>
fs/xfs/xfs_log_recover.c