* Re: + sysctl-error-on-bad-sysctl-tables.patch added to -mm tree
[not found] <200708092211.l79MBoVR022139@imap1.linux-foundation.org>
@ 2007-08-10 8:09 ` Alexey Dobriyan
2007-08-10 9:22 ` Eric W. Biederman
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2007-08-10 8:09 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, ebiederm
On Thu, Aug 09, 2007 at 03:11:50PM -0700, akpm@linux-foundation.org wrote:
> Subject: sysctl: Error on bad sysctl tables
> From: Eric W. Biederman <ebiederm@xmission.com>
>
> After going through the kernels sysctl tables several times it has become
> clear that code review and testing is just not effective in prevent
> problematic sysctl tables from being used in the stable kernel. I certainly
> can't seem to fix the problems as fast as they are introduced.
>
> Therefore this patch adds sysctl_check_table which is called when a sysctl
> table is registered and checks to see if we have a problematic sysctl table.
>
> The biggest part of the code is the table of valid binary sysctl entries, but
> since we have frozen our set of binary sysctls this table should not need to
> change, and it makes it much easier to detect when someone unintentionally
> adds a new binary sysctl value.
>
> As best as I can determine all of the several hundred errors spewed on boot up
> now are legitimate.
It gives false positive on kernel.pty.nr:
sysctl table check failed: /kernel/pty/nr .1.62.2 No data
However, ->data is set in unix98_pty_init().
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: + sysctl-error-on-bad-sysctl-tables.patch added to -mm tree
2007-08-10 8:09 ` + sysctl-error-on-bad-sysctl-tables.patch added to -mm tree Alexey Dobriyan
@ 2007-08-10 9:22 ` Eric W. Biederman
0 siblings, 0 replies; 2+ messages in thread
From: Eric W. Biederman @ 2007-08-10 9:22 UTC (permalink / raw)
To: Alexey Dobriyan; +Cc: akpm, linux-kernel
Alexey Dobriyan <adobriyan@sw.ru> writes:
> It gives false positive on kernel.pty.nr:
>
> sysctl table check failed: /kernel/pty/nr .1.62.2 No data
>
> However, ->data is set in unix98_pty_init().
It's a race.
Data isn't set until after we enable the sysctl subsystem.
In practice I doubt it matters but I think would rather fix
that one case (by using register_sysctl_table) then not have
the check.
Eric
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-10 9:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200708092211.l79MBoVR022139@imap1.linux-foundation.org>
2007-08-10 8:09 ` + sysctl-error-on-bad-sysctl-tables.patch added to -mm tree Alexey Dobriyan
2007-08-10 9:22 ` Eric W. Biederman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox