Date: Fri, 13 Sep 2013 09:46:47 -0700 From: John-Mark Gurney <jmg@funkthat.com> To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= <des@des.no> Cc: My Email <jonathon.s.wright@gmail.com>, "freebsd-security@freebsd.org" <freebsd-security@freebsd.org> Subject: Re: FreeBSD Transient Memory problem? Message-ID: <20130913164647.GR68682@funkthat.com> In-Reply-To: <86d2od589t.fsf@nine.des.no> References: <CAGX1DMbQP=TggYQm-3hra0Od3gjgz5xQ8bEMMrueuhL6kuZMUA@mail.gmail.com> <20130912053559.GF68682@funkthat.com> <979901F9-5F25-4DF1-95A8-32473C55B25F@gmail.com> <20130912183206.GK68682@funkthat.com> <86d2od589t.fsf@nine.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smrgrav wrote this message on Fri, Sep 13, 2013 at 12:24 +0200: > John-Mark Gurney <jmg@funkthat.com> 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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130913164647.GR68682>