linux-stable/fs/gfs2
Andrew Price 6eb0d6e6d3 gfs2: Fix invalid metadata access in punch_hole
[ Upstream commit c95346ac91 ]

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
..
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile
acl.c gfs2: convert to ctime accessor functions 2023-07-24 10:29:59 +02:00
acl.h
aops.c gfs2 fixes 2023-09-05 13:00:28 -07:00
aops.h
bmap.c gfs2: Fix invalid metadata access in punch_hole 2024-05-17 12:02:10 +02:00
bmap.h
dentry.c
dir.c gfs2: convert to ctime accessor functions 2023-07-24 10:29:59 +02:00
dir.h
export.c
file.c dlm for 6.6 2023-08-31 15:02:12 -07:00
gfs2.h
glock.c gfs2: fix glock shrinker ref issues 2023-09-18 16:00:50 +02:00
glock.h gfs2: Remove LM_FLAG_PRIORITY flag 2023-09-05 15:58:16 +02:00
glops.c gfs2: Fix another freeze/thaw hang 2023-09-18 16:00:49 +02:00
glops.h
incore.h gfs2: change qd_slot_count to qd_slot_ref 2023-09-05 15:58:18 +02:00
inode.c gfs2: Silence "suspicious RCU usage in gfs2_permission" warning 2023-11-28 17:19:49 +00:00
inode.h
lock_dlm.c gfs2: Remove LM_FLAG_PRIORITY flag 2023-09-05 15:58:16 +02:00
log.c gfs2: Sanitize kthread stopping 2023-09-05 15:58:17 +02:00
log.h
lops.c gfs2: Use mapping->gfp_mask for metadata inodes 2023-09-05 15:58:15 +02:00
lops.h
main.c gfs2: Rename "freeze_workqueue" to "gfs2_freeze" 2023-09-05 15:58:17 +02:00
meta_io.c
meta_io.h
ops_fstype.c gfs2: don't withdraw if init_threads() got interrupted 2023-11-28 17:20:11 +00:00
quota.c gfs2: fix kernel BUG in gfs2_quota_cleanup 2024-01-25 15:35:17 -08:00
quota.h gfs2: Fix quota=quiet oversight 2023-09-18 16:26:24 +02:00
recovery.c gfs2: Rename "gfs_recovery" workqueue to "gfs2_recovery" 2023-09-05 15:58:17 +02:00
recovery.h gfs2: Rename "gfs_recovery" workqueue to "gfs2_recovery" 2023-09-05 15:58:17 +02:00
rgrp.c gfs2: Fix kernel NULL pointer dereference in gfs2_rgrp_dump 2024-01-25 15:35:17 -08:00
rgrp.h
super.c gfs2: Fix slab-use-after-free in gfs2_qd_dealloc 2023-11-28 17:19:47 +00:00
super.h gfs2: Fix asynchronous thread destruction 2023-09-05 15:58:17 +02:00
sys.c gfs2 fixes 2023-09-05 13:00:28 -07:00
sys.h
trace_gfs2.h
trans.c gfs2: Fix freeze consistency check in gfs2_trans_add_meta 2023-08-07 18:40:51 +02:00
trans.h
util.c gfs2: Fix withdraw race 2023-09-05 15:58:17 +02:00
util.h gfs2: gfs2_freeze_lock_shared cleanup 2023-07-03 22:30:26 +02:00
xattr.c gfs2: convert to ctime accessor functions 2023-07-24 10:29:59 +02:00
xattr.h