kernel_samsung_a53x/fs/gfs2
Osama Muhammad 40af965f6c gfs2: Fix kernel NULL pointer dereference in gfs2_rgrp_dump
[ Upstream commit 8877243beafa7c6bfc42022cbfdf9e39b25bd4fa ]

Syzkaller has reported a NULL pointer dereference when accessing
rgd->rd_rgl in gfs2_rgrp_dump().  This can happen when creating
rgd->rd_gl fails in read_rindex_entry().  Add a NULL pointer check in
gfs2_rgrp_dump() to prevent that.

Reported-and-tested-by: syzbot+da0fc229cc1ff4bb2e6d@syzkaller.appspotmail.com
Link: https://syzkaller.appspot.com/bug?extid=da0fc229cc1ff4bb2e6d
Fixes: 72244b6bc752 ("gfs2: improve debug information when lvb mismatches are found")
Signed-off-by: Osama Muhammad <osmtendev@gmail.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:12:27 +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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03: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