All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] constify tables in kernel/sysctl_check.c
       [not found] <476A73A3.76E4.0078.0@novell.com>
@ 2007-12-20 23:05 ` Eric W. Biederman
  2007-12-21  7:47   ` Jan Beulich
  0 siblings, 1 reply; 3+ messages in thread
From: Eric W. Biederman @ 2007-12-20 23:05 UTC (permalink / raw)
  To: Jan Beulich; +Cc: linux-kernel

"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.

Eric

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] constify tables in kernel/sysctl_check.c
  2007-12-20 23:05 ` [PATCH] constify tables in kernel/sysctl_check.c Eric W. Biederman
@ 2007-12-21  7:47   ` Jan Beulich
  2007-12-21 13:33     ` Eric W. Biederman
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Beulich @ 2007-12-21  7:47 UTC (permalink / raw)
  To: Eric W. Biederman; +Cc: linux-kernel

>>> 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.

Jan


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] constify tables in kernel/sysctl_check.c
  2007-12-21  7:47   ` Jan Beulich
@ 2007-12-21 13:33     ` Eric W. Biederman
  0 siblings, 0 replies; 3+ messages in thread
From: Eric W. Biederman @ 2007-12-21 13:33 UTC (permalink / raw)
  To: Jan Beulich; +Cc: linux-kernel

"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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-21 13:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <476A73A3.76E4.0078.0@novell.com>
2007-12-20 23:05 ` [PATCH] constify tables in kernel/sysctl_check.c Eric W. Biederman
2007-12-21  7:47   ` Jan Beulich
2007-12-21 13:33     ` Eric W. Biederman

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.