Bug 10014 - linux-yocto: __lru_cache_add memory leak in krogoth 4.1.28 kernel
Summary: linux-yocto: __lru_cache_add memory leak in krogoth 4.1.28 kernel
Status: RESOLVED FIXED
Alias: None
Product: General Runtime
Classification: Runtime
Component: General Runtime (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.1.2
Assignee: Armin Kuster
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-07-24 18:29 UTC by Chris Sykes
Modified: 2016-07-28 19:13 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Sykes 2016-07-24 18:29:58 UTC
At the end of last week I hit a known kernel memory leak in the linux-yocto
4.1 branch as delivered in 2.1 / krogoth.  It rather quickly results in an
OOM kernel panic on my platform.

The patch below fixed the problem for me:
http://www.spinics.net/lists/stable/msg138760.html

It's already queued for 4.1.29, but raising this bugzilla as I thought it
might be worth expediting a fix for 2.1.

Preconditions/Environment
-------------------------
linux-yocto 4.1.28 from 2.1 / krogoth.

Triggering Action/Cause
-----------------------
Just boot the kernel, exhibits even with just a serial console & init=/bin/sh.

Expectation
-----------
No memory leaks.

Actual Result
-------------
Monitoring nr_free_pages in /proc/vmstat shows a steady decline, with no obvious culprit.

Reproducibility
---------------
1/1.
Comment 1 Chris Sykes 2016-07-28 19:13:52 UTC
Bruce Ashfield has now pulled the fix for this into the linux-yocto 4.1 branch, and I've verified it (the patch) does the job for me.

I guess I can say this is resolved now.