diff options
-rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2.inc | 1 | ||||
-rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc index 4b43328e23..63d2cdb00f 100644 --- a/meta-oe/recipes-support/lvm2/lvm2.inc +++ b/meta-oe/recipes-support/lvm2/lvm2.inc | |||
@@ -10,6 +10,7 @@ INC_PR = "r4" | |||
10 | S = "${WORKDIR}/LVM2.${PV}" | 10 | S = "${WORKDIR}/LVM2.${PV}" |
11 | SRC_URI = "ftp://sources.redhat.com/pub/lvm2/old/LVM2.${PV}.tgz \ | 11 | SRC_URI = "ftp://sources.redhat.com/pub/lvm2/old/LVM2.${PV}.tgz \ |
12 | file://0001-Replace-CPPFunction-with-rl_completion_func_t.patch \ | 12 | file://0001-Replace-CPPFunction-with-rl_completion_func_t.patch \ |
13 | file://mlock-ignore-vectors-gate_vma.patch \ | ||
13 | file://lvm.conf" | 14 | file://lvm.conf" |
14 | 15 | ||
15 | PACKAGECONFIG ??= "readline" | 16 | 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 0000000000..3105136793 --- /dev/null +++ b/meta-oe/recipes-support/lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | Subject: [PATCH] fix: mlock ignore [vectors] gate_vma | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | linux kernel has a new commit f9d4861f for [vectors] vma on ARM | ||
6 | "ARM: 7294/1: vectors: use gate_vma for vectors user mapping". | ||
7 | |||
8 | mlock()/munlock() on a gate_vma would cause NOMEM error, so add | ||
9 | [vectors] to _ignore_maps[], as other gate_vmas [vdso]/[vsyscall] | ||
10 | did. | ||
11 | |||
12 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
13 | --- | ||
14 | lib/mm/memlock.c | 1 + | ||
15 | 1 file changed, 1 insertion(+) | ||
16 | |||
17 | diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c | ||
18 | index 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 | -- | ||
30 | 1.7.9.5 | ||
31 | |||