kernel_samsung_a53x/fs/gfs2
Andrew Price 4eb80b13fc 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-11-19 11:32:43 +01:00
..
acl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aops.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aops.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bmap.c gfs2: Fix invalid metadata access in punch_hole 2024-11-19 11:32:43 +01:00
bmap.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dentry.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dir.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dir.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
export.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
file.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gfs2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
glock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
glock.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
glops.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
glops.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
incore.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inode.c gfs2: Silence "suspicious RCU usage in gfs2_permission" warning 2024-11-18 11:43:19 +01:00
inode.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lock_dlm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
log.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
log.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lops.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lops.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meta_io.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meta_io.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ops_fstype.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
quota.c gfs2: ignore negated quota changes 2024-11-18 11:43:15 +01:00
quota.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
recovery.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
recovery.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rgrp.c gfs2: Fix kernel NULL pointer dereference in gfs2_rgrp_dump 2024-11-18 12:12:27 +01:00
rgrp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
super.c gfs2: fix an oops in gfs2_permission 2024-11-18 11:43:15 +01:00
super.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sys.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sys.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace_gfs2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trans.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trans.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
util.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
util.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xattr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xattr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00