[PATCH] powerpc/mm: Don't report PUDs as memory leaks when using kmemleak

Michael Ellerman mpe at ellerman.id.au
Fri Aug 3 20:23:10 AEST 2018


Paul Menzel <pmenzel at molgen.mpg.de> writes:
> On 07/30/18 08:43, Michael Ellerman wrote:
>> Paul Menzel <pmenzel at molgen.mpg.de> writes:
>>> Am 19.07.2018 um 16:33 schrieb Michael Ellerman:
>> ...
>>>>
>>>> The fix is fairly simple. We need to tell kmemleak to ignore PUD
>>>> allocations and never report them as leaks. We can also tell it not to
>>>> scan the PGD, because it will never find pointers in there. However it
>>>> will still notice if we allocate a PGD and then leak it.
>>>>
>>>> Reported-by: Paul Menzel <pmenzel at molgen.mpg.de>
>>>> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au> > ---
>>>>   arch/powerpc/include/asm/book3s/64/pgalloc.h | 23 +++++++++++++++++++++--
>>>>   1 file changed, 21 insertions(+), 2 deletions(-)
>>>
>>> […]
>>>
>>> Tested-by: Paul Menzel <pmenzel at molgen.mpg.de> on IBM S822LC
>> 
>> Thanks.
>
> No problem. I forgot to add, that it’d be great, if you tagged this
> for the stable series too.

Sorry I didn't see this before I applied, so it's not tagged for stable.

We can request a backport though, what stable version(s) are you
running?

cheers


More information about the Linuxppc-dev mailing list