summaryrefslogtreecommitdiff
path: root/kernel/rcu
diff options
context:
space:
mode:
authorJuri Lelli <juri.lelli@redhat.com>2021-08-10 11:48:16 +0300
committerPaul E. McKenney <paulmck@kernel.org>2021-09-14 02:32:46 +0300
commit1eac0075ebeecbf5c972f575ac448a0ea92e4f3a (patch)
tree7cc3b7258432d4b3a41fed2cfbc9350061d59b35 /kernel/rcu
parentebb6d30d9ed1fe7137486e1be2ae9d621e918c4a (diff)
downloadlinux-1eac0075ebeecbf5c972f575ac448a0ea92e4f3a.tar.xz
rcu: Make rcu update module parameters world-readable
rcu update module parameters currently don't appear in sysfs and this is a serviceability issue as it might be needed to access their default values at runtime. Fix this issue by changing rcu update module parameters permissions to world-readable. Suggested-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Juri Lelli <juri.lelli@redhat.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu')
-rw-r--r--kernel/rcu/update.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c
index bd551134e2f4..94282dc12bab 100644
--- a/kernel/rcu/update.c
+++ b/kernel/rcu/update.c
@@ -54,11 +54,11 @@
#define MODULE_PARAM_PREFIX "rcupdate."
#ifndef CONFIG_TINY_RCU
-module_param(rcu_expedited, int, 0);
-module_param(rcu_normal, int, 0);
+module_param(rcu_expedited, int, 0444);
+module_param(rcu_normal, int, 0444);
static int rcu_normal_after_boot = IS_ENABLED(CONFIG_PREEMPT_RT);
#if !defined(CONFIG_PREEMPT_RT) || defined(CONFIG_NO_HZ_FULL)
-module_param(rcu_normal_after_boot, int, 0);
+module_param(rcu_normal_after_boot, int, 0444);
#endif
#endif /* #ifndef CONFIG_TINY_RCU */