linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Kees Cook <keescook@chromium.org>
Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org,
	linux-api@vger.kernel.org,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Andi Kleen <andi@firstfloor.org>, Andi Kleen <ak@linux.intel.com>,
	Cong Wang <xiyou.wangcong@gmail.com>,
	Luis Chamberlain <mcgrof@kernel.org>,
	Apelete Seketeli <apelete@seketeli.net>,
	Arnd Bergmann <arnd@arndb.de>,
	Chee Nouk Phoon <cnphoon@altera.com>,
	Chris Zankel <chris@zankel.net>,
	Christian Ruppert <christian.ruppert@abilis.com>,
	Greg Ungerer <gerg@uclinux.org>, Helge Deller <deller@gmx.de>,
	Hongliang Tao <taohl@lemote.com>, Huacai Chen <chenhc@lemote.com>,
	Jonas Jensen <jonas.jensen@gmail.com>,
	Josh Boyer <jwboyer@gmail.com>, Jun Nie <jun.nie@linaro.org>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Ley Foon Tan <lftan@altera.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	Max Filippov <jcmvbkbc@gmail.com>,
	Olof Johansson <olof@lixom.net>,
	Paul Burton <paul.burton@mips.com>,
	Phil Edworthy <phil.edworthy@renesas.com>,
	Pierrick Hascoet <pierrick.hascoet@abilis.com>,
	Ralf Baechle <ralf@linux-mips.org>,
	Roland Stigge <stigge@antcom.de>,
	Vineet Gupta <vgupta@synopsys.com>
Subject: Re: [RFC][PATCH] sysctl: Remove the sysctl system call
Date: Tue, 01 Oct 2019 17:53:27 -0500	[thread overview]
Message-ID: <87imp8hyc8.fsf@x220.int.ebiederm.org> (raw)
In-Reply-To: <201910011140.EA0181F13@keescook> (Kees Cook's message of "Tue, 1 Oct 2019 11:46:45 -0700")

Kees Cook <keescook@chromium.org> writes:

> On Tue, Oct 01, 2019 at 01:36:32PM -0500, Eric W. Biederman wrote:
>> 
>> This system call has been deprecated almost since it was introduced, and
>> in a survey of the linux distributions I can no longer find any of them
>> that enable CONFIG_SYSCTL_SYSCALL.  The only indication that I can find
>> that anyone might care is that a few of the defconfigs in the kernel
>> enable CONFIG_SYSCTL_SYSCALL.  However this appears in only 31 of 414
>> defconfigs in the kernel, so I suspect this symbols presence is simply
>> because it is harmless to include rather than because it is necessary.
>> 
>> As there appear to be no users of the sysctl system call, remove the
>> code.  As this removes one of the few uses of the internal kernel mount
>> of proc I hope this allows for even more simplifications of the proc
>> filesystem.
>
> I'm for it. :) I tripped over this being deprecated over a decade ago. :P
>
> I think you can actually take this further and remove (or at least
> empty) the uapi/linux/sysctl.h file too.

I copied everyone who had put this into a defconfig and I will wait a
little more to see if anyone screams.  I think it is a safe guess that
several of the affected configurations are dead (or at least
unmaintained) as I received 17 bounces when copying everyone.

I would make it a followup that removes uapi/linux/sysctl.h.  I don't
see anything in it that isn't about the sysctl system call.  I will keep
it a separate patch as I can imagine something silly that needs the
header file to compile.  A separate patch would make a revert easier
if we find something like that.

Eric

  reply	other threads:[~2019-10-01 22:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8736gcjosv.fsf@x220.int.ebiederm.org>
2019-10-01 18:46 ` [RFC][PATCH] sysctl: Remove the sysctl system call Kees Cook
2019-10-01 22:53   ` Eric W. Biederman [this message]
2019-10-02  0:40     ` Jann Horn
2019-10-02  7:31     ` Arnd Bergmann
2019-10-02 14:41       ` Eric W. Biederman
2019-10-02 14:49       ` Eric W. Biederman
2019-10-02 18:52     ` Helge Deller
2019-10-03  6:56   ` Florian Weimer
     [not found]     ` <87tv8pftjj.fsf_-_@x220.int.ebiederm.org>
2019-10-03 21:05       ` [REPOST][RFC][PATCH] " Kees Cook
2019-10-08 10:30         ` Michael Kerrisk (man-pages)
2019-10-03 21:08     ` [RFC][PATCH] " Christian Brauner
2019-10-04  7:31       ` vger mail woes? (was: Re: [RFC][PATCH] sysctl: Remove the sysctl system call) Florian Weimer
2019-10-02 16:17 ` [RFC][PATCH] sysctl: Remove the sysctl system call Andi Kleen

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=87imp8hyc8.fsf@x220.int.ebiederm.org \
    --to=ebiederm@xmission.com \
    --cc=ak@linux.intel.com \
    --cc=andi@firstfloor.org \
    --cc=apelete@seketeli.net \
    --cc=arnd@arndb.de \
    --cc=chenhc@lemote.com \
    --cc=chris@zankel.net \
    --cc=christian.ruppert@abilis.com \
    --cc=cnphoon@altera.com \
    --cc=deller@gmx.de \
    --cc=gerg@uclinux.org \
    --cc=jcmvbkbc@gmail.com \
    --cc=jonas.jensen@gmail.com \
    --cc=jun.nie@linaro.org \
    --cc=jwboyer@gmail.com \
    --cc=keescook@chromium.org \
    --cc=lars@metafoo.de \
    --cc=lftan@altera.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=olof@lixom.net \
    --cc=paul.burton@mips.com \
    --cc=phil.edworthy@renesas.com \
    --cc=pierrick.hascoet@abilis.com \
    --cc=ralf@linux-mips.org \
    --cc=stigge@antcom.de \
    --cc=taohl@lemote.com \
    --cc=torvalds@linux-foundation.org \
    --cc=vgupta@synopsys.com \
    --cc=xiyou.wangcong@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).