Thread (7 messages) flat view 7 messages, 4 authors, 2018-08-07

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

From: Paul Menzel <hidden>
Date: 2018-07-30 09:54:29

Dear Michael,


On 07/30/18 08:43, Michael Ellerman wrote:
Paul Menzel [off-list ref] writes:
quoted
Am 19.07.2018 um 16:33 schrieb Michael Ellerman:
...
quoted
quoted
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 <redacted>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> > ---
  arch/powerpc/include/asm/book3s/64/pgalloc.h | 23 +++++++++++++++++++++--
  1 file changed, 21 insertions(+), 2 deletions(-)
[…]

Tested-by: Paul Menzel <redacted> 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@vger.kernel.org


Kind regards,

Paul

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help