Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Aug 2004 17:43:08 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-current@freebsd.org
Cc:        Bosko Milekic <bmilekic@FreeBSD.org>
Subject:   Re: UMA questions
Message-ID:  <200408111743.16323.max@love2party.net>
In-Reply-To: <20040811152950.GA17794@freefall.freebsd.org>
References:  <20040811152950.GA17794@freefall.freebsd.org>

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

--Boundary-02=_U6jGB/JDDmcN0xq
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Wednesday 11 August 2004 17:29, Bosko Milekic wrote:
> >2. What does the flag UMA_ZONE_ZINIT do exactly?
>
>    It initializes zone-allocated objects to zero.  This happens as objects
>    are first allocated (i.e., slabs are allocated) and before placement
>    into the slab cache.  Unfortunately, I am not sure this works very well
>    unless you also make sure to zero them as they are returned (dtor),
>    which is a shitty model.

I guess the motivation behind UMA_ZONE_ZINIT is to prevent an information l=
eak=20
from other parts of the system. i.e. I want memory that I can pass to users=
=20
or the net w/o having to fear that it holds my password or something.

Once the slab is in the cache, i.e. it belongs to me, I don't care anymore.

=2D-=20
/"\  Best regards,			| mlaier@freebsd.org
\ /  Max Laier				| ICQ #67774661
 X   http://pf4freebsd.love2party.net/	| mlaier@EFnet
/ \  ASCII Ribbon Campaign		| Against HTML Mail and News

--Boundary-02=_U6jGB/JDDmcN0xq
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (FreeBSD)

iD8DBQBBGj6UXyyEoT62BG0RAkygAJ95IMg41rKma+WKRve6xKR16wnk3gCcDorJ
DHZjGrc7yVsz4ItxU9gzZcU=
=Uecs
-----END PGP SIGNATURE-----

--Boundary-02=_U6jGB/JDDmcN0xq--



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