Re: + sysctl-error-on-bad-sysctl-tables.patch added to -mm tree

From: Eric W. Biederman
Date: Fri Aug 10 2007 - 05:23:34 EST


Alexey Dobriyan <adobriyan@xxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/