* [PATCH 0/2] fix mlock() on vectors vma for ARM and add explicit selinux support
@ 2014-04-10 8:05 Chong Lu
2014-04-10 8:05 ` [PATCH 1/2] lvm2: fix mlock() on vectors vma for ARM Chong Lu
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Chong Lu @ 2014-04-10 8:05 UTC (permalink / raw)
To: Openembedded-devel
The following changes since commit 477ccd867cc71f8277f2670b7be34b3b15300052:
klibc: restylize a bit the recipes (2014-04-06 13:36:20 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib chonglu/lvm2
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/lvm2
Chong Lu (2):
lvm2: fix mlock() on vectors vma for ARM.
lvm2: add explicit selinux support control
meta-oe/recipes-support/lvm2/lvm2.inc | 5 ++++
.../lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch | 31 ++++++++++++++++++++++
2 files changed, 36 insertions(+)
create mode 100644 meta-oe/recipes-support/lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch
--
1.8.1.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] lvm2: fix mlock() on vectors vma for ARM.
2014-04-10 8:05 [PATCH 0/2] fix mlock() on vectors vma for ARM and add explicit selinux support Chong Lu
@ 2014-04-10 8:05 ` Chong Lu
2014-04-10 8:05 ` [PATCH 2/2] lvm2: add explicit selinux support control Chong Lu
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Chong Lu @ 2014-04-10 8:05 UTC (permalink / raw)
To: Openembedded-devel
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
meta-oe/recipes-support/lvm2/lvm2.inc | 1 +
.../lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch | 31 ++++++++++++++++++++++
2 files changed, 32 insertions(+)
create mode 100644 meta-oe/recipes-support/lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch
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@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
+
--
1.8.1.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] lvm2: add explicit selinux support control
2014-04-10 8:05 [PATCH 0/2] fix mlock() on vectors vma for ARM and add explicit selinux support Chong Lu
2014-04-10 8:05 ` [PATCH 1/2] lvm2: fix mlock() on vectors vma for ARM Chong Lu
@ 2014-04-10 8:05 ` Chong Lu
2014-04-20 9:25 ` [PATCH 0/2] fix mlock() on vectors vma for ARM and add explicit selinux support Martin Jansa
2014-04-20 11:23 ` Martin Jansa
3 siblings, 0 replies; 5+ messages in thread
From: Chong Lu @ 2014-04-10 8:05 UTC (permalink / raw)
To: Openembedded-devel
package has configure options controlling selinux support,
so we want to explicitly use them via PACKAGECONFIG.
Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
meta-oe/recipes-support/lvm2/lvm2.inc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc
index 63d2cdb..c6a9ec0 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -30,6 +30,10 @@ EXTRA_OECONF = "--with-user= \
--with-udev-prefix= \
"
+PACKAGECONFIG += "${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
+
+PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,"
+
inherit autotools
do_install_append() {
--
1.8.1.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] fix mlock() on vectors vma for ARM and add explicit selinux support
2014-04-10 8:05 [PATCH 0/2] fix mlock() on vectors vma for ARM and add explicit selinux support Chong Lu
2014-04-10 8:05 ` [PATCH 1/2] lvm2: fix mlock() on vectors vma for ARM Chong Lu
2014-04-10 8:05 ` [PATCH 2/2] lvm2: add explicit selinux support control Chong Lu
@ 2014-04-20 9:25 ` Martin Jansa
2014-04-20 11:23 ` Martin Jansa
3 siblings, 0 replies; 5+ messages in thread
From: Martin Jansa @ 2014-04-20 9:25 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]
On Thu, Apr 10, 2014 at 04:05:54PM +0800, Chong Lu wrote:
> The following changes since commit 477ccd867cc71f8277f2670b7be34b3b15300052:
Both merged, thanks!
>
> klibc: restylize a bit the recipes (2014-04-06 13:36:20 +0100)
>
> are available in the git repository at:
>
> git://git.pokylinux.org/poky-contrib chonglu/lvm2
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/lvm2
>
> Chong Lu (2):
> lvm2: fix mlock() on vectors vma for ARM.
> lvm2: add explicit selinux support control
>
> meta-oe/recipes-support/lvm2/lvm2.inc | 5 ++++
> .../lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch | 31 ++++++++++++++++++++++
> 2 files changed, 36 insertions(+)
> create mode 100644 meta-oe/recipes-support/lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch
>
> --
> 1.8.1.2
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] fix mlock() on vectors vma for ARM and add explicit selinux support
2014-04-10 8:05 [PATCH 0/2] fix mlock() on vectors vma for ARM and add explicit selinux support Chong Lu
` (2 preceding siblings ...)
2014-04-20 9:25 ` [PATCH 0/2] fix mlock() on vectors vma for ARM and add explicit selinux support Martin Jansa
@ 2014-04-20 11:23 ` Martin Jansa
3 siblings, 0 replies; 5+ messages in thread
From: Martin Jansa @ 2014-04-20 11:23 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 1108 bytes --]
On Thu, Apr 10, 2014 at 04:05:54PM +0800, Chong Lu wrote:
> The following changes since commit 477ccd867cc71f8277f2670b7be34b3b15300052:
Both merged, thanks!
>
> klibc: restylize a bit the recipes (2014-04-06 13:36:20 +0100)
>
> are available in the git repository at:
>
> git://git.pokylinux.org/poky-contrib chonglu/lvm2
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/lvm2
>
> Chong Lu (2):
> lvm2: fix mlock() on vectors vma for ARM.
> lvm2: add explicit selinux support control
>
> meta-oe/recipes-support/lvm2/lvm2.inc | 5 ++++
> .../lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch | 31 ++++++++++++++++++++++
> 2 files changed, 36 insertions(+)
> create mode 100644 meta-oe/recipes-support/lvm2/lvm2/mlock-ignore-vectors-gate_vma.patch
>
> --
> 1.8.1.2
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-04-20 11:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-10 8:05 [PATCH 0/2] fix mlock() on vectors vma for ARM and add explicit selinux support Chong Lu
2014-04-10 8:05 ` [PATCH 1/2] lvm2: fix mlock() on vectors vma for ARM Chong Lu
2014-04-10 8:05 ` [PATCH 2/2] lvm2: add explicit selinux support control Chong Lu
2014-04-20 9:25 ` [PATCH 0/2] fix mlock() on vectors vma for ARM and add explicit selinux support Martin Jansa
2014-04-20 11:23 ` Martin Jansa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox