All of lore.kernel.org
 help / color / mirror / Atom feed
* 4.1.28: memory leak introduced by "mm/swap.c: flush lru pvecs on compound page arrival"
@ 2016-07-15 19:27 ` Jens Rottmann
  0 siblings, 0 replies; 20+ messages in thread
From: Jens Rottmann @ 2016-07-15 19:27 UTC (permalink / raw)
  To: Lukasz Odzioba, Sasha Levin; +Cc: stable, Michal Hocko, linux-mm, linux-kernel

Hi,

4.1.y stable commit c5ad33184354260be6d05de57e46a5498692f6d6 (Upstream
commit 8f182270dfec432e93fae14f9208a6b9af01009f) "mm/swap.c: flush lru
pvecs on compound page arrival" in 4.1.28 introduces a memory leak.

Simply running

while sleep 0.1; do clear; free; done

shows mem continuously going down, eventually system panics with no
killable processes left. Using "unxz -t some.xz" instead of sleep brings
system down within minutes.

Kmemleak did not report anything. Bisect ended at named commit, and
reverting only this commit is indeed sufficient to fix the leak. Swap
partition on/off makes no difference.

My set-up:
i.MX6 (ARM Cortex-A9) dual-core, 2 GB RAM. Kernel sources are from
git.freescale.com i.e. heavily modified by Freescale for i.MX SoCs,
kernel.org stable patches up to 4.1.28 manually added.

I tried to reproduce with vanilla 4.1.28, but that wouldn't boot at all
on my hardware, hangs immediately after "Starting kernel", sorry.
However there is not a single difference between Freescale and vanilla
in the whole mm/ subdirectory, so I don't think it's i.MX-specific. I
didn't cross-check with an x86 system (yet).

Regards,
Jens

^ permalink raw reply	[flat|nested] 20+ messages in thread
* 3.18.37 broken / memory leak
@ 2016-07-18 14:06 Sebastian Gottschall
  2016-07-18 14:21 ` Sebastian Gottschall
  0 siblings, 1 reply; 20+ messages in thread
From: Sebastian Gottschall @ 2016-07-18 14:06 UTC (permalink / raw)
  To: stable, sasha.levin

Hello

first. the latest kernel patch 3.18.37  contains a unresolved symbol in 
the mips tree

this one is wrong and must be removed. reserve_bootmem_region does not 
exist in this kernel

--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
@@ -685,6 +685,9 @@ static void __init arch_mem_init(char **cmdline_p)
         for_each_memblock(reserved, reg)
                 if (reg->size != 0)
                         reserve_bootmem(reg->base, reg->size, 
BOOTMEM_DEFAULT);
+
+       reserve_bootmem_region(__pa_symbol(&__nosave_begin),
+                       __pa_symbol(&__nosave_end)); /* Reserve for 
hibernation */


second. the kernel contains a big memory leak likelly within the network 
stack. each tcp packet consumes memory. on a embedded system a small scp 
transfer causes a oom after seconds.
and reboots the system since init was killed.
please revoke the patch until these issues are resolved.
(tested on ar71xx based systems)

Sebastian


-- 
Mit freundlichen Grüssen / Regards

Sebastian Gottschall / CTO

NewMedia-NET GmbH - DD-WRT
Firmensitz:  Berliner Ring 101, 64625 Bensheim
Registergericht: Amtsgericht Darmstadt, HRB 25473
Geschäftsführer: Peter Steinhäuser, Christian Scheele
http://www.dd-wrt.com
email: s.gottschall@dd-wrt.com
Tel.: +496251-582650 / Fax: +496251-5826565


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

end of thread, other threads:[~2016-07-19 16:51 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-15 19:27 4.1.28: memory leak introduced by "mm/swap.c: flush lru pvecs on compound page arrival" Jens Rottmann
2016-07-15 19:27 ` Jens Rottmann
2016-07-15 19:27 ` Jens Rottmann
2016-07-15 22:33 ` Jens Rottmann
2016-07-15 22:33   ` Jens Rottmann
2016-07-16 13:55 ` Jens Rottmann
2016-07-16 13:55   ` Jens Rottmann
2016-07-16 14:47 ` Minchan Kim
2016-07-16 14:47   ` Minchan Kim
2016-07-16 14:47   ` Minchan Kim
2016-07-16 17:29   ` Jens Rottmann
2016-07-16 17:29     ` Jens Rottmann
2016-07-16 18:48     ` Mikulas Patocka
2016-07-16 18:48       ` Mikulas Patocka
2016-07-18  6:53   ` Michal Hocko
2016-07-18  6:53     ` Michal Hocko
2016-07-19 14:22   ` 3.18.37 broken / memory leak Jens Rottmann
2016-07-19 16:51     ` Sebastian Gottschall
2016-07-18 14:06 Sebastian Gottschall
2016-07-18 14:21 ` Sebastian Gottschall

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.