Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2002 23:07:32 -0700 (PDT)
From:      Don Lewis <dl-freebsd@catspoiler.org>
To:        makonnen@pacbell.net
Cc:        bright@mu.org, jhb@FreeBSD.ORG, hackers@FreeBSD.ORG
Subject:   Re: fdcheckstd() test bug in execve() (was: Re: Suggested fixes for uidinfo "would sleep" messages)
Message-ID:  <200206210607.g5L67DM1071831@gw.catspoiler.org>
In-Reply-To: <20020620163441.5f204b3f.makonnen@pacbell.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 20 Jun, Mike Makonnen wrote:
> On Thu, 20 Jun 2002 00:04:41 -0700 (PDT)
> Don Lewis <dl-freebsd@catspoiler.org> wrote:
> 
>> 
>> Your patch also looks like it should fix the bug.  I prefer my patch,
>> though, because I think the resultant code is structured better and
>> should be easier to understand.  For instance, the reason for the
>> assignment to oldcred in the "if (error != 0)" block in your patch is
>> not immediately obvious.  
> 
> You can remove it, it was part of something else I was working on.

When I looked at it last night, it appeared to be necessary, since if
the fdcheckstd() test fails oldcred will be left pointing to the
credential held by the process.  On further review, I see that this
assignment isn't necessary after all because of the code that calls
crfree() just looks at the state of newcred.

> I haven't taken a look at your patch. I was working on something else
> and already had a patch for it, before I saw yours. I sent it as a 
> reference because there was something in the thread about 
> leaking p_args.

I suprised that things didn't even get more mucked up because the
process was never unlocked.

> I really don't care which patch makes it into the tree. If it solves
> the problem, it solves the problem. There's not much more to it.

Alfred committed yours earlier today.




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206210607.g5L67DM1071831>