Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2002 00:23:05 -0800 (PST)
From:      Julian Elischer <julian@elischer.org>
To:        Matthew Dillon <dillon@apollo.backplane.com>
Cc:        jhb@FreeBSD.ORG, arch@FreeBSD.ORG
Subject:   Re: that INVARIANT/ucred freeing stuff.
Message-ID:  <Pine.BSF.4.21.0202210019480.66508-100000@InterJet.elischer.org>
In-Reply-To: <200202210755.g1L7t5F93967@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
If he REALLY wants it to be zero, then we can just hold it in another
field, and zero the one that is referenced..i.e.on leaving the kernel:
td->td_held_ucred == td->td_ucred;
td->td_ucred = NULL;

and on entering the kernel:
td->td_ucred = td->td_held_ucred;
td->td_held_ucred = NULL;
if (td->td_ucred != p->p_ucred) 
	cred_update_thread(td);


On Wed, 20 Feb 2002, Matthew Dillon wrote:

> 
> :I REALLY want to just rip it out!
> :
> :julian
> 
>     Ditto.  I don't mind optioning it (i.e. option to recover zeroing code,
>     default to rip it out), but I would much prefer to simply see it gone.
> 
> 					-Matt
> 					Matthew Dillon 
> 					<dillon@backplane.com>
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-arch" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" 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.21.0202210019480.66508-100000>