All of lore.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL] percpu fixes for-4.19-rc8
@ 2018-10-09 22:28 Dennis Zhou
  2018-10-10  9:13 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Dennis Zhou @ 2018-10-09 22:28 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Tejun Heo, Christoph Lameter, linux-kernel

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);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [GIT PULL] percpu fixes for-4.19-rc8
  2018-10-09 22:28 [GIT PULL] percpu fixes for-4.19-rc8 Dennis Zhou
@ 2018-10-10  9:13 ` Greg Kroah-Hartman
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2018-10-10  9:13 UTC (permalink / raw)
  To: Dennis Zhou; +Cc: Tejun Heo, Christoph Lameter, linux-kernel

On Tue, Oct 09, 2018 at 03:28:15PM -0700, Dennis Zhou wrote:
> 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

Now merged, thanks.

greg k-h



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-10  9:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-09 22:28 [GIT PULL] percpu fixes for-4.19-rc8 Dennis Zhou
2018-10-10  9:13 ` Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.