Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: Matthias Drochner <drochner@netbsd.org>
List: source-changes
Date: 03/15/2006 16:12:07
Module Name:	src
Committed By:	drochner
Date:		Wed Mar 15 16:12:07 UTC 2006

Modified Files:
	src/sys/kern: kern_sysctl.c

Log Message:
Check the "oldlen" argument to sysctl(2) before passing it
to vslock(9). This prevents a local DOS.
(The checks against system and user limits for wired
memory should be centralized in UVM; for now prefer a less
invasive fix which can be pulled pulled up into releases.)


To generate a diff of this commit:
cvs rdiff -r1.190 -r1.191 src/sys/kern/kern_sysctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.