max at love2party.net
Wed Aug 11 08:45:26 PDT 2004
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 leak
from other parts of the system. i.e. I want memory that I can pass to users
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.
/"\ Best regards, | mlaier at freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier at EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040811/7b59bdcc/attachment.bin
More information about the freebsd-current