Andrew Price 9ad9c16eb4 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 11:42:39 +02:00
..
2021-09-22 11:48:02 +02:00
2024-04-13 12:50:05 +02:00
2023-09-23 10:48:12 +02:00
2023-09-23 10:48:17 +02:00
2022-06-14 16:59:24 +02:00
2024-04-13 12:50:14 +02:00
2023-01-18 11:30:40 +01:00
2021-12-14 10:18:07 +01:00