commit | c95346ac918c5badf51b9a7ac58a26d3bd5bb224 | [log] [tgz] |
---|---|---|
author | Andrew Price <anprice@redhat.com> | Mon Mar 11 16:40:36 2024 +0100 |
committer | Andreas Gruenbacher <agruenba@redhat.com> | Mon Mar 11 17:11:18 2024 +0100 |
tree | 23318b896bd0e2aca3387de5806cd39f58fde727 | |
parent | e8f897f4afef0031fe618a8e94127a0934896aba [diff] |
gfs2: Fix invalid metadata access in punch_hole 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>