Andrew Price f5d95eead3 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:50:52 +02:00
..
2023-09-19 12:22:56 +02:00
2021-06-29 10:56:51 +02:00
2021-06-29 10:56:51 +02:00
2022-05-01 17:22:30 +02:00
2021-04-29 10:33:35 -07:00
2023-09-19 12:22:56 +02:00
2023-11-28 16:56:20 +00:00
2022-04-08 14:24:10 +02:00
2023-11-28 16:56:20 +00:00