Files
linux/fs/gfs2
Andreas Gruenbacher c921e1ee70 gfs2: Silence "suspicious RCU usage in gfs2_permission" warning
[ Upstream commit 074d7306a4 ]

Commit 0abd1557e2 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: 0abd1557e2 ("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:19:49 +00:00
..
2023-01-19 09:24:27 +01:00
2023-04-18 14:40:12 +02:00
2023-09-18 16:00:50 +02:00
2023-09-05 15:58:16 +02:00
2023-09-18 16:00:49 +02:00
2023-08-02 09:13:09 -06:00
2023-09-05 15:58:16 +02:00
2023-09-05 15:58:17 +02:00
2023-11-28 17:19:46 +00:00
2023-09-18 16:26:24 +02:00
2023-09-05 15:58:17 +02:00
2023-07-03 22:30:26 +02:00