Darrick J. Wong
c004a793e0
xfs: fix zero byte checking in the superblock scrubber
...
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>
2024-12-12 17:45:13 -08:00
..
2023-12-15 10:03:30 -08:00
2024-02-22 12:43:37 -08:00
2024-12-12 17:45:09 -08:00
2024-12-12 17:45:13 -08:00
2024-04-15 14:58:58 -07:00
2024-11-05 13:38:29 -08:00
2024-11-05 13:38:29 -08:00
2024-04-23 16:55:19 -07:00
2024-04-23 16:55:15 -07:00
2024-04-23 16:55:15 -07:00
2024-04-15 14:58:53 -07:00
2024-04-22 12:51:43 +05:30
2024-02-22 12:43:37 -08:00
2024-11-05 13:38:29 -08:00
2024-11-05 13:38:42 -08:00
2024-02-22 12:40:57 -08:00
2023-05-26 13:52:19 -07:00
2024-11-05 13:38:36 -08:00
2024-11-05 13:38:43 -08:00
2024-11-05 13:38:29 -08:00
2024-04-15 14:58:54 -07:00
2024-04-15 14:58:54 -07:00
2024-04-15 14:58:54 -07:00
2024-11-05 13:38:34 -08:00
2024-11-05 13:38:34 -08:00
2024-04-23 16:55:17 -07:00
2024-11-05 13:38:34 -08:00
2024-11-05 13:38:33 -08:00
2023-12-15 10:03:45 -08:00
2024-11-05 13:38:34 -08:00
2024-04-23 16:55:13 -07:00
2023-12-15 10:03:38 -08:00
2024-11-05 13:38:40 -08:00
2024-12-12 17:45:09 -08:00
2024-04-22 18:00:48 +05:30
2024-12-12 17:45:09 -08:00
2024-02-22 12:39:48 -08:00
2024-11-05 13:38:27 -08:00
2024-12-12 17:45:09 -08:00
2024-04-23 16:55:16 -07:00
2024-11-05 13:38:34 -08:00
2024-11-05 13:38:34 -08:00
2024-11-05 13:38:27 -08:00
2024-04-15 14:58:56 -07:00
2024-04-23 16:55:15 -07:00
2024-04-23 16:55:15 -07:00
2024-12-12 17:45:08 -08:00
2024-11-05 13:38:27 -08:00
2024-02-22 12:43:38 -08:00
2024-11-05 13:38:33 -08:00
2024-11-05 13:38:33 -08:00
2024-04-15 14:58:57 -07:00
2023-12-15 10:03:40 -08:00
2024-11-05 13:38:33 -08:00
2024-04-23 16:55:17 -07:00
2024-11-05 13:38:33 -08:00
2024-11-05 13:38:34 -08:00
2024-07-01 09:32:29 +05:30
2023-12-15 10:03:45 -08:00
2023-12-15 10:03:45 -08:00
2024-02-22 12:30:57 -08:00
2024-11-05 13:38:33 -08:00
2024-02-22 12:30:57 -08:00
2024-02-22 12:43:41 -08:00
2024-02-22 12:43:41 -08:00
2024-02-22 12:43:41 -08:00
2024-02-22 12:43:41 -08:00
2024-04-26 11:21:46 +05:30
2024-04-23 07:47:02 -07:00
2024-11-05 13:38:29 -08:00
2024-04-15 14:58:49 -07:00
2024-11-05 13:38:30 -08:00
2024-12-12 17:45:09 -08:00
2024-11-05 13:38:44 -08:00
2024-11-05 13:38:43 -08:00
2024-11-05 13:38:43 -08:00
2024-11-05 13:38:29 -08:00
2024-11-05 13:38:29 -08:00
2024-04-30 09:45:18 +05:30
2024-11-05 13:38:38 -08:00
2023-12-15 10:03:43 -08:00
2024-11-05 13:38:40 -08:00
2024-11-05 13:38:41 -08:00
2024-09-01 08:58:19 -07:00
2024-11-05 13:38:43 -08:00
2024-12-12 17:45:09 -08:00
2024-11-05 13:38:43 -08:00
2023-08-10 07:48:07 -07:00
2024-12-12 17:45:09 -08:00
2024-04-15 14:58:58 -07:00
2024-04-23 16:55:19 -07:00
2024-12-12 17:45:12 -08:00
2024-11-05 13:38:34 -08:00
2024-11-05 13:38:34 -08:00
2024-12-12 17:45:10 -08:00
2024-05-27 15:55:52 +05:30
2024-04-23 16:55:17 -07:00
2024-04-15 14:58:53 -07:00
2024-04-15 14:58:55 -07:00
2024-09-09 16:39:12 -07:00
2024-04-15 14:58:53 -07:00
2024-04-23 16:55:18 -07:00