Darrick J. Wong
bc1f8a86e3
xfs: fix zero byte checking in the superblock scrubber
...
commit c004a793e0ec34047c3bd423bcd8966f5fac88dc upstream.
The logic to check that the region past the end of the superblock is all
zeroes is wrong -- we don't want to check only the bytes past the end of
the maximally sized ondisk superblock structure as currently defined in
xfs_format.h; we want to check the bytes beyond the end of the ondisk as
defined by the feature bits.
Port the superblock size logic from xfs_repair and then put it to use in
xfs_scrub.
Cc: <stable@vger.kernel.org> # v4.15
Fixes: 21fb4cb1981ef7 ("xfs: scrub the secondary superblocks")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-27 14:02:01 +01:00
..
2024-12-27 14:02:01 +01:00
2024-12-27 14:02:01 +01:00
2024-07-02 11:36:54 -07:00
2024-07-02 11:36:55 -07:00
2024-04-23 07:46:51 -07:00
2023-01-19 09:24:27 +01:00
2024-10-15 11:37:42 +02:00
2024-02-22 12:32:18 -08:00
2024-05-27 15:55:52 +05:30
2024-04-23 07:46:57 -07:00
2024-07-29 09:32:53 +05:30
2022-07-14 12:14:33 -06:00
2024-09-03 10:07:47 +05:30
2024-02-22 12:44:21 -08:00
2024-12-19 18:13:08 +01:00
2024-10-15 11:37:42 +02:00
2024-10-22 13:37:19 +02:00
2024-07-02 11:36:54 -07:00
2022-04-21 10:46:40 +10:00
2024-09-09 16:39:12 -07:00
2024-02-22 12:43:36 -08:00
2024-05-21 08:34:51 -07:00
2024-09-08 20:47:40 +02:00
2023-04-11 19:05:05 -07:00
2023-03-19 09:55:49 -07:00
2024-04-26 11:21:46 +05:30
2024-09-01 08:58:20 -07:00
2023-10-04 09:24:02 +11:00
2023-11-22 23:39:36 +05:30
2024-07-02 11:36:54 -07:00
2021-08-06 11:05:36 -07:00
2024-05-03 11:20:06 +05:30
2024-04-15 14:59:01 -07:00
2024-07-02 11:37:01 -07:00
2024-07-02 11:37:01 -07:00
2024-04-15 14:54:19 -07:00
2023-02-09 18:36:17 -08:00
2024-04-15 14:54:24 -07:00
2024-04-15 14:54:17 -07:00
2024-09-23 09:35:36 -07:00
2024-09-01 08:58:19 -07:00
2024-04-23 07:47:00 -07:00
2024-04-23 07:47:00 -07:00
2024-04-22 12:53:34 +05:30
2023-12-15 10:03:32 -08:00
2024-07-02 11:37:03 -07:00
2024-07-02 11:37:03 -07:00
2024-12-19 18:13:08 +01:00
2024-04-15 14:54:10 -07:00
2024-10-30 11:27:18 +01:00
2023-02-13 09:14:56 +11:00
2024-12-27 14:02:00 +01:00
2024-09-01 08:58:19 -07:00
2024-10-22 13:37:18 +02:00
2024-04-22 18:00:47 +05:30
2023-12-15 10:03:28 -08:00
2024-08-12 22:01:05 -04:00
2024-04-23 07:47:00 -07:00
2024-04-23 16:55:17 -07:00
2024-02-22 12:30:45 -08:00
2024-02-22 12:30:45 -08:00
2024-10-09 10:05:10 +02:00
2023-09-11 08:39:03 -07:00
2024-02-13 18:07:34 +05:30
2021-10-22 16:04:20 -07:00
2024-02-13 18:07:34 +05:30
2024-07-04 12:46:47 +05:30
2023-06-05 04:08:27 +10:00
2024-10-30 11:27:18 +01:00
2024-10-30 11:27:18 +01:00
2024-04-23 07:47:00 -07:00
2023-09-11 08:13:17 +00:00
2024-10-30 11:27:18 +01:00
2024-04-23 07:47:00 -07:00
2024-11-01 07:45:00 -10:00
2022-11-29 09:09:17 +11:00
2024-09-03 15:01:24 +02:00
2024-04-15 14:54:09 -07:00
2024-04-15 14:58:48 -07:00
2023-01-19 09:24:29 +01:00
2023-04-11 18:59:55 -07:00
2022-07-14 11:47:42 +10:00
2024-05-27 15:54:24 +05:30
2022-04-13 07:02:44 +00:00
2024-10-02 17:23:23 -04:00
2024-10-07 08:00:11 +02:00
2024-07-04 12:46:47 +05:30
2024-10-22 13:37:18 +02:00
2024-09-03 10:07:39 +05:30
2024-10-07 08:00:11 +02:00
2022-04-21 16:45:03 +10:00
2022-05-27 10:31:34 +10:00
2024-10-22 13:37:18 +02:00
2024-09-03 10:07:46 +05:30
2024-09-03 10:07:42 +05:30
2023-12-07 14:34:26 +05:30
2023-01-19 09:24:02 +01:00
2024-07-01 09:32:29 +05:30
2024-09-01 08:58:20 -07:00
2024-09-01 08:58:20 -07:00
2024-09-01 08:58:20 -07:00
2024-05-03 11:15:03 +05:30
2024-09-01 08:58:20 -07:00
2024-07-02 11:37:07 -07:00
2024-07-02 11:37:07 -07:00
2024-10-09 10:05:10 +02:00
2024-10-09 10:05:10 +02:00
2024-07-02 11:37:05 -07:00
2024-07-02 11:37:05 -07:00
2024-12-19 18:13:08 +01:00
2023-12-22 11:18:11 +05:30
2024-02-22 12:43:40 -08:00
2024-02-22 12:43:40 -08:00
2024-09-20 17:53:17 -07:00
2023-08-10 07:48:07 -07:00
2024-09-01 08:58:19 -07:00
2024-02-22 12:45:17 -08:00
2024-07-24 20:59:29 +02:00
2023-12-15 10:03:28 -08:00
2024-07-04 12:46:47 +05:30
2023-02-10 08:59:48 -08:00
2024-07-04 12:46:46 +05:30
2024-10-30 11:27:18 +01:00
2024-08-14 21:19:34 +05:30
2024-02-22 12:43:36 -08:00
2024-04-15 14:59:01 -07:00
2024-07-04 12:46:46 +05:30
2024-12-19 18:13:09 +01:00
2024-07-04 12:46:47 +05:30
2024-07-29 09:26:20 +05:30
2024-04-23 07:46:50 -07:00
2024-07-02 11:36:54 -07:00