qemu: Upgrade to 2.8.0
PATCH 1/1 qemu: Upgrade to 2.8.0
Testing:
It was test running testimage over core-image-{minimal, sato} in qemu{x86,arm,ppc,mips} archs.
Also the qemu unit test (ptest) was run in the target and all test pass except a previous failing one:
ERROR:/usr/src/debug/qemu/2.7.0-r1/qemu-2.7.0/tests/test-qht-par.c:20:test_qht:
assertion failed (rc == 0): (32512 == 0)
Rebased patches:
- exclude-some-arm-EABI-obsolete-syscalls.patc
Removed patches (already in upstream):
- 0001-pci-assign-sync-MSI-MSI-X-cap-and-table-with-PCIDevi.patch
- 0002-fix-CVE-2016-7423.patch
- 0003-fix-CVE-2016-7908.patch
- 0004-fix-CVE-2016-7909.patch
Changelog,
http://wiki.qemu.org/ChangeLog/2.8
---
meta/recipes-devtools/qemu/qemu.inc | 2 -
...sync-MSI-MSI-X-cap-and-table-with-PCIDevi.patch | 71 ----------------------
...0001-virtio-zero-vq-inuse-in-virtio_reset.patch | 57 -----------------
.../qemu/qemu/0002-fix-CVE-2016-7423.patch | 45 --------------
.../qemu/qemu/0003-fix-CVE-2016-7908.patch | 62 -------------------
.../qemu/qemu/0004-fix-CVE-2016-7909.patch | 42 -------------
.../exclude-some-arm-EABI-obsolete-syscalls.patch | 28 ++++-----
.../qemu/{qemu_2.7.0.bb => qemu_2.8.0.bb} | 9 +--
8 files changed, 15 insertions(+), 301 deletions(-)
delete mode 100644 meta/recipes-devtools/qemu/qemu/0001-pci-assign-sync-MSI-MSI-X-cap-and-table-with-PCIDevi.patch
delete mode 100644 meta/recipes-devtools/qemu/qemu/0001-virtio-zero-vq-inuse-in-virtio_reset.patch
delete mode 100644 meta/recipes-devtools/qemu/qemu/0002-fix-CVE-2016-7423.patch
delete mode 100644 meta/recipes-devtools/qemu/qemu/0003-fix-CVE-2016-7908.patch
delete mode 100644 meta/recipes-devtools/qemu/qemu/0004-fix-CVE-2016-7909.patch
rename meta/recipes-devtools/qemu/{qemu_2.7.0.bb => qemu_2.8.0.bb} (64%)meta/recipes-devtools/qemu/qemu.inc +0 -2
@@ -9,8 +9,6 @@ require qemu-targets.inc inherit autotools ptest BBCLASSEXTEND = "native nativesdk" -PR = "r1" - # QEMU_TARGETS is overridable variable QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el ppc sh4 x86_64"
meta/recipes-devtools/qemu/qemu/0001-pci-assign-sync-MSI-MSI-X-cap-and-table-with-PCIDevi.patch deleted +0 -71
71 lines not on this page · raw message
meta/recipes-devtools/qemu/qemu/0001-virtio-zero-vq-inuse-in-virtio_reset.patch deleted +0 -57
57 lines not on this page · raw message
meta/recipes-devtools/qemu/qemu/0002-fix-CVE-2016-7423.patch deleted +0 -45
45 lines not on this page · raw message
meta/recipes-devtools/qemu/qemu/0003-fix-CVE-2016-7908.patch deleted +0 -62
62 lines not on this page · raw message
meta/recipes-devtools/qemu/qemu/0004-fix-CVE-2016-7909.patch deleted +0 -42
42 lines not on this page · raw message
meta/recipes-devtools/qemu/qemu/exclude-some-arm-EABI-obsolete-syscalls.patch +13 -15
@@ -1,4 +1,7 @@ -[PATCH] exclude some arm EABI obsolete syscalls +From 51910343594b3f655a205a096e092ecdacc253da Mon Sep 17 00:00:00 2001 +From: "Roy.Li" <[email protected]> +Date: Mon, 23 Jun 2014 14:28:30 +0800 +Subject: [PATCH 02/11] [PATCH] exclude some arm EABI obsolete syscalls Upstream-Status: Pending
@@ -26,15 +29,16 @@ or kernel header: /usr/include/asm/unistd.h Signed-off-by: Roy.Li <[email protected]> + --- - qemu-seccomp.c | 14 ++++++++------ - 1 file changed, 8 insertions(+), 6 deletions(-) + qemu-seccomp.c | 13 ++++++++----- + 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/qemu-seccomp.c b/qemu-seccomp.c -index caa926e..5a78502 100644 +index df75d9c..0e577f8 100644 --- a/qemu-seccomp.c +++ b/qemu-seccomp.c -@@ -25,15 +25,21 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { +@@ -35,15 +35,21 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { { SCMP_SYS(timer_settime), 255 }, { SCMP_SYS(timer_gettime), 254 }, { SCMP_SYS(futex), 253 },
@@ -58,7 +62,7 @@ index caa926e..5a78502 100644 { SCMP_SYS(mprotect), 246 }, { SCMP_SYS(execve), 245 }, { SCMP_SYS(open), 245 }, -@@ -48,13 +54,11 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { +@@ -58,7 +64,6 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { { SCMP_SYS(bind), 245 }, { SCMP_SYS(listen), 245 }, { SCMP_SYS(semget), 245 },
@@ -66,13 +70,7 @@ index caa926e..5a78502 100644 { SCMP_SYS(gettimeofday), 245 }, { SCMP_SYS(readlink), 245 }, { SCMP_SYS(access), 245 }, - { SCMP_SYS(prctl), 245 }, - { SCMP_SYS(signalfd), 245 }, -- { SCMP_SYS(getrlimit), 245 }, - { SCMP_SYS(set_tid_address), 245 }, - { SCMP_SYS(statfs), 245 }, - { SCMP_SYS(unlink), 245 }, -@@ -93,7 +97,6 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { +@@ -104,7 +109,6 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { { SCMP_SYS(times), 245 }, { SCMP_SYS(exit), 245 }, { SCMP_SYS(clock_gettime), 245 },
@@ -80,7 +78,7 @@ index caa926e..5a78502 100644 { SCMP_SYS(restart_syscall), 245 }, { SCMP_SYS(pwrite64), 245 }, { SCMP_SYS(nanosleep), 245 }, -@@ -182,7 +185,6 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { +@@ -194,7 +198,6 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { { SCMP_SYS(lstat64), 241 }, { SCMP_SYS(sendfile64), 241 }, { SCMP_SYS(ugetrlimit), 241 },
@@ -89,5 +87,5 @@ index caa926e..5a78502 100644 { SCMP_SYS(rt_sigqueueinfo), 241 }, { SCMP_SYS(rt_tgsigqueueinfo), 241 }, -- -1.9.1 +2.1.4
meta/recipes-devtools/qemu/qemu_2.8.0.bb renamed from meta/recipes-devtools/qemu/qemu_2.7.0.bb +2 -7
@@ -9,16 +9,11 @@ SRC_URI += "file://configure-fix-Darwin-target-detection.patch \ file://no-valgrind.patch \ file://pathlimit.patch \ file://qemu-2.5.0-cflags.patch \ - file://0001-virtio-zero-vq-inuse-in-virtio_reset.patch \ - file://0002-fix-CVE-2016-7423.patch \ - file://0003-fix-CVE-2016-7908.patch \ - file://0004-fix-CVE-2016-7909.patch \ - file://0001-pci-assign-sync-MSI-MSI-X-cap-and-table-with-PCIDevi.patch \ " SRC_URI_prepend = "http://wiki.qemu-project.org/download/${BP}.tar.bz2" -SRC_URI[md5sum] = "08d4d06d1cb598efecd796137f4844ab" -SRC_URI[sha256sum] = "326e739506ba690daf69fc17bd3913a6c313d9928d743bd8eddb82f403f81e53" +SRC_URI[md5sum] = "17940dce063b6ce450a12e719a6c9c43" +SRC_URI[sha256sum] = "dafd5d7f649907b6b617b822692f4c82e60cf29bc0fc58bc2036219b591e5e62" COMPATIBLE_HOST_mipsarchn32 = "null" COMPATIBLE_HOST_mipsarchn64 = "null"
Signature · 1 line
2.1.4
Hi,
Quoted 18 lines · Aníbal Limón
Testing:
It was test running testimage over core-image-{minimal, sato} in qemu{x86,arm,ppc,mips} archs.
Also the qemu unit test (ptest) was run in the target and all test pass except a previous failing one:
ERROR:/usr/src/debug/qemu/2.7.0-r1/qemu-2.7.0/tests/test-qht- par.c:20:test_qht:
assertion failed (rc == 0): (32512 == 0)Rebased patches:
- exclude-some-arm-EABI-obsolete-syscalls.patc
Removed patches (already in upstream):
Quoted 8 lines
- 0001-pci-assign-sync-MSI-MSI-X-cap-and-table-with-PCIDevi.patch
- 0002-fix-CVE-2016-7423.patch
- 0003-fix-CVE-2016-7908.patch
- 0004-fix-CVE-2016-7909.patchChangelog,
The patch 0001-target-mips-add-24KEc-CPU-definition.patch should also be removed, as it's been merged.
Cheers,
Andre'
Quoted 26 lines · André Draszik
Hi,
Quoted 23 lines · Aníbal Limón
Testing:
It was test running testimage over core-image-{minimal, sato} in qemu{x86,arm,ppc,mips} archs.
Also the qemu unit test (ptest) was run in the target and all test pass except a previous failing one:
ERROR:/usr/src/debug/qemu/2.7.0-r1/qemu-2.7.0/tests/test-qht- par.c:20:test_qht:
assertion failed (rc == 0): (32512 == 0)Rebased patches:
- exclude-some-arm-EABI-obsolete-syscalls.patc
Removed patches (already in upstream):
- 0001-pci-assign-sync-MSI-MSI-X-cap-and-table-with-PCIDevi.patch
- 0002-fix-CVE-2016-7423.patch
- 0003-fix-CVE-2016-7908.patch
- 0004-fix-CVE-2016-7909.patch
Quoted 6 lines
Quoted 3 lines
Changelog,
The patch 0001-target-mips-add-24KEc-CPU-definition.patch should also be removed, as it's been merged.
It looks like Qemu-Arm-versatilepb-Add-memory-size-checking.patch can also be removed.
A.
Quoted 29 lines · André Draszik
Quoted 28 lines · André Draszik
Hi,
Quoted 25 lines · Aníbal Limón
Testing:
It was test running testimage over core-image-{minimal, sato} in qemu{x86,arm,ppc,mips} archs.
Also the qemu unit test (ptest) was run in the target and all test pass except a previous failing one:
ERROR:/usr/src/debug/qemu/2.7.0-r1/qemu-2.7.0/tests/test-qht- par.c:20:test_qht:
assertion failed (rc == 0): (32512 == 0)Rebased patches:
- exclude-some-arm-EABI-obsolete-syscalls.patc
Removed patches (already in upstream):
- 0001-pci-assign-sync-MSI-MSI-X-cap-and-table-with-PCIDevi.patch
- 0002-fix-CVE-2016-7423.patch
- 0003-fix-CVE-2016-7908.patch
- 0004-fix-CVE-2016-7909.patchChangelog,
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
The patch 0001-target-mips-add-24KEc-CPU-definition.patch should also be removed, as it's been merged.
It looks like Qemu-Arm-versatilepb-Add-memory-size-checking.patch can also be removed.
Hi,
I'll remove those patches and test again on qemuarm, i'll send a v2 soon,
Cheers,
alimon
Quoted 3 lines
A.
Quoted 2 lines · André Draszik
The patch 0001-target-mips-add-24KEc-CPU-definition.patch should also be removed, as it's been merged.
Why is it applying without error?
Alex
Quoted 6 lines · Alexander Kanavin
Quoted 2 lines · André Draszik
The patch 0001-target-mips-add-24KEc-CPU-definition.patch should also be removed, as it's been merged.
Why is it applying without error?
Because the context doesn't change (at all), only line numbers.
Cheers,
Andre'
Quoted 9 lines · André Draszik
Quoted 6 lines · Alexander Kanavin
Quoted 2 lines · André Draszik
The patch 0001-target-mips-add-24KEc-CPU-definition.patch should also be removed, as it's been merged.
Why is it applying without error?
Because the context doesn't change (at all), only line numbers.
So the patch is incorrectly being applied in the wrong location?
Alex
Quoted 8 lines · Alexander Kanavin
Quoted 7 lines · André Draszik
Quoted 6 lines · Alexander Kanavin
Quoted 3 lines · André Draszik
The patch 0001-target-mips-add-24KEc-CPU-definition.patch should also be
removed, as it's been merged.
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Why is it applying without error?
Because the context doesn't change (at all), only line numbers.
So the patch is incorrectly being applied in the wrong location?
Looks like it. I'd say you'd have two entries with the same contents next to each other in the array after applying the patch.
Cheers,
Andre'
Quoted 4 lines · André Draszik
Looks like it. I'd say you'd have two entries with the same contents next to
each other in the array after applying the patch.
How's that series to force the fuzz to 0 going, Alex?
Ross
Quoted 6 lines · Ross
Looks like it. I'd say you'd have two entries with the same contents next to
each other in the array after applying the patch.How's that series to force the fuzz to 0 going, Alex?
It's blocked by https://bugzilla.yoctoproject.org/show_bug.cgi?id=8325#c4
You need to ask this question from Paul.
Alex
Quoted 11 lines · Alexander Kanavin
Quoted 6 lines · Ross
Looks like it. I'd say you'd have two entries with the same contents next to
each other in the array after applying the patch.How's that series to force the fuzz to 0 going, Alex?
It's blocked by https://bugzilla.yoctoproject.org/show_bug.cgi?id=8325#c4
You need to ask this question from Paul.
Actually, I am not sure if fuzz=0 would even help in a case where the context is exactly the same, and only offsets are different...
Cheers,
Andre'