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

Michael Ellerman mpe at ellerman.id.au
Mon Jul 30 16:43:19 AEST 2018


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.

cheers


More information about the Linuxppc-dev mailing list