Date: Sun, 5 Oct 2003 02:37:47 -0700 (PDT) From: Bruce M Simpson <bms@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_sysctl.c Message-ID: <200310050937.h959bldI091908@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bms 2003/10/05 02:37:47 PDT
FreeBSD src repository
Modified files:
sys/kern kern_sysctl.c
Log:
Fix a security problem in sysctl() the long way round.
Use pre-emption detection to avoid the need for wiring a userland buffer
when copying opaque data structures.
sysctl_wire_old_buffer() is now a no-op. Other consumers of this
API should use pre-emption detection to notice update collisions.
vslock() and vsunlock() should no longer be called by any code
and should be retired in subsequent commits.
Discussed with: pete, phk
MFC after: 1 week
Revision Changes Path
1.147 +14 -18 src/sys/kern/kern_sysctl.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310050937.h959bldI091908>
