cvs commit: src/sys/kern kern_sysctl.c
Bruce M Simpson
bms at spc.org
Sun Oct 5 06:44:59 PDT 2003
On Sun, Oct 05, 2003 at 05:26:19AM -0700, Don Lewis wrote:
> In the SMP case the data can change even without pre-emption. There
> have been a number of discussions (arch@, smp@, arch-handbook, etc.)
> about adding a mutex parameter to the sysctl API. Someone even
> submitted a PR with a patch a few months ago (kern/54439), which I had
> hoped to review but never found the time to.
My GENERIC kernel with vslock() et al. reintroduced, and the pre-emption
check in sysctl_handle_opaque(), appears to be OK.
I am confident the security issue has now been addressed in -CURRENT
(it was limited to sysctl_handle_opaque()), but we now have the larger
problem of how to deal with procedural sysctl() handlers in the wider kernel.
I can see Peter has encouraged me to open a huge can of worms. Let's
continue discussion about what to do on -arch.
This has been a learning experience...
BMS
More information about the cvs-src
mailing list