From owner-cvs-all@FreeBSD.ORG Sun Oct 5 02:37:48 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2472716A4B3; Sun, 5 Oct 2003 02:37:48 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 992E843FFB; Sun, 5 Oct 2003 02:37:47 -0700 (PDT) (envelope-from bms@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h959blXJ091909; Sun, 5 Oct 2003 02:37:47 -0700 (PDT) (envelope-from bms@repoman.freebsd.org) Received: (from bms@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h959bldI091908; Sun, 5 Oct 2003 02:37:47 -0700 (PDT) (envelope-from bms) Message-Id: <200310050937.h959bldI091908@repoman.freebsd.org> From: Bruce M Simpson Date: Sun, 5 Oct 2003 02:37:47 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_sysctl.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Oct 2003 09:37:48 -0000 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