kernel_samsung_a53x/fs/gfs2
Andreas Gruenbacher 28f8bab41d gfs2: Silence "suspicious RCU usage in gfs2_permission" warning
[ Upstream commit 074d7306a4fe22fcac0b53f699f92757ab1cee99 ]

Commit 0abd1557e21c added rcu_dereference() for dereferencing ip->i_gl
in gfs2_permission.  This now causes lockdep to complain when
gfs2_permission is called in non-RCU context:

    WARNING: suspicious RCU usage in gfs2_permission

Switch to rcu_dereference_check() and check for the MAY_NOT_BLOCK flag
to shut up lockdep when we know that dereferencing ip->i_gl is safe.

Fixes: 0abd1557e21c ("gfs2: fix an oops in gfs2_permission")
Reported-by: syzbot+3e5130844b0c0e2b4948@syzkaller.appspotmail.com
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 11:43:19 +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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03: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