OSDN Git Service

tomoyo: Suppress RCU warning at list_for_each_entry_rcu(). tomoyo-fixes-for-5.5
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 16 Dec 2019 10:16:48 +0000 (19:16 +0900)
committerTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 16 Dec 2019 14:02:27 +0000 (23:02 +0900)
commit6bd5ce6089b561f5392460bfb654dea89356ab1b
tree251dc2e67c7d663494bfcbff62a8b4083029a306
parent6f7c41374b62fd80bbd8aae3536c43688c54d95e
tomoyo: Suppress RCU warning at list_for_each_entry_rcu().

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>
security/tomoyo/common.c
security/tomoyo/domain.c
security/tomoyo/group.c
security/tomoyo/util.c