diff options
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.patch | 31 |
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 @@ | |||
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 | |||