]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/xfs/xfs_log_recover.c
[XFS] XFS: Check for valid transaction headers in recovery
authorDavid Chinner <david@fromorbit.com>
Thu, 30 Oct 2008 06:40:09 +0000 (17:40 +1100)
committerLachlan McIlroy <lachlan@sgi.com>
Thu, 30 Oct 2008 06:40:09 +0000 (17:40 +1100)
commit5a792c4579af8466246408e38fd4eff45d8493b8
tree33b9d578dc42fe47bf8fff9ca60326cf9a22bef0
parent783a2f656f9674c31d4019708a94af93fa1d1c22
[XFS] XFS: Check for valid transaction headers in recovery

When we are about to add a new item to a transaction in recovery, we need
to check that it is valid first. Currently we just assert that header
magic number matches, but in production systems that is not present and we
add a corrupted transaction to the list to be processed. This results in a
kernel oops later when processing the corrupted transaction.

Instead, if we detect a corrupted transaction, abort recovery and leave
the user to clean up the mess that has occurred.

SGI-PV: 988145

SGI-Modid: xfs-linux-melb:xfs-kern:32356a

Signed-off-by: David Chinner <david@fromorbit.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/xfs_log_recover.c