Dag-Erling Smrgrav wrote this message on Fri, Sep 13, 2013 at 12:24 +0200:
> John-Mark Gurney <[email protected]> writes:
> > for kernel malloc, look at sys/kern_malloc.c..  It doesn't look like
> > there is a knob to turn on kernel malloc filling, but it wouldn't be
> > hard...
> 
> You want to do it in UMA, not in malloc() / free().

The reason I didn't suggest UMA is that UMA already has functions that
do the cleaning when destroying an object...  You can't just zero UMA
objects on free w/o calling fini, otherwise you might leak resources..
Plus, it would be a lot of work to fix all the UMA consumers to make
sure that their uminit/fini fuctions do the proper cleaning necessary...

-- 
  John-Mark Gurney                              Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "[email protected]"

Reply via email to