The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@redhat.com>
To: Nicolas Schier <nsc@kernel.org>
Cc: Alexey Gladkov <legion@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	"Eric W. Biederman" <ebiederm@xmission.com>,
	Nathan Chancellor <nathan@kernel.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	Heiko Carstens <hca@linux.ibm.com>,
	Vasily Gorbik <gor@linux.ibm.com>,
	Alexander Gordeev <agordeev@linux.ibm.com>,
	Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	Balbir Singh <bsingharora@gmail.com>,
	Yang Yang <yang.yang29@zte.com.cn>,
	Peter Zijlstra <peterz@infradead.org>,
	Juri Lelli <juri.lelli@redhat.com>,
	Vincent Guittot <vincent.guittot@linaro.org>,
	Kees Cook <kees@kernel.org>,
	Joel Granados <joel.granados@kernel.org>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Shuah Khan <shuah@kernel.org>,
	"Jason A. Donenfeld" <Jason@zx2c4.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH -mm v2 1/1] sysctl: remove CONFIG_PROC_SYSCTL, it just mirrors CONFIG_SYSCTL
Date: Tue, 28 Jul 2026 13:23:25 +0200	[thread overview]
Message-ID: <amiRLeWkJwCl1VBc@redhat.com> (raw)
In-Reply-To: <ame2uP4bveiMADo0@levanger>

On 07/27, Nicolas Schier wrote:
>
> On Mon, Jul 27, 2026 at 04:47:22PM +0200, Oleg Nesterov wrote:
> >
> > -config PROC_SYSCTL
> > +config SYSCTL
> >  	bool "Sysctl support (/proc/sys)" if EXPERT
> >  	depends on PROC_FS
> > -	select SYSCTL
> >  	default y
> >  	help
> >  	  The sysctl interface provides a means of dynamically changing
>
> Please be aware that renaming of Kconfig symbols may not be welcomed due
> to unwanted effects for users and for bisecting, cp. last paragraph of

You mean "Renaming config parameters is *bad*.". Yes, this was my concern
too, please see below.

> Personally, I do understand that it makes sense to clean this up, here.
> As the default was and stays 'y' this should affect only "few" users,
> but still I am feeling ambigious about it.
>
> Sorry for missing to point to that at the RFC.

That is why the previous [RFC PATCH 1/1] killed the hidden SYSCTL, not
PROC_SYSCTL.

But that patch touched 170 files and the output from get_maintainer.pl
was huge.

From [RFC PATCH 0/1]:

	Alternatively, we could kill CONFIG_PROC_SYSCTL in favour of CONFIG_SYSCTL.
	This would result in a much smaller patch, but I am not sure if it is "safe"
	because CONFIG_PROC_SYSCTL is user-visible in that it has a prompt in
	fs/proc/Kconfig. But perhaps this is fine?

and after discussion with Eric we came to conclusion that "probably this is fine"
in thic case.

I do think it makes sense to cleanup the usage of PROC_SYSCTL/SYSCTL (kill one of
them). Just look at kernel/pid.c. It defines the "static int proc_do_cad_pid()" if
CONFIG_SYSCTL, but this function is only used if CONFIG_PROC_SYSCTL. This looks
obviously wrong until you grep Kconfig's and realize that both are the same thing.

Oleg.


  reply	other threads:[~2026-07-28 11:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-27 14:46 [PATCH -mm v2 0/1] sysctl: remove CONFIG_PROC_SYSCTL, it just mirrors CONFIG_SYSCTL Oleg Nesterov
2026-07-27 14:47 ` [PATCH -mm v2 1/1] " Oleg Nesterov
2026-07-27 19:51   ` Nicolas Schier
2026-07-28 11:23     ` Oleg Nesterov [this message]
2026-07-27 17:00 ` [PATCH -mm v2 0/1] " Oleg Nesterov
2026-07-27 19:18   ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=amiRLeWkJwCl1VBc@redhat.com \
    --to=oleg@redhat.com \
    --cc=Jason@zx2c4.com \
    --cc=agordeev@linux.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=alexandre.torgue@foss.st.com \
    --cc=bp@alien8.de \
    --cc=bsingharora@gmail.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=davem@davemloft.net \
    --cc=ebiederm@xmission.com \
    --cc=edumazet@google.com \
    --cc=geert@linux-m68k.org \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=joel.granados@kernel.org \
    --cc=juri.lelli@redhat.com \
    --cc=kees@kernel.org \
    --cc=kuba@kernel.org \
    --cc=legion@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=mingo@redhat.com \
    --cc=nathan@kernel.org \
    --cc=nsc@kernel.org \
    --cc=pabeni@redhat.com \
    --cc=peterz@infradead.org \
    --cc=shuah@kernel.org \
    --cc=tglx@kernel.org \
    --cc=vincent.guittot@linaro.org \
    --cc=yang.yang29@zte.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox