Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Apr 2001 15:12:25 -0700 (PDT)
From:      Matt Dillon <dillon@earth.backplane.com>
To:        Terry Lambert <tlambert@primenet.com>
Cc:        arch@FreeBSD.ORG
Subject:   Re: Found BAD BUG: squashed
Message-ID:  <200104182212.f3IMCPD45159@earth.backplane.com>
References:   <200104182207.PAA11716@usr08.primenet.com>

next in thread | previous in thread | raw e-mail | index | archive | help

:I have identified the bug.
:
:It turns out that the bug causes memory corruption by freeing
:but continuing to use a credential, and it only occurs in big
:resource usage cases, and then seemingly at random.
:
:It is the fact that there are two credentials per socket, one
:for the socket, and one for the descriptor itself.
:
:The cr_ref is an unsigned short, and ...

    Ahhh..  Excellent find Terry!

    Why do you want to cycle a new credential when the unsigned short
    ref count reaches 65535 (what you call the right fix) verses simply
    changing the ref count to an unsigned long (what you call the quick
    and dirty fix)?  That seems kinda reversed to me.

					-Matt


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?200104182212.f3IMCPD45159>