Changing pf to use kmalloc instead of zalloc

Sepherosa Ziehau sepherosa at gmail.com
Sun Jan 23 04:53:36 PST 2011


On Sun, Jan 23, 2011 at 5:25 PM, Jan Lentfer <Jan.Lentfer at 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





More information about the Kernel mailing list