Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Oct 2001 15:00:52 +0000 (GMT)
From:      Doug Rabson <dfr@nlsystems.com>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org>
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
Message-ID:  <Pine.BSF.4.33.0110291459200.41783-100000@herring.nlsystems.com>
In-Reply-To: <200110260812.f9Q8CsD14882@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0110291459200.41783-100000>