From owner-cvs-src@FreeBSD.ORG Thu Jul 22 17:05:05 2004 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 0614D16A4CE; Thu, 22 Jul 2004 17:05:05 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCFA943D54; Thu, 22 Jul 2004 17:05:04 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6MH54CM008361; Thu, 22 Jul 2004 17:05:04 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6MH54rE008360; Thu, 22 Jul 2004 17:05:04 GMT (envelope-from rwatson) Message-Id: <200407221705.i6MH54rE008360@repoman.freebsd.org> From: Robert Watson Date: Thu, 22 Jul 2004 17:05:04 +0000 (UTC) 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_prot.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: Thu, 22 Jul 2004 17:05:05 -0000 rwatson 2004-07-22 17:05:04 UTC FreeBSD src repository Modified files: sys/kern kern_prot.c Log: suser() accepts a thread argument; as suser() dereferences td_ucred, a thread-local pointer, in practice that thread needs to be curthread. If we're running with INVARIANTS, generate a warning if not. If we have KDB compiled in, generate a stack trace. This doesn't fire at all in my local test environment, but could be irritating if it fires frequently for someone, so there will be motivation to fix things quickly when it does. Revision Changes Path 1.185 +12 -0 src/sys/kern/kern_prot.c