Andrew Price 6eb0d6e6d3 gfs2: Fix invalid metadata access in punch_hole
[ Upstream commit c95346ac918c5badf51b9a7ac58a26d3bd5bb224 ]

In punch_hole(), when the offset lies in the final block for a given
height, there is no hole to punch, but the maximum size check fails to
detect that.  Consequently, punch_hole() will try to punch a hole beyond
the end of the metadata and fail.  Fix the maximum size check.

Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-05-17 12:02:10 +02:00
..
2023-01-19 09:24:27 +01:00
2023-09-05 13:00:28 -07:00
2023-04-18 14:40:12 +02:00
2023-08-31 15:02:12 -07:00
2023-09-18 16:00:50 +02:00
2023-09-05 15:58:16 +02:00
2023-09-18 16:00:49 +02:00
2023-08-02 09:13:09 -06:00
2023-09-05 15:58:16 +02:00
2023-09-05 15:58:17 +02:00
2023-09-18 16:26:24 +02:00
2023-09-05 13:00:28 -07:00
2023-09-05 15:58:17 +02:00
2023-07-03 22:30:26 +02:00