From: ebiederm@xmission.com (Eric W. Biederman)
To: Andrew Morton <akpm@linux-foundation.org>
Cc: netdev@vger.kernel.org
Subject: Re: sysctls
Date: Wed, 25 Apr 2007 13:45:19 -0600 [thread overview]
Message-ID: <m1ps5sqlv4.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <20070425122924.88391585.akpm@linux-foundation.org> (Andrew Morton's message of "Wed, 25 Apr 2007 12:29:24 -0700")
Andrew Morton <akpm@linux-foundation.org> writes:
> I note that the networking tree is adding new sysctls:
>
> <<<<<<< HEAD/include/linux/sysctl.h
> NET_IPV6_ACCEPT_SOURCE_ROUTE=25,
> =======
> NET_IPV6_OPTIMISTIC_DAD=24,
> NET_IPV6_ACCEPT_SOURCE_ROUTE=25,
>>>>>>>> /include/linux/sysctl.h
>
> (Well, it's trying to - there are some git rejects in net-2.6.22)
>
> But we kind-of decided a while back to stop doing that and to
> use CTL_UNNUMBERED.
>
> Frankly, I don't 100% remember the thinking - Eric, can you please remind
> us?
The thinking is this:
Binary sysctl numbers are a problem because of patch conflicts like
the above, and the related user space breakage they cause.
In practice no one uses binary sysctl numbers.
So the policy should be to add new sysctl's using CTL_UNNUMBERED
(to prevent patch conflicts and user space breakage).
There may be cases where someone actually needs the binary sysctl
interface. Once there is a demonstrated need we can go back
and very carefully add numbers for these very few cases, with
a strong review process.
Adding binary sysctl numbers should be done as carefully as and with
as much review as adding syscall numbers, and distro kernels and other
stable kernels should never get a sysctl number backport until the
number first reaches Linus's tree. To avoid difference in meaning
between different kernels.
Given that no one except on BSD uses the binary sysctl interface
anyway my personal preference is to just freeze it and to reduce the
number of binary sysctls we support if possible.
Eric
next prev parent reply other threads:[~2007-04-25 19:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-25 19:29 sysctls Andrew Morton
2007-04-25 19:45 ` Eric W. Biederman [this message]
2007-04-25 19:53 ` sysctls Neil Horman
2007-04-25 21:50 ` sysctls Andrew Morton
2007-04-25 23:47 ` sysctls David Miller
2007-04-26 11:12 ` sysctls Neil Horman
2007-04-25 20:00 ` sysctls David Miller
2007-04-25 20:06 ` sysctls Eric W. Biederman
2007-04-25 20:10 ` sysctls David Miller
2007-04-25 20:13 ` sysctls Eric W. Biederman
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=m1ps5sqlv4.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=akpm@linux-foundation.org \
--cc=netdev@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.