From owner-cvs-src@FreeBSD.ORG Sun Oct 5 05:26:30 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FBA516A4B3; Sun, 5 Oct 2003 05:26:30 -0700 (PDT) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 342C143FE3; Sun, 5 Oct 2003 05:26:29 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.9/8.12.9) with ESMTP id h95CQJN1049247; Sun, 5 Oct 2003 05:26:23 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200310051226.h95CQJN1049247@gw.catspoiler.org> Date: Sun, 5 Oct 2003 05:26:19 -0700 (PDT) From: Don Lewis To: bms@FreeBSD.org In-Reply-To: <200310050937.h959bldI091908@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_sysctl.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Oct 2003 12:26:30 -0000 On 5 Oct, Bruce M Simpson wrote: > 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. 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.