]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
tomoyo: Suppress RCU warning at list_for_each_entry_rcu().
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 16 Dec 2019 10:16:48 +0000 (19:16 +0900)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:25:28 +0000 (16:25 +0100)
commitec84b6110b6c3e49996ace3f0d57476246ce0ad9
treecf9248620492078091d9440b300385aa26f4b4fb
parent8cdb2ac29766fe4989dac01bda57b20d2cc8fff9
tomoyo: Suppress RCU warning at list_for_each_entry_rcu().

BugLink: https://bugs.launchpad.net/bugs/1861085
[ Upstream commit 6bd5ce6089b561f5392460bfb654dea89356ab1b ]

John Garry has reported that allmodconfig kernel on arm64 causes flood of
"RCU-list traversed in non-reader section!!" warning. I don't know what
change caused this warning, but this warning is safe because TOMOYO uses
SRCU lock instead. Let's suppress this warning by explicitly telling that
the caller is holding SRCU lock.

Reported-and-tested-by: John Garry <john.garry@huawei.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
security/tomoyo/common.c
security/tomoyo/domain.c
security/tomoyo/group.c
security/tomoyo/util.c