lkml.org 
[lkml]   [2018]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[GIT PULL] percpu fixes for-4.19-rc8
Hi Greg,

The new percpu allocator introduced in 4.14 had a missing free for the
percpu metadata. This caused a memory leak when percpu memory is being
churned resulting in the allocation and deallocation of percpu memory
chunks.

Thanks,
Dennis

The following changes since commit 0238df646e6224016a45505d2c111a24669ebe21:

Linux 4.19-rc7 (2018-10-07 17:26:02 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu.git for-4.19-fixes

for you to fetch changes up to 6685b357363bfe295e3ae73665014db4aed62c58:

percpu: stop leaking bitmap metadata blocks (2018-10-07 14:50:12 -0700)

----------------------------------------------------------------
Mike Rapoport (1):
percpu: stop leaking bitmap metadata blocks

mm/percpu.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/mm/percpu.c b/mm/percpu.c
index a749d4d96e3e..4b90682623e9 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -1212,6 +1212,7 @@ static void pcpu_free_chunk(struct pcpu_chunk *chunk)
{
if (!chunk)
return;
+ pcpu_mem_free(chunk->md_blocks);
pcpu_mem_free(chunk->bound_map);
pcpu_mem_free(chunk->alloc_map);
pcpu_mem_free(chunk);
\
 
 \ /
  Last update: 2018-10-10 00:28    [W:0.023 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site