]> git.baikalelectronics.ru Git - 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)
committerTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 16 Dec 2019 14:02:27 +0000 (23:02 +0900)
commit06062a2ad3446a6fbe543a73b76525a177a4d11f
tree251dc2e67c7d663494bfcbff62a8b4083029a306
parent81a13ac91fb8deb975efb78cb4a562b936257eed
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