Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3407572pxt; Tue, 10 Aug 2021 02:57:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDshJJaeinD+iEcTpVYs27LTnfjq0Lh+g85Ax81Yfi5AvUhYV27yCGCXsuXQAMe55dyWsG X-Received: by 2002:a17:906:16cb:: with SMTP id t11mr26390417ejd.16.1628589456112; Tue, 10 Aug 2021 02:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628589456; cv=none; d=google.com; s=arc-20160816; b=yKPMT/jzfnUp/VXRBqs5FukyWJPnUj33bxKE8cHBHuEJpwpoZ068e34YRMvBgS+j8R IIi+8Vl/SMINUZo5no8JtuWcVg6SmBYAGcsE+zKuQHyx3sxjiDA5rz9dPhbMqqbUJd2y e6J1XFzGtx9OwnFUK1Nip88FbaX64dsW3k7J+/sIPORzflbzLRM5vvRio760/OZWDETc LD3JYcJ9/flN2DPY7VycI/Of1ix91M5ipaVSFZk7bv5PlzHa6Uq0csY2lXZXJO+SVPeV NJlYNMKcoHWi1xk6DomK7y2DXcoTpfIi5A3v6NktBtCPH5iA+FjdWnQpGngZTWpo6jNH DfFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4yZNIu6PGRqh0XUsAg6YLnUrC7a2tSubYiI4yoIHuuI=; b=X1Uk3Zo28L8puTG3Irrly75aJa2p9lFyXuhuyWK+XvuqZuZ12ffiDnQnYMT5rIIVqM DksP77iHwAke9Fp0rP0sDrgkfVJHtPyGdXCzMoEGmJiqHbEDTI9EGvv8/E2GIA1d/1HX CC0T1kNS3b2+pnVybllKA/mUeZ4ShP7rJnYPBrl3V4rxQi/j5g+AML+1zYg6HnXHlfke 0JvdCLJI45O5+vxf5ck4MEmbhXShWYdkGov5yJKrR/i5c5xIiK4JYf1gr1cfndNWkeTl 1NZ9ctCBkRWeWyQ1wOAjm4V8+08UnoPES3FP9WHrO06j2OfgtGU0TB9gJcDgR1SCh0DB TEkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LSRN8HbW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si20415683edv.399.2021.08.10.02.57.10; Tue, 10 Aug 2021 02:57:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LSRN8HbW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237848AbhHJItE (ORCPT + 99 others); Tue, 10 Aug 2021 04:49:04 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:49568 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237420AbhHJIsy (ORCPT ); Tue, 10 Aug 2021 04:48:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628585312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4yZNIu6PGRqh0XUsAg6YLnUrC7a2tSubYiI4yoIHuuI=; b=LSRN8HbWQ9gyE7lFu5uFwKZbtFWXIcDagC7LpcfHSzqN0ytZcCO68/lanTWBiek/yxUdaZ L+OEeURoLJ1lTQ7uQblnbOfXGbFDSa4OAZEqARcGBo3bIx8u/O2U8EWjHkn3/2EjlZD5jP v8SoNLGBm9xizJNc4q//o8AWdU6T9yQ= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-228-KDqQqUCTO-6cuoUtzY87PA-1; Tue, 10 Aug 2021 04:48:31 -0400 X-MC-Unique: KDqQqUCTO-6cuoUtzY87PA-1 Received: by mail-ed1-f72.google.com with SMTP id c1-20020aa7df010000b02903bb5c6f746eso10375251edy.10 for ; Tue, 10 Aug 2021 01:48:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4yZNIu6PGRqh0XUsAg6YLnUrC7a2tSubYiI4yoIHuuI=; b=n3ZYNtRTz0RjJQasI+/z6mIEjF496epkdBE6W6mVMkH3QywvFrfAmm9WXkEyZ8DyAP fUZ+HwQKIuSHNJal6sCDLLjGVxiJuc3AnEdP9q2IGn4bo+To6LHLWWkQMLaX6WBdWkeF qauuRiw0mMH3kaWron8NddZ1ZjIeuit/kPmHjFjKMVoTUyd8PLCVXYJPmWQRrSFmEWRF cMJ0EOli+6oouOFD+I+L55t7c9yeW1jBaby7QQHetTR0fDGr+e8zV5JNXk7dtw3sPIpR 3WwNa+zk+augXYbF9t6x0tw7G1gEa0ccp8VRm/P3tAga07YixL4n+PtAvUQMBbQSniEG RUPg== X-Gm-Message-State: AOAM5302LntF1op43quhgfce8NR15eVRbwCmQzWhUL1kM413peP7WDeh rRsge6OhPPmBe94RH2BDebkRkcIcbR/k8TUqMeIpHUi/wCyiSv7qJVaAkNWEfJtc9qlDZ4fF26B VuGnVEl5X8l2RYig8velpd1Di X-Received: by 2002:a17:906:405:: with SMTP id d5mr26430800eja.189.1628585310190; Tue, 10 Aug 2021 01:48:30 -0700 (PDT) X-Received: by 2002:a17:906:405:: with SMTP id d5mr26430786eja.189.1628585310038; Tue, 10 Aug 2021 01:48:30 -0700 (PDT) Received: from localhost.localdomain.com ([151.29.52.108]) by smtp.gmail.com with ESMTPSA id la23sm6557667ejc.63.2021.08.10.01.48.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 01:48:29 -0700 (PDT) From: Juri Lelli To: paulmck@kernel.org, josh@joshtriplett.org Cc: linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, peterz@infradead.org, bigeasy@linutronix.de, tglx@linutronix.de, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, joel@joelfernandes.org, rcu@vger.kernel.org, Juri Lelli Subject: [PATCH v2 2/2] rcu: Make rcu update module parameters world-readable Date: Tue, 10 Aug 2021 10:48:16 +0200 Message-Id: <20210810084816.155203-3-juri.lelli@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210810084816.155203-1-juri.lelli@redhat.com> References: <20210810084816.155203-1-juri.lelli@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Juri Lelli --- kernel/rcu/update.c | 6 +++--- 1 file 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 */ -- 2.31.1