[oe-commits] Chong.Lu at windriver.com : lvm2: fix mlock() on vectors vma for ARM.
git at git.openembedded.org
git at git.openembedded.org
Fri Apr 18 09:48:11 UTC 2014
Module: meta-openembedded.git
Branch: master-next
Commit: 9938327963d0a3eb964f22177f18d49374a31cac
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=9938327963d0a3eb964f22177f18d49374a31cac
Author: Chong.Lu at windriver.com <Chong.Lu at windriver.com>
Date: Thu Apr 10 16:05:55 2014 +0800
lvm2: fix mlock() on vectors vma for ARM.
Signed-off-by: Xin Ouyang <Xin.Ouyang at windriver.com>
Signed-off-by: Randy MacLeod <Randy.MacLeod at windriver.com>
Signed-off-by: Chong Lu <Chong.Lu at windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
meta-oe/recipes-support/lvm2/lvm2.inc | 1 +
.../lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch | 31 ++++++++++++++++++++++
2 files changed, 32 insertions(+)
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc
index 4b43328..63d2cdb 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -10,6 +10,7 @@ INC_PR = "r4"
S = "${WORKDIR}/LVM2.${PV}"
SRC_URI = "ftp://sources.redhat.com/pub/lvm2/old/LVM2.${PV}.tgz \
file://0001-Replace-CPPFunction-with-rl_completion_func_t.patch \
+ file://mlock-ignore-vectors-gate_vma.patch \
file://lvm.conf"
PACKAGECONFIG ??= "readline"
diff --git a/meta-oe/recipes-support/lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch b/meta-oe/recipes-support/lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch
new file mode 100644
index 0000000..3105136
--- /dev/null
+++ b/meta-oe/recipes-support/lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch
@@ -0,0 +1,31 @@
+Subject: [PATCH] fix: mlock ignore [vectors] gate_vma
+
+Upstream-Status: Pending
+
+linux kernel has a new commit f9d4861f for [vectors] vma on ARM
+"ARM: 7294/1: vectors: use gate_vma for vectors user mapping".
+
+mlock()/munlock() on a gate_vma would cause NOMEM error, so add
+[vectors] to _ignore_maps[], as other gate_vmas [vdso]/[vsyscall]
+did.
+
+Signed-off-by: Xin Ouyang <Xin.Ouyang at windriver.com>
+---
+ lib/mm/memlock.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c
+index 8c631bf..a6b1955 100644
+--- a/lib/mm/memlock.c
++++ b/lib/mm/memlock.c
+@@ -84,6 +84,7 @@ static int _default_priority;
+ static const char * const _ignore_maps[] = {
+ "[vdso]",
+ "[vsyscall]",
++ "[vectors]",
+ };
+
+ /* default blacklist for maps */
+--
+1.7.9.5
+
More information about the Openembedded-commits
mailing list