summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch')
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch31
1 files changed, 31 insertions, 0 deletions
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 000000000..310513679
--- /dev/null
+++ b/meta-oe/recipes-support/lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch
@@ -0,0 +1,31 @@
1Subject: [PATCH] fix: mlock ignore [vectors] gate_vma
2
3Upstream-Status: Pending
4
5linux kernel has a new commit f9d4861f for [vectors] vma on ARM
6"ARM: 7294/1: vectors: use gate_vma for vectors user mapping".
7
8mlock()/munlock() on a gate_vma would cause NOMEM error, so add
9[vectors] to _ignore_maps[], as other gate_vmas [vdso]/[vsyscall]
10did.
11
12Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
13---
14 lib/mm/memlock.c | 1 +
15 1 file changed, 1 insertion(+)
16
17diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c
18index 8c631bf..a6b1955 100644
19--- a/lib/mm/memlock.c
20+++ b/lib/mm/memlock.c
21@@ -84,6 +84,7 @@ static int _default_priority;
22 static const char * const _ignore_maps[] = {
23 "[vdso]",
24 "[vsyscall]",
25+ "[vectors]",
26 };
27
28 /* default blacklist for maps */
29--
301.7.9.5
31