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

Paul Menzel pmenzel at molgen.mpg.de
Mon Jul 30 19:54:22 AEST 2018


Dear Michael,


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.

Cc: stable at vger.kernel.org


Kind regards,

Paul

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5174 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20180730/7f3651f6/attachment.bin>


More information about the Linuxppc-dev mailing list