Disable CONFIG_MEMCG_KMEM to avoid slab leak
The kernel memory accounting in the RHEL kernel is broken and results in a slab memory leak when it is enabled. See the following bug for details: https://bugzilla.redhat.com/show_bug.cgi?id=1507149 Unfortunately, this option is enabled by default, so it must be disabled. Even worse, the kernel won't compile with the option disabled, so a fix for the compile error is also included. Change-Id: I627106ae25f86204c1954c1c21171bbef348afaf Closes-Bug: 1835534 Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
From 0bdbfc48c66177522eae9bb7c0449f39f418e609 Mon Sep 17 00:00:00 2001
|
||||
From: Jim Somerville <Jim.Somerville@windriver.com>
|
||||
Date: Wed, 30 May 2018 13:12:03 -0400
|
||||
Subject: [PATCH 4/5] Compile issues
|
||||
From 6b9579fcfb774f20f114ebc621a925d35d3aa034 Mon Sep 17 00:00:00 2001
|
||||
From: Bart Wensley <barton.wensley@windriver.com>
|
||||
Date: Tue, 9 Jul 2019 06:36:33 -0500
|
||||
Subject: [PATCH 1/1] Compile issues
|
||||
|
||||
Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com>
|
||||
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
|
||||
---
|
||||
SPECS/kernel.spec | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
SPECS/kernel.spec | 9 +++++++++
|
||||
1 file changed, 9 insertions(+)
|
||||
|
||||
diff --git a/SPECS/kernel.spec b/SPECS/kernel.spec
|
||||
index 01dd989..d45c419 100644
|
||||
index 3f774c2..b69967d 100644
|
||||
--- a/SPECS/kernel.spec
|
||||
+++ b/SPECS/kernel.spec
|
||||
@@ -489,6 +489,10 @@ Patch40024: aic94xx-Skip-reading-user-settings-if-flash-is-not-f.patch
|
||||
@@ -489,6 +489,12 @@ Patch40024: aic94xx-Skip-reading-user-settings-if-flash-is-not-f.patch
|
||||
Patch40025: dpt_i2o-fix-build-warning.patch
|
||||
# DRBD was choking on write same
|
||||
Patch40026: turn-off-write-same-in-smartqpi-driver.patch
|
||||
@@ -20,18 +20,21 @@ index 01dd989..d45c419 100644
|
||||
+Patch40027: fix-compilation-issues.patch
|
||||
+# Fix CentOS 7.6 upgrade compile error
|
||||
+Patch40028: fix-CentOS-7.6-upgrade-compile-error.patch
|
||||
+# Compile fix for disabling CONFIG_MEMCG_KMEM
|
||||
+Patch40029: compile-fix-for-disabling-CONFIG_MEMCG_KMEM.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/kernel-%{KVRA}-root
|
||||
|
||||
@@ -859,6 +863,8 @@ ApplyOptionalPatch US103091-IMA-System-Configuration.patch
|
||||
@@ -859,6 +865,9 @@ ApplyOptionalPatch US103091-IMA-System-Configuration.patch
|
||||
ApplyOptionalPatch aic94xx-Skip-reading-user-settings-if-flash-is-not-f.patch
|
||||
ApplyOptionalPatch dpt_i2o-fix-build-warning.patch
|
||||
ApplyOptionalPatch turn-off-write-same-in-smartqpi-driver.patch
|
||||
+ApplyOptionalPatch fix-compilation-issues.patch
|
||||
+ApplyOptionalPatch fix-CentOS-7.6-upgrade-compile-error.patch
|
||||
+ApplyOptionalPatch compile-fix-for-disabling-CONFIG_MEMCG_KMEM.patch
|
||||
|
||||
# Any further pre-build tree manipulations happen here.
|
||||
|
||||
--
|
||||
2.7.4
|
||||
1.8.3.1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user