Eric Sandeen
10e6e65dfc
xfs: be more forgiving of a v4 secondary sb w/ junk in v5 fields
...
Today, if xfs_sb_read_verify encounters a v4 superblock
with junk past v4 fields which includes data in sb_crc,
it will be treated as a failing checksum and a significant
corruption.
There are known prior bugs which leave junk at the end
of the V4 superblock; we don't need to actually fail the
verification in this case if other checks pan out ok.
So if this is a secondary superblock, and the primary
superblock doesn't indicate that this is a V5 filesystem,
don't treat this as an actual checksum failure.
We should probably check the garbage condition as
we do in xfs_repair, and possibly warn about it
or self-heal, but that's a different scope of work.
Stable folks: This can go back to v3.10, which is what
introduced the sb CRC checking that is tripped up by old,
stale, incorrect V4 superblocks w/ unzeroed bits.
Cc: stable@vger.kernel.org
Signed-off-by: Eric Sandeen <sandeen@redhat.com >
Acked-by: Dave Chinner <david@fromorbit.com >
Reviewed-by: Mark Tinguely <tinguely@sgi.com >
Signed-off-by: Ben Myers <bpm@sgi.com >
2013-10-30 16:38:29 -05:00
..
2013-05-07 18:45:36 -05:00
2013-09-10 13:57:03 -05:00
2013-09-10 13:57:03 -05:00
2013-10-30 13:37:38 -05:00
2013-05-07 18:45:36 -05:00
2012-11-19 20:11:24 -06:00
2013-10-23 16:28:49 -05:00
2013-06-06 10:52:15 -05:00
2013-10-23 14:11:30 -05:00
2013-10-30 13:59:56 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 14:11:30 -05:00
2013-10-30 15:44:51 -05:00
2013-09-04 09:23:46 -04:00
2013-10-30 13:47:22 -05:00
2013-10-30 13:59:56 -05:00
2013-10-23 14:21:40 -05:00
2013-10-30 13:47:22 -05:00
2013-10-30 13:59:56 -05:00
2013-10-23 14:21:40 -05:00
2013-10-23 16:28:49 -05:00
2013-08-12 16:53:39 -05:00
2013-10-30 13:59:56 -05:00
2013-10-30 13:59:56 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-21 16:57:03 -05:00
2013-10-23 16:28:49 -05:00
2013-08-12 16:58:37 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-30 13:59:56 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:17:44 -05:00
2013-09-10 18:56:31 -04:00
2012-11-19 20:11:24 -06:00
2013-10-30 13:49:18 -05:00
2013-10-30 13:37:38 -05:00
2013-10-30 13:59:56 -05:00
2013-10-30 13:48:41 -05:00
2013-07-25 10:41:42 -05:00
2013-10-30 13:49:18 -05:00
2013-10-30 13:57:14 -05:00
2013-10-30 13:49:18 -05:00
2013-10-30 15:53:14 -05:00
2013-10-30 13:47:22 -05:00
2013-10-30 13:49:18 -05:00
2013-10-30 13:49:18 -05:00
2013-10-30 13:49:18 -05:00
2013-10-30 13:49:18 -05:00
2013-10-23 16:28:49 -05:00
2013-10-30 13:59:56 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 14:11:30 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:17:44 -05:00
2013-08-12 16:07:13 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-08-12 17:00:11 -05:00
2013-10-23 16:28:49 -05:00
2013-10-08 14:28:09 -05:00
2013-10-23 16:28:49 -05:00
2012-11-08 15:34:59 -06:00
2013-10-30 13:59:56 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-09-12 16:13:41 -07:00
2013-10-23 16:17:44 -05:00
2013-08-12 16:10:35 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 14:11:30 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-08-12 16:05:19 -05:00
2013-10-23 16:28:49 -05:00
2013-10-30 13:37:38 -05:00
2012-05-14 16:20:54 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-08-12 16:56:06 -05:00
2013-10-23 16:28:49 -05:00
2013-10-01 15:42:34 -05:00
2013-10-30 15:44:51 -05:00
2013-10-21 16:57:03 -05:00
2013-10-23 16:28:49 -05:00
2013-08-20 15:30:23 -05:00
2013-10-23 16:17:44 -05:00
2013-10-23 14:11:30 -05:00
2013-10-23 16:17:44 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-30 16:01:00 -05:00
2013-10-23 16:17:44 -05:00
2013-10-23 16:17:44 -05:00
2013-05-07 18:45:36 -05:00
2013-10-23 16:28:49 -05:00
2013-10-30 13:43:28 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 14:28:35 -05:00
2013-10-23 14:28:35 -05:00
2012-03-14 11:09:06 -05:00
2013-10-23 14:28:35 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 17:16:32 -05:00
2013-10-23 17:16:32 -05:00
2013-10-30 13:59:56 -05:00
2013-10-30 16:38:29 -05:00
2013-10-23 14:11:30 -05:00
2013-10-23 14:11:30 -05:00
2012-03-14 11:09:06 -05:00
2012-03-14 11:09:06 -05:00
2013-10-30 13:59:56 -05:00
2012-10-17 12:01:25 -05:00
2013-10-23 16:17:44 -05:00
2013-10-23 16:28:49 -05:00
2013-10-08 14:53:02 -05:00
2013-06-17 17:42:25 -05:00
2012-11-08 15:34:59 -06:00
2013-10-23 16:28:49 -05:00
2013-07-09 12:29:12 -07:00
2013-10-23 16:17:44 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:17:44 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:17:44 -05:00
2013-10-23 16:28:49 -05:00
2013-08-12 17:48:08 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-08-22 08:40:24 -05:00
2013-10-08 17:20:41 -05:00
2013-10-23 16:28:49 -05:00
2013-05-07 18:45:36 -05:00