xen: uprev to 4.6.1
PATCH 1/1 xen: uprev to 4.6.1
From: Chris Patterson <[email protected]>
Drop xsm fix backport, no longer required.
--- ...e-p-policyvers-be-a-local-variable-ver-to.patch | 122 --------------------- recipes-extended/xen/xen_4.6.0.bb | 11 -- recipes-extended/xen/xen_4.6.1.bb | 10 ++ 3 files changed, 10 insertions(+), 133 deletions(-) delete mode 100644 recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch delete mode 100644 recipes-extended/xen/xen_4.6.0.bb create mode 100644 recipes-extended/xen/xen_4.6.1.bb
recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch deleted +0 -122
@@ -1,122 +0,0 @@ -From 6a2f81459e1455d65a9a6f78dd2a0d0278619680 Mon Sep 17 00:00:00 2001 -From: Konrad Rzeszutek Wilk <[email protected]> -Date: Wed, 16 Sep 2015 15:57:27 -0400 -Subject: [PATCH] xen/xsm: Make p->policyvers be a local variable (ver) to shut - up GCC 5.1.1 warnings. -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -policydb.c: In function ‘user_read’: -policydb.c:1443:26: error: ‘buf[2]’ may be used uninitialized in this function [-Werror=maybe-uninitialized] - usrdatum->bounds = le32_to_cpu(buf[2]); - ^ -cc1: all warnings being treated as errors - -Which (as Andrew mentioned) is because GCC cannot assume -that 'p->policyvers' has the same value between checks. - -We make it local, optimize the name to 'ver' and the warnings go away. -We also update another call site with this modification to -make it more inline with the rest of the functions. - -Signed-off-by: Konrad Rzeszutek Wilk <[email protected]> -Acked-by: Daniel De Graaf <[email protected]> ---- - xen/xsm/flask/ss/policydb.c | 17 ++++++++++------- - 1 file changed, 10 insertions(+), 7 deletions(-) - -diff --git a/xen/xsm/flask/ss/policydb.c b/xen/xsm/flask/ss/policydb.c -index a1060b1..eebfe9c 100644 ---- a/xen/xsm/flask/ss/policydb.c -+++ b/xen/xsm/flask/ss/policydb.c -@@ -1258,6 +1258,7 @@ static int role_read(struct policydb *p, struct hashtab *h, void *fp) - int rc; - __le32 buf[3]; - u32 len; -+ u32 ver = p->policyvers; - - role = xzalloc(struct role_datum); - if ( !role ) -@@ -1266,7 +1267,7 @@ static int role_read(struct policydb *p, struct hashtab *h, void *fp) - goto out; - } - -- if ( p->policyvers >= POLICYDB_VERSION_BOUNDARY ) -+ if ( ver >= POLICYDB_VERSION_BOUNDARY ) - rc = next_entry(buf, fp, sizeof(buf[0]) * 3); - else - rc = next_entry(buf, fp, sizeof(buf[0]) * 2); -@@ -1276,7 +1277,7 @@ static int role_read(struct policydb *p, struct hashtab *h, void *fp) - - len = le32_to_cpu(buf[0]); - role->value = le32_to_cpu(buf[1]); -- if ( p->policyvers >= POLICYDB_VERSION_BOUNDARY ) -+ if ( ver >= POLICYDB_VERSION_BOUNDARY ) - role->bounds = le32_to_cpu(buf[2]); - - key = xmalloc_array(char, len + 1); -@@ -1328,6 +1329,7 @@ static int type_read(struct policydb *p, struct hashtab *h, void *fp) - int rc; - __le32 buf[4]; - u32 len; -+ u32 ver = p->policyvers; - - typdatum = xzalloc(struct type_datum); - if ( !typdatum ) -@@ -1336,7 +1338,7 @@ static int type_read(struct policydb *p, struct hashtab *h, void *fp) - return rc; - } - -- if ( p->policyvers >= POLICYDB_VERSION_BOUNDARY ) -+ if ( ver >= POLICYDB_VERSION_BOUNDARY ) - rc = next_entry(buf, fp, sizeof(buf[0]) * 4); - else - rc = next_entry(buf, fp, sizeof(buf[0]) * 3); -@@ -1346,7 +1348,7 @@ static int type_read(struct policydb *p, struct hashtab *h, void *fp) - - len = le32_to_cpu(buf[0]); - typdatum->value = le32_to_cpu(buf[1]); -- if ( p->policyvers >= POLICYDB_VERSION_BOUNDARY ) -+ if ( ver >= POLICYDB_VERSION_BOUNDARY ) - { - u32 prop = le32_to_cpu(buf[2]); - -@@ -1421,6 +1423,7 @@ static int user_read(struct policydb *p, struct hashtab *h, void *fp) - int rc; - __le32 buf[3]; - u32 len; -+ u32 ver = p->policyvers; - - usrdatum = xzalloc(struct user_datum); - if ( !usrdatum ) -@@ -1429,7 +1432,7 @@ static int user_read(struct policydb *p, struct hashtab *h, void *fp) - goto out; - } - -- if ( p->policyvers >= POLICYDB_VERSION_BOUNDARY ) -+ if ( ver >= POLICYDB_VERSION_BOUNDARY ) - rc = next_entry(buf, fp, sizeof(buf[0]) * 3); - else - rc = next_entry(buf, fp, sizeof(buf[0]) * 2); -@@ -1439,7 +1442,7 @@ static int user_read(struct policydb *p, struct hashtab *h, void *fp) - - len = le32_to_cpu(buf[0]); - usrdatum->value = le32_to_cpu(buf[1]); -- if ( p->policyvers >= POLICYDB_VERSION_BOUNDARY ) -+ if ( ver >= POLICYDB_VERSION_BOUNDARY ) - usrdatum->bounds = le32_to_cpu(buf[2]); - - key = xmalloc_array(char, len + 1); -@@ -1457,7 +1460,7 @@ static int user_read(struct policydb *p, struct hashtab *h, void *fp) - if ( rc ) - goto bad; - -- if ( p->policyvers >= POLICYDB_VERSION_MLS ) -+ if ( ver >= POLICYDB_VERSION_MLS ) - { - rc = mls_read_range_helper(&usrdatum->range, fp); - if ( rc ) --- -2.1.0 -
recipes-extended/xen/xen_4.6.0.bb deleted +0 -11
@@ -1,11 +0,0 @@ -require xen.inc - -SRC_URI = " \ - http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz \ - file://xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch \ - " - -SRC_URI[md5sum] = "48e232f90927c08326a7b52bb06f49bc" -SRC_URI[sha256sum] = "6fa1c2431df55aa5950d248e6093b8c8c0f11c357a0adbd348a2186478e80909" - -S = "${WORKDIR}/xen-${PV}"
recipes-extended/xen/xen_4.6.1.bb new file +10 -0
@@ -0,0 +1,10 @@ +require xen.inc + +SRC_URI = " \ + http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz \ + " + +SRC_URI[md5sum] = "df2d854c3c90ffeefaf71e7f868fb326" +SRC_URI[sha256sum] = "44cc2fccba1e147ef4c8da0584ce0f24189c8743de0e3e9a9226da88ddb5f589" + +S = "${WORKDIR}/xen-${PV}"
Signature · 1 line
2.1.4
merged.
Bruce
Quoted 205 lines · Chris Patterson
From: Chris Patterson <[email protected]>
Drop xsm fix backport, no longer required.
Signed-off-by Chris Patterson <[email protected]>--- ...e-p-policyvers-be-a-local-variable-ver-to.patch | 122 --------------------- recipes-extended/xen/xen_4.6.0.bb | 11 -- recipes-extended/xen/xen_4.6.1.bb | 10 ++ 3 files changed, 10 insertions(+), 133 deletions(-) delete mode 100644 recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch delete mode 100644 recipes-extended/xen/xen_4.6.0.bb create mode 100644 recipes-extended/xen/xen_4.6.1.bbdiff --git
a/recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patchb/recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patchdeleted file mode 100644
index efe6e74..0000000
---a/recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch+++/dev/nullrecipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch deleted +0
-4@@ -1,122 +0,0 @@ -From 6a2f81459e1455d65a9a6f78dd2a0d0278619680 Mon Sep 17 00:00:00 2001 -From: Konrad Rzeszutek Wilk <[email protected]> -Date: Wed, 16 Sep 2015 15:57:27 -0400 -Subject: [PATCH] xen/xsm: Make p->policyvers be a local variable (ver) toshut
- up GCC 5.1.1 warnings.recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch deleted +0
-6-MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -policydb.c: In function ‘user_read’: -policydb.c:1443:26: error: ‘buf[2]’ may be used uninitialized in thisfunction [-Werror=maybe-uninitialized]
recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch deleted +0
-22- usrdatum->bounds = le32_to_cpu(buf[2]); - ^ -cc1: all warnings being treated as errors - -Which (as Andrew mentioned) is because GCC cannot assume -that 'p->policyvers' has the same value between checks. - -We make it local, optimize the name to 'ver' and the warnings go away. -We also update another call site with this modification to -make it more inline with the rest of the functions. - -Signed-off-by: Konrad Rzeszutek Wilk <[email protected]> -Acked-by: Daniel De Graaf <[email protected]> ---- - xen/xsm/flask/ss/policydb.c | 17 ++++++++++------- - 1 file changed, 10 insertions(+), 7 deletions(-) - -diff --git a/xen/xsm/flask/ss/policydb.c b/xen/xsm/flask/ss/policydb.c -index a1060b1..eebfe9c 100644 ---- a/xen/xsm/flask/ss/policydb.c -+++ b/xen/xsm/flask/ss/policydb.c -@@ -1258,6 +1258,7 @@ static int role_read(struct policydb *p, structhashtab *h, void *fp)
recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch deleted +0
-8- int rc; - __le32 buf[3]; - u32 len; -+ u32 ver = p->policyvers; - - role = xzalloc(struct role_datum); - if ( !role ) -@@ -1266,7 +1267,7 @@ static int role_read(struct policydb *p, structhashtab *h, void *fp)
recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch deleted +0
-9- goto out; - } - -- if ( p->policyvers >= POLICYDB_VERSION_BOUNDARY ) -+ if ( ver >= POLICYDB_VERSION_BOUNDARY ) - rc = next_entry(buf, fp, sizeof(buf[0]) * 3); - else - rc = next_entry(buf, fp, sizeof(buf[0]) * 2); -@@ -1276,7 +1277,7 @@ static int role_read(struct policydb *p, structhashtab *h, void *fp)
recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch deleted +0
-9- - len = le32_to_cpu(buf[0]); - role->value = le32_to_cpu(buf[1]); -- if ( p->policyvers >= POLICYDB_VERSION_BOUNDARY ) -+ if ( ver >= POLICYDB_VERSION_BOUNDARY ) - role->bounds = le32_to_cpu(buf[2]); - - key = xmalloc_array(char, len + 1); -@@ -1328,6 +1329,7 @@ static int type_read(struct policydb *p, structhashtab *h, void *fp)
recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch deleted +0
-8- int rc; - __le32 buf[4]; - u32 len; -+ u32 ver = p->policyvers; - - typdatum = xzalloc(struct type_datum); - if ( !typdatum ) -@@ -1336,7 +1338,7 @@ static int type_read(struct policydb *p, structhashtab *h, void *fp)
recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch deleted +0
-9- return rc; - } - -- if ( p->policyvers >= POLICYDB_VERSION_BOUNDARY ) -+ if ( ver >= POLICYDB_VERSION_BOUNDARY ) - rc = next_entry(buf, fp, sizeof(buf[0]) * 4); - else - rc = next_entry(buf, fp, sizeof(buf[0]) * 3); -@@ -1346,7 +1348,7 @@ static int type_read(struct policydb *p, structhashtab *h, void *fp)
recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch deleted +0
-9- - len = le32_to_cpu(buf[0]); - typdatum->value = le32_to_cpu(buf[1]); -- if ( p->policyvers >= POLICYDB_VERSION_BOUNDARY ) -+ if ( ver >= POLICYDB_VERSION_BOUNDARY ) - { - u32 prop = le32_to_cpu(buf[2]); - -@@ -1421,6 +1423,7 @@ static int user_read(struct policydb *p, structhashtab *h, void *fp)
recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch deleted +0
-8- int rc; - __le32 buf[3]; - u32 len; -+ u32 ver = p->policyvers; - - usrdatum = xzalloc(struct user_datum); - if ( !usrdatum ) -@@ -1429,7 +1432,7 @@ static int user_read(struct policydb *p, structhashtab *h, void *fp)
recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch deleted +0
-9- goto out; - } - -- if ( p->policyvers >= POLICYDB_VERSION_BOUNDARY ) -+ if ( ver >= POLICYDB_VERSION_BOUNDARY ) - rc = next_entry(buf, fp, sizeof(buf[0]) * 3); - else - rc = next_entry(buf, fp, sizeof(buf[0]) * 2); -@@ -1439,7 +1442,7 @@ static int user_read(struct policydb *p, structhashtab *h, void *fp)
recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch deleted +0
-9- - len = le32_to_cpu(buf[0]); - usrdatum->value = le32_to_cpu(buf[1]); -- if ( p->policyvers >= POLICYDB_VERSION_BOUNDARY ) -+ if ( ver >= POLICYDB_VERSION_BOUNDARY ) - usrdatum->bounds = le32_to_cpu(buf[2]); - - key = xmalloc_array(char, len + 1); -@@ -1457,7 +1460,7 @@ static int user_read(struct policydb *p, structhashtab *h, void *fp)
recipes-extended/xen/files/xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch deleted +0
-11- if ( rc ) - goto bad; - -- if ( p->policyvers >= POLICYDB_VERSION_MLS ) -+ if ( ver >= POLICYDB_VERSION_MLS ) - { - rc = mls_read_range_helper(&usrdatum->range, fp); - if ( rc ) --- -2.1.0 -recipes-extended/xen/ renamed from recipes-extended/xen/xen_4.6.0.bb +0
-0xen_4.6.0.bb
deleted file mode 100644
index 7650e46..0000000recipes-extended/xen/xen_4.6.0.bb deleted +0
-9@@ -1,11 +0,0 @@ -require xen.inc - -SRC_URI = " \ - http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz \ - file://xen-xsm-Make-p-policyvers-be-a-local-variable-ver-to.patch \ - " - -SRC_URI[md5sum] = "48e232f90927c08326a7b52bb06f49bc" -SRC_URI[sha256sum] ="
6fa1c2431df55aa5950d248e6093b8c8c0f11c357a0adbd348a2186478e80909"recipes-extended/xen/xen_4.6.0.bb deleted +0
-2- -S = "${WORKDIR}/xen-${PV}"recipes-extended/xen/ renamed from recipes-extended/xen/xen_4.6.1.bb +0
-0xen_4.6.1.bb
new file mode 100644
index 0000000..0adf8adrecipes-extended/xen/xen_4.6.1.bb new file +8
-0@@ -0,0 +1,10 @@ +require xen.inc + +SRC_URI = " \ + http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz \ + " + +SRC_URI[md5sum] = "df2d854c3c90ffeefaf71e7f868fb326" +SRC_URI[sha256sum] ="
44cc2fccba1e147ef4c8da0584ce0f24189c8743de0e3e9a9226da88ddb5f589"recipes-extended/xen/xen_4.6.1.bb new file +2
-1+ +S = "${WORKDIR}/xen-${PV}" --2.1.4
--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"