DragonFly BSD
DragonFly kernel List (threaded) for 2011-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Changing pf to use kmalloc instead of zalloc


From: Sepherosa Ziehau <sepherosa@xxxxxxxxx>
Date: Sun, 23 Jan 2011 20:43:10 +0800

On Sun, Jan 23, 2011 at 5:25 PM, Jan Lentfer <Jan.Lentfer@web.de> wrote:
> I updated and rebased my branch at
> http://gitweb.dragonflybsd.org/~lentferj/dragonfly.git/shortlog/refs/heads/pf44
> so everything is in one patch/diff and no intermediate stuff anymore.
>
> pf.ko loads and I can load the ruleset, etc. It looks all good, until...
>
>
> 2) I kldunload pf.ko
> malloc_uninit: 208 bytes of 'pfstatepl' still allocated on cpu 4
> malloc_uninit: 896 bytes of 'pfrulepl' still allocated on cpu 4
>

You will have to make sure that all allocated memory is freed during MOD_UNLOAD

Best Regards,
sephe

-- 
Tomorrow Will Never Die



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]