mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: "Jan Beulich" <jbeulich@novell.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] constify tables in kernel/sysctl_check.c
Date: Fri, 21 Dec 2007 06:33:46 -0700	[thread overview]
Message-ID: <m1zlw45g05.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <476B7DBB.76E4.0078.0@novell.com> (Jan Beulich's message of "Fri, 21 Dec 2007 07:47:55 +0000")

"Jan Beulich" <jbeulich@novell.com> writes:

>>>> Eric W. Biederman <ebiederm@xmission.com> 21.12.07 00:05 >>>
>>"Jan Beulich" <jbeulich@novell.com> writes:
>>
>>> Remains the question whether it is intended that many, perhaps even
>>> large, tables are compiled in without ever having a chance to get used,
>>> i.e. whether there shouldn't #ifdef CONFIG_xxx get added.
>>
>>
>>The constification looks good.  The file should be compiled only when
>>we have sysctl support.  We use those tables when we call 
>>register_sysctl_table.  Which we do a lot.
>
> I understand this. Nevertheless, the tables take 23k on 64-bits, and many
> of them are unused when certain subsystems aren't being built (and some
> are even architecture specific). The arlan tables are a particularly good
> example, but the netfilter ones are pretty big and probably not always
> used, too.

The size isn't my favorite thing.  But given how much of a mess sysctl_check.c
has allowed me to clean up and get a handle on I'm not inclined to do
anything that would compromise the checking.

Probably the sanest way to remove table entries is to individually remove and
deprecate parts of the binary sys_sysctl interface so that we don't need the
table entries.

Maybe we could through in a few #ifdefs and #defines so we can reduce
the set of allowed sysctl entries even more base on config options.

I'm not volunteering to do more then is absolutely necessary to keep
sys_sysctl working and correct until we reach a point where everyone
can agree that users of the interface truly have had fair warning and
then I intend to delete all of the code that deals with the binary
sysctl interface.

Eric

      reply	other threads:[~2007-12-21 13:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <476A73A3.76E4.0078.0@novell.com>
2007-12-20 23:05 ` Eric W. Biederman
2007-12-21  7:47   ` Jan Beulich
2007-12-21 13:33     ` Eric W. Biederman [this message]

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=m1zlw45g05.fsf@ebiederm.dsl.xmission.com \
    --to=ebiederm@xmission.com \
    --cc=jbeulich@novell.com \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®