aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_printf.c
diff options
context:
space:
mode:
authorMadhuparna Bhowmik <[email protected]>2020-04-30 16:02:05 +0000
committerMimi Zohar <[email protected]>2020-05-08 01:36:32 +0000
commit770f60586d2af0590be263f55fd079226313922c (patch)
treec0b87532373b1f8135b090a9722328d018a5fb3d /lib/test_printf.c
parentima: Fix return value of ima_write_policy() (diff)
downloadkernel-770f60586d2af0590be263f55fd079226313922c.tar.gz
kernel-770f60586d2af0590be263f55fd079226313922c.zip
evm: Fix RCU list related warnings
This patch fixes the following warning and few other instances of traversal of evm_config_xattrnames list: [ 32.848432] ============================= [ 32.848707] WARNING: suspicious RCU usage [ 32.848966] 5.7.0-rc1-00006-ga8d5875ce5f0b #1 Not tainted [ 32.849308] ----------------------------- [ 32.849567] security/integrity/evm/evm_main.c:231 RCU-list traversed in non-reader section!! Since entries are only added to the list and never deleted, use list_for_each_entry_lockless() instead of list_for_each_entry_rcu for traversing the list. Also, add a relevant comment in evm_secfs.c to indicate this fact. Reported-by: kernel test robot <[email protected]> Suggested-by: Paul E. McKenney <[email protected]> Signed-off-by: Madhuparna Bhowmik <[email protected]> Acked-by: Paul E. McKenney <[email protected]> (RCU viewpoint) Signed-off-by: Mimi Zohar <[email protected]>
Diffstat (limited to 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions