diff options
author | John Helmert III <ajak@gentoo.org> | 2022-05-19 12:25:33 -0500 |
---|---|---|
committer | John Helmert III <ajak@gentoo.org> | 2022-05-22 10:59:11 -0500 |
commit | adb5b77a6df5abbc85fbb62bd57a1465ec7a7b4b (patch) | |
tree | 3f8cecd0042ea82a7e164d3a20cbbb049890e503 /app-emulation/qemu/files | |
parent | dev-python/sphinx_celery: enable py3.10 (diff) | |
download | gentoo-adb5b77a6df5abbc85fbb62bd57a1465ec7a7b4b.tar.gz gentoo-adb5b77a6df5abbc85fbb62bd57a1465ec7a7b4b.tar.bz2 gentoo-adb5b77a6df5abbc85fbb62bd57a1465ec7a7b4b.zip |
app-emulation/qemu: drop 6.2.0, 6.2.0-r3, 6.2.0-r4, 7.0.0_rc4
Closes: https://bugs.gentoo.org/831046
Bug: https://bugs.gentoo.org/839762
Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'app-emulation/qemu/files')
3 files changed, 0 insertions, 268 deletions
diff --git a/app-emulation/qemu/files/qemu-6.2.0-also-build-virtfs-proxy-helper.patch b/app-emulation/qemu/files/qemu-6.2.0-also-build-virtfs-proxy-helper.patch deleted file mode 100644 index af220802069c..000000000000 --- a/app-emulation/qemu/files/qemu-6.2.0-also-build-virtfs-proxy-helper.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 42e53a0aadb76dfa7c11cd3b14eb4a41efba9bbe Mon Sep 17 00:00:00 2001 -From: Matthias Maier <tamiko@43-1.org> -Date: Tue, 11 Jan 2022 07:20:31 -0600 -Subject: [PATCH] also build virtfs-proxy-helper - -The Gentoo ebuild splits the qemu build into a softmmu, user and tool -phase in order to be able to build and link some of the qemu emulators -statically. This unfortunately has the consequence that we never -configure with "have_virtfs" and "have_tools" at the same time. - -As a workaround, simply build the virtfs userland unconditionally. After -all, it is a tiny executable ---- - meson.build | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/meson.build b/meson.build -index fbe856700..d6918b04c 100644 ---- a/meson.build -+++ b/meson.build -@@ -1390,7 +1390,7 @@ have_virtfs = (targetos == 'linux' and - libattr.found() and - libcap_ng.found()) - --have_virtfs_proxy_helper = have_virtfs and have_tools -+have_virtfs_proxy_helper = have_tools and libcap_ng.found() - - - - if get_option('virtfs').enabled() - if not have_virtfs --- -2.34.1 - diff --git a/app-emulation/qemu/files/qemu-6.2.0-glibc-2.35-rseq-seccomp-virtiofsd.patch b/app-emulation/qemu/files/qemu-6.2.0-glibc-2.35-rseq-seccomp-virtiofsd.patch deleted file mode 100644 index 156d94b0f57e..000000000000 --- a/app-emulation/qemu/files/qemu-6.2.0-glibc-2.35-rseq-seccomp-virtiofsd.patch +++ /dev/null @@ -1,61 +0,0 @@ -https://gitlab.com/qemu/qemu/-/commit/7b223e38603de3a75602e14914d26f9d4baf52eb.patch -https://bugs.gentoo.org/836300 - -From 7b223e38603de3a75602e14914d26f9d4baf52eb Mon Sep 17 00:00:00 2001 -From: Christian Ehrhardt <christian.ehrhardt@canonical.com> -Date: Wed, 9 Feb 2022 12:14:56 +0100 -Subject: [PATCH] tools/virtiofsd: Add rseq syscall to the seccomp allowlist - -The virtiofsd currently crashes when used with glibc 2.35. -That is due to the rseq system call being added to every thread -creation [1][2]. - -[1]: https://www.efficios.com/blog/2019/02/08/linux-restartable-sequences/ -[2]: https://sourceware.org/pipermail/libc-alpha/2022-February/136040.html - -This happens not at daemon start, but when a guest connects - - /usr/lib/qemu/virtiofsd -f --socket-path=/tmp/testvfsd -o sandbox=chroot \ - -o source=/var/guests/j-virtiofs --socket-group=kvm - virtio_session_mount: Waiting for vhost-user socket connection... - # start ok, now guest will connect - virtio_session_mount: Received vhost-user socket connection - virtio_loop: Entry - fv_queue_set_started: qidx=0 started=1 - fv_queue_set_started: qidx=1 started=1 - Bad system call (core dumped) - -We have to put rseq on the seccomp allowlist to avoid that the daemon -is crashing in this case. - -Reported-by: Michael Hudson-Doyle <michael.hudson@canonical.com> -Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com> -Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> -Message-id: 20220209111456.3328420-1-christian.ehrhardt@canonical.com - -[Moved rseq to its alphabetically ordered position in the seccomp -allowlist. ---Stefan] -Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> ---- - tools/virtiofsd/passthrough_seccomp.c | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/tools/virtiofsd/passthrough_seccomp.c b/tools/virtiofsd/passthrough_seccomp.c -index a3ce9f898d..2bc0127b69 100644 ---- a/tools/virtiofsd/passthrough_seccomp.c -+++ b/tools/virtiofsd/passthrough_seccomp.c -@@ -91,6 +91,9 @@ static const int syscall_allowlist[] = { - SCMP_SYS(renameat2), - SCMP_SYS(removexattr), - SCMP_SYS(restart_syscall), -+#ifdef __NR_rseq -+ SCMP_SYS(rseq), /* required since glibc 2.35 */ -+#endif - SCMP_SYS(rt_sigaction), - SCMP_SYS(rt_sigprocmask), - SCMP_SYS(rt_sigreturn), --- -GitLab - - diff --git a/app-emulation/qemu/files/qemu-6.2.0-user-SLIC-crash.patch b/app-emulation/qemu/files/qemu-6.2.0-user-SLIC-crash.patch deleted file mode 100644 index 76809782b5f7..000000000000 --- a/app-emulation/qemu/files/qemu-6.2.0-user-SLIC-crash.patch +++ /dev/null @@ -1,173 +0,0 @@ -Gentoo bug: https://bugs.gentoo.org/830170 -Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/786 -Patches taken from -https://lore.kernel.org/qemu-devel/20211227193120.1084176-1-imammedo@redhat.com/ - -commit dce6c86f54eab61028e110497c222e73381379df -Author: Igor Mammedov <imammedo@redhat.com> -Date: Mon Dec 27 14:31:17 2021 -0500 - - acpi: fix QEMU crash when started with SLIC table - - if QEMU is started with used provided SLIC table blob, - - -acpitable sig=SLIC,oem_id='CRASH ',oem_table_id="ME",oem_rev=00002210,asl_compiler_id="",asl_compiler_rev=00000000,data=/dev/null - it will assert with: - - hw/acpi/aml-build.c:61:build_append_padded_str: assertion failed: (len <= maxlen) - - and following backtrace: - - ... - build_append_padded_str (array=0x555556afe320, str=0x555556afdb2e "CRASH ME", maxlen=0x6, pad=0x20) at hw/acpi/aml-build.c:61 - acpi_table_begin (desc=0x7fffffffd1b0, array=0x555556afe320) at hw/acpi/aml-build.c:1727 - build_fadt (tbl=0x555556afe320, linker=0x555557ca3830, f=0x7fffffffd318, oem_id=0x555556afdb2e "CRASH ME", oem_table_id=0x555556afdb34 "ME") at hw/acpi/aml-build.c:2064 - ... - - which happens due to acpi_table_begin() expecting NULL terminated - oem_id and oem_table_id strings, which is normally the case, but - in case of user provided SLIC table, oem_id points to table's blob - directly and as result oem_id became longer than expected. - - Fix issue by handling oem_id consistently and make acpi_get_slic_oem() - return NULL terminated strings. - - PS: - After [1] refactoring, oem_id semantics became inconsistent, where - NULL terminated string was coming from machine and old way pointer - into byte array coming from -acpitable option. That used to work - since build_header() wasn't expecting NULL terminated string and - blindly copied the 1st 6 bytes only. - - However commit [2] broke that by replacing build_header() with - acpi_table_begin(), which was expecting NULL terminated string - and was checking oem_id size. - - 1) 602b45820 ("acpi: Permit OEM ID and OEM table ID fields to be changed") - 2) - Fixes: 4b56e1e4eb08 ("acpi: build_fadt: use acpi_table_begin()/acpi_table_end() instead of build_header()") - Resolves: https://gitlab.com/qemu-project/qemu/-/issues/786 - Signed-off-by: Igor Mammedov <imammedo@redhat.com> - -diff --git a/hw/acpi/core.c b/hw/acpi/core.c -index 1e004d0078..3e811bf03c 100644 ---- a/hw/acpi/core.c -+++ b/hw/acpi/core.c -@@ -345,8 +345,8 @@ int acpi_get_slic_oem(AcpiSlicOem *oem) - struct acpi_table_header *hdr = (void *)(u - sizeof(hdr->_length)); - - if (memcmp(hdr->sig, "SLIC", 4) == 0) { -- oem->id = hdr->oem_id; -- oem->table_id = hdr->oem_table_id; -+ oem->id = g_strndup(hdr->oem_id, 6); -+ oem->table_id = g_strndup(hdr->oem_table_id, 8); - return 0; - } - } -diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c -index a99c6e4fe3..570f82997b 100644 ---- a/hw/i386/acpi-build.c -+++ b/hw/i386/acpi-build.c -@@ -2721,6 +2721,8 @@ void acpi_build(AcpiBuildTables *tables, MachineState *machine) - - /* Cleanup memory that's no longer used. */ - g_array_free(table_offsets, true); -+ g_free(slic_oem.id); -+ g_free(slic_oem.table_id); - } - - static void acpi_ram_update(MemoryRegion *mr, GArray *data) - -commit a22de122ad03ea40953ad0328b2c3e31002d8052 -Author: Igor Mammedov <imammedo@redhat.com> -Date: Mon Dec 27 14:31:18 2021 -0500 - - tests: acpi: whitelist expected blobs before changing them - - Signed-off-by: Igor Mammedov <imammedo@redhat.com> - -diff --git a/tests/data/acpi/q35/FACP.slic b/tests/data/acpi/q35/FACP.slic -new file mode 100644 -index 0000000000..f6a864cc86 -Binary files /dev/null and b/tests/data/acpi/q35/FACP.slic differ -diff --git a/tests/data/acpi/q35/SLIC.slic b/tests/data/acpi/q35/SLIC.slic -new file mode 100644 -index 0000000000..e69de29bb2 -diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h -index dfb8523c8b..49dbf8fa3e 100644 ---- a/tests/qtest/bios-tables-test-allowed-diff.h -+++ b/tests/qtest/bios-tables-test-allowed-diff.h -@@ -1 +1,3 @@ - /* List of comma-separated changed AML files to ignore */ -+"tests/data/acpi/q35/FACP.slic", -+"tests/data/acpi/q35/SLIC.slic", - -commit cb913395d76f8fdfd7f1d0c8ea77d4710821bbd3 -Author: Igor Mammedov <imammedo@redhat.com> -Date: Mon Dec 27 14:31:19 2021 -0500 - - tests: acpi: add SLIC table test - - When user uses '-acpitable' to add SLIC table, some ACPI - tables (FADT) will change its 'Oem ID'/'Oem Table ID' fields to - match that of SLIC. Test makes sure thati QEMU handles - those fields correctly when SLIC table is added with - '-acpitable' option. - - Signed-off-by: Igor Mammedov <imammedo@redhat.com> - -diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c -index 258874167e..ae7ef13ec7 100644 ---- a/tests/qtest/bios-tables-test.c -+++ b/tests/qtest/bios-tables-test.c -@@ -1567,6 +1567,19 @@ static void test_acpi_oem_fields_virt(void) - g_free(args); - } - -+static void test_acpi_q35_slic(void) -+{ -+ test_data data = { -+ .machine = MACHINE_Q35, -+ .variant = ".slic", -+ }; -+ -+ test_acpi_one("-acpitable sig=SLIC,oem_id='CRASH ',oem_table_id='ME'," -+ "oem_rev=00002210,asl_compiler_id='qemu'," -+ "asl_compiler_rev=00000000,data=/dev/null", -+ &data); -+ free_test_data(&data); -+} - - int main(int argc, char *argv[]) - { -@@ -1639,6 +1652,7 @@ int main(int argc, char *argv[]) - qtest_add_func("acpi/q35/kvm/xapic", test_acpi_q35_kvm_xapic); - qtest_add_func("acpi/q35/kvm/dmar", test_acpi_q35_kvm_dmar); - } -+ qtest_add_func("acpi/q35/slic", test_acpi_q35_slic); - } else if (strcmp(arch, "aarch64") == 0) { - if (has_tcg) { - qtest_add_func("acpi/virt", test_acpi_virt_tcg); - -commit ffba261306370e0ad8506401b104be5fa4749ade -Author: Igor Mammedov <imammedo@redhat.com> -Date: Mon Dec 27 14:31:20 2021 -0500 - - tests: acpi: SLIC: update expected blobs - - Signed-off-by: Igor Mammedov <imammedo@redhat.com> - -diff --git a/tests/data/acpi/q35/FACP.slic b/tests/data/acpi/q35/FACP.slic -index f6a864cc86..891fd4b784 100644 -Binary files a/tests/data/acpi/q35/FACP.slic and b/tests/data/acpi/q35/FACP.slic differ -diff --git a/tests/data/acpi/q35/SLIC.slic b/tests/data/acpi/q35/SLIC.slic -index e69de29bb2..fd26592e24 100644 -Binary files a/tests/data/acpi/q35/SLIC.slic and b/tests/data/acpi/q35/SLIC.slic differ -diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h -index 49dbf8fa3e..dfb8523c8b 100644 ---- a/tests/qtest/bios-tables-test-allowed-diff.h -+++ b/tests/qtest/bios-tables-test-allowed-diff.h -@@ -1,3 +1 @@ - /* List of comma-separated changed AML files to ignore */ --"tests/data/acpi/q35/FACP.slic", --"tests/data/acpi/q35/SLIC.slic", |