Andreas Gruenbacher 5e43db2d8c 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:14:53 +00:00
..
2023-01-19 09:24:28 +01:00
2023-01-19 09:24:27 +01:00
2023-09-19 12:30:13 +02:00
2023-06-06 18:35:06 +02:00
2023-04-18 14:40:12 +02:00
2022-08-06 14:44:49 -07:00
2023-08-07 18:42:04 +02:00
2023-10-06 13:16:17 +02:00
2023-10-06 13:15:45 +02:00
2023-09-19 12:30:13 +02:00
2023-07-04 11:45:16 -07:00
2023-11-28 17:14:51 +00:00
2023-11-28 17:14:51 +00:00
2023-07-03 22:25:02 +02:00
2023-07-03 22:30:48 +02:00
2023-07-03 22:30:26 +02:00
2023-03-06 09:57:12 +01:00