Messages in this thread Patch in this message | | | Date | Tue, 9 Oct 2018 15:28:15 -0700 | From | Dennis Zhou <> | 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);
| |