From owner-cvs-all Mon Oct 29 7: 2:15 2001 Delivered-To: cvs-all@freebsd.org Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by hub.freebsd.org (Postfix) with ESMTP id 522E137B401; Mon, 29 Oct 2001 07:02:09 -0800 (PST) Received: from [62.49.251.130] (helo=herring.nlsystems.com) by anchor-post-34.mail.demon.net with esmtp (Exim 2.12 #1) id 15yDvU-000Or8-0Y; Mon, 29 Oct 2001 15:02:08 +0000 Received: from herring (herring [10.0.0.2]) by herring.nlsystems.com (8.11.2/8.11.2) with ESMTP id f9TF0q743085; Mon, 29 Oct 2001 15:00:52 GMT (envelope-from dfr@nlsystems.com) Date: Mon, 29 Oct 2001 15:00:52 +0000 (GMT) From: Doug Rabson To: John Baldwin Cc: , Subject: Re: cvs commit: src/sys/alpha/alpha trap.c src/sys/i386/i386 trap.c src/sys/ia64/ia64 trap.c src/sys/kern init_main.c kern_exit.c kern_fork.c subr_trap.c src/sys/sparc64/sparc64 trap.c src In-Reply-To: <200110260812.f9Q8CsD14882@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 26 Oct 2001, John Baldwin wrote: > jhb 2001/10/26 01:12:54 PDT > > Modified files: > sys/alpha/alpha trap.c > sys/i386/i386 trap.c > sys/ia64/ia64 trap.c > sys/kern init_main.c kern_exit.c kern_fork.c > subr_trap.c > sys/sparc64/sparc64 trap.c > sys/sys proc.h > Log: > Add a per-thread ucred reference for syscalls and synchronous traps from > userland. The per thread ucred reference is immutable and thus needs no > locks to be read. However, until all the proc locking associated with > writes to p_ucred are completed, it is still not safe to use the per-thread > reference. > > Tested on: x86 (SMP), alpha, sparc64 This gets horribly confused when I set a DDB breakpoint at the start of syscall() - it goes into a tight look calling panic because the value of td_ucred is NULL. -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message