[PATCH v2] kmemleak: skip scanning holes in the .bss section
cai at lca.pw
Thu Mar 21 07:04:32 AEDT 2019
On Wed, 2019-03-20 at 18:16 +0000, Catalin Marinas wrote:
> I think I have a simpler idea. Kmemleak allows punching holes in
> allocated objects, so just turn the data/bss sections into dedicated
> kmemleak objects. This happens when kmemleak is initialised, before the
> initcalls are invoked. The kvm_free_tmp() would just free the
> corresponding part of the bss.
> Patch below, only tested briefly on arm64. Qian, could you give it a try
> on powerpc? Thanks.
It works great so far!
More information about the Linuxppc-dev