acrn-kernel/fs/gfs2
Andreas Gruenbacher 58278cc71d 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>
2023-11-28 17:07:04 +00:00
..
Kconfig
Makefile
acl.c
acl.h
aops.c gfs2: low-memory forced flush fixes 2023-09-19 12:27:58 +02:00
aops.h
bmap.c
bmap.h
dentry.c
dir.c
dir.h
export.c
file.c
gfs2.h
glock.c
glock.h
glops.c
glops.h
incore.h
inode.c gfs2: Silence "suspicious RCU usage in gfs2_permission" warning 2023-11-28 17:07:04 +00:00
inode.h
lock_dlm.c
log.c gfs2: low-memory forced flush fixes 2023-09-19 12:27:58 +02:00
log.h
lops.c
lops.h
main.c
meta_io.c
meta_io.h
ops_fstype.c
quota.c gfs2: ignore negated quota changes 2023-11-28 17:07:02 +00:00
quota.h
recovery.c
recovery.h
rgrp.c
rgrp.h
super.c gfs2: fix an oops in gfs2_permission 2023-11-28 17:07:02 +00:00
super.h
sys.c
sys.h
trace_gfs2.h
trans.c
trans.h
util.c
util.h
xattr.c
xattr.h