Skip to contentSkip to conversation

qemu: Upgrade 5.2.0 -> 6.0.0

PATCH New Richard Purdie 1 participant 4 messages May 16, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 qemu: Upgrade 5.2.0 -> 6.0.0

Building without PIE support seems broken upstream, enable it by default to match the configuration others evidently us.

Tweak git submodule option to match upstream.

Drop backported/merged patches, refresh others.

---
 meta/conf/distro/include/tcmode-default.inc   |   2 +-
 ...u-native_5.2.0.bb => qemu-native_6.0.0.bb} |   2 +-
 ...e_5.2.0.bb => qemu-system-native_6.0.0.bb} |   2 +-
 meta/recipes-devtools/qemu/qemu.inc           |  35 +-
 .../qemu/0001-Add-enable-disable-udev.patch   |  10 +-
 ...igure-fix-detection-of-gdbus-codegen.patch |  31 +-
 ...emu-Add-missing-wacom-HID-descriptor.patch |   6 +-
 ...mu-Do-not-include-file-if-not-exists.patch |  10 +-
 ...d-use-relative-path-to-refer-to-file.patch |  15 +-
 ...n-environment-space-to-boot-loader-q.patch |  12 +-
 .../qemu/0004-qemu-disable-Valgrind.patch     |   8 +-
 ...-connect-socket-to-a-spawned-command.patch |  32 +-
 .../0007-apic-fixup-fallthrough-to-PIC.patch  |   8 +-
 ...dd-pkg-config-handling-for-libgcrypt.patch |  12 +-
 .../qemu/qemu/CVE-2020-27821.patch            | 143 ---------
 .../qemu/qemu/CVE-2020-29443.patch            | 107 -------
 .../qemu/qemu/CVE-2020-35517_1.patch          | 153 ---------
 .../qemu/qemu/CVE-2020-35517_2.patch          | 117 -------
 .../qemu/qemu/CVE-2020-35517_3.patch          | 303 ------------------
 .../qemu/qemu/CVE-2021-20181.patch            |  81 -----
 .../qemu/qemu/CVE-2021-20203.patch            |  73 -----
 .../qemu/qemu/CVE-2021-20221.patch            |  70 ----
 .../qemu/qemu/CVE-2021-20257.patch            |  55 ----
 .../qemu/qemu/CVE-2021-20263.patch            | 214 -------------
 .../qemu/qemu/CVE-2021-3392.patch             |  89 -----
 .../qemu/qemu/CVE-2021-3409_1.patch           |  56 ----
 .../qemu/qemu/CVE-2021-3409_2.patch           |  92 ------
 .../qemu/qemu/CVE-2021-3409_3.patch           | 109 -------
 .../qemu/qemu/CVE-2021-3409_4.patch           |  75 -----
 .../qemu/qemu/CVE-2021-3409_5.patch           |  56 ----
 .../qemu/qemu/CVE-2021-3409_6.patch           |  99 ------
 .../qemu/qemu/CVE-2021-3416_1.patch           | 177 ----------
 .../qemu/qemu/CVE-2021-3416_10.patch          |  44 ---
 .../qemu/qemu/CVE-2021-3416_2.patch           |  42 ---
 .../qemu/qemu/CVE-2021-3416_3.patch           |  43 ---
 .../qemu/qemu/CVE-2021-3416_4.patch           |  43 ---
 .../qemu/qemu/CVE-2021-3416_5.patch           |  45 ---
 .../qemu/qemu/CVE-2021-3416_6.patch           |  43 ---
 .../qemu/qemu/CVE-2021-3416_7.patch           |  45 ---
 .../qemu/qemu/CVE-2021-3416_8.patch           |  44 ---
 .../qemu/qemu/CVE-2021-3416_9.patch           |  46 ---
 meta/recipes-devtools/qemu/qemu/cross.patch   |  12 +-
 .../qemu/qemu/determinism.patch               |  29 +-
 .../recipes-devtools/qemu/qemu/mingwfix.patch |  21 --
 meta/recipes-devtools/qemu/qemu/mmap.patch    |  29 --
 meta/recipes-devtools/qemu/qemu/mmap2.patch   |  25 +-
 .../qemu/{qemu_5.2.0.bb => qemu_6.0.0.bb}     |   4 +-
 47 files changed, 99 insertions(+), 2670 deletions(-)
 rename meta/recipes-devtools/qemu/{qemu-native_5.2.0.bb => qemu-native_6.0.0.bb} (89%)
 rename meta/recipes-devtools/qemu/{qemu-system-native_5.2.0.bb => qemu-system-native_6.0.0.bb} (96%)
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2020-27821.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2020-29443.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2020-35517_1.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2020-35517_2.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2020-35517_3.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-20181.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-20203.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-20221.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-20257.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-20263.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3392.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3409_1.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3409_2.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3409_3.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3409_4.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3409_5.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3409_6.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3416_1.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3416_10.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3416_2.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3416_3.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3416_4.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3416_5.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3416_6.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3416_7.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3416_8.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-3416_9.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/mingwfix.patch
 delete mode 100644 meta/recipes-devtools/qemu/qemu/mmap.patch
 rename meta/recipes-devtools/qemu/{qemu_5.2.0.bb => qemu_6.0.0.bb} (93%)
meta/conf/distro/include/tcmode-default.inc +1 -1
index a0c35eed094..c6e5ac61d7d 100644
@@ -22,7 +22,7 @@ BINUVERSION ?= "2.36%"
 GDBVERSION ?= "10.%"
 GLIBCVERSION ?= "2.33"
 LINUXLIBCVERSION ?= "5.10%"
-QEMUVERSION ?= "5.2%"
+QEMUVERSION ?= "6.0%"
 GOVERSION ?= "1.16%"
 # This can not use wildcards like 8.0.% since it is also used in mesa to denote
 # llvm version being used, so always bump it with llvm recipe version bump
meta/recipes-devtools/qemu/qemu-native_6.0.0.bb renamed from meta/recipes-devtools/qemu/qemu-native_5.2.0.bb +1 -1
similarity index 89%
rename from meta/recipes-devtools/qemu/qemu-native_5.2.0.bb
rename to meta/recipes-devtools/qemu/qemu-native_6.0.0.bb
index c8acff8e196..d23d7a8ada0 100644
@@ -6,4 +6,4 @@ require qemu-native.inc
 
 EXTRA_OECONF_append = " --target-list=${@get_qemu_usermode_target_list(d)} --disable-tools --disable-blobs --disable-guest-agent"
 
-PACKAGECONFIG ??= ""
+PACKAGECONFIG ??= "pie"
meta/recipes-devtools/qemu/qemu-system-native_6.0.0.bb renamed from meta/recipes-devtools/qemu/qemu-system-native_5.2.0.bb +1 -1
similarity index 96%
rename from meta/recipes-devtools/qemu/qemu-system-native_5.2.0.bb
rename to meta/recipes-devtools/qemu/qemu-system-native_6.0.0.bb
index 390dadea48a..9d7d0cdceb6 100644
@@ -11,7 +11,7 @@ DEPENDS = "glib-2.0-native zlib-native pixman-native qemu-native bison-native"
 
 EXTRA_OECONF_append = " --target-list=${@get_qemu_system_target_list(d)}"
 
-PACKAGECONFIG ??= "fdt alsa kvm \
+PACKAGECONFIG ??= "fdt alsa kvm pie \
     ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '', d)} \
 "
 
meta/recipes-devtools/qemu/qemu.inc +2 -33
index 74c53c63097..0cbd66301e6 100644
@@ -25,43 +25,14 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \
            file://0010-configure-Add-pkg-config-handling-for-libgcrypt.patch \
            file://0001-Add-enable-disable-udev.patch \
            file://0001-qemu-Do-not-include-file-if-not-exists.patch \
-           file://mingwfix.patch \
-           file://mmap.patch \
            file://mmap2.patch \
            file://determinism.patch \
            file://0001-tests-meson.build-use-relative-path-to-refer-to-file.patch \
-           file://CVE-2021-20203.patch \
-           file://CVE-2020-35517_1.patch \
-           file://CVE-2020-35517_2.patch \
-           file://CVE-2020-35517_3.patch \
-           file://CVE-2021-20181.patch \
-           file://CVE-2020-29443.patch \
-           file://CVE-2021-20221.patch \
-           file://CVE-2021-3409_1.patch \
-           file://CVE-2021-3409_2.patch \
-           file://CVE-2021-3409_3.patch \
-           file://CVE-2021-3409_4.patch \
-           file://CVE-2021-3409_5.patch \
-           file://CVE-2021-3409_6.patch \
-           file://CVE-2021-3416_1.patch \
-           file://CVE-2021-3416_2.patch \
-           file://CVE-2021-3416_3.patch \
-           file://CVE-2021-3416_4.patch \
-           file://CVE-2021-3416_5.patch \
-           file://CVE-2021-3416_6.patch \
-           file://CVE-2021-3416_7.patch \
-           file://CVE-2021-3416_8.patch \
-           file://CVE-2021-3416_9.patch \
-           file://CVE-2021-3416_10.patch \
-           file://CVE-2021-20257.patch \
-           file://CVE-2020-27821.patch \
-           file://CVE-2021-20263.patch \
-           file://CVE-2021-3392.patch \
            file://0001-configure-fix-detection-of-gdbus-codegen.patch \
            "
 UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar"
 
-SRC_URI[sha256sum] = "cb18d889b628fbe637672b0326789d9b0e3b8027e0445b936537c78549df17bc"
+SRC_URI[sha256sum] = "87bc1a471ca24b97e7005711066007d443423d19aacda3d442558ae032fa30b9"
 
 SRC_URI_append_class-target = " file://cross.patch"
 SRC_URI_append_class-nativesdk = " file://cross.patch"
@@ -94,8 +65,6 @@ do_install_ptest() {
 	find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcodp]" | xargs -i rm -rf {}
 
 	# Don't check the file genreated by configure
-        sed -i -e 's,${HOSTTOOLS_DIR}/python3,${bindir}/python3,' \
-            ${D}/${PTEST_PATH}/tests/qemu-iotests/common.env 
 	sed -i -e "1s,#!/usr/bin/bash,#!${base_bindir}/bash," ${D}${PTEST_PATH}/tests/data/acpi/disassemle-aml.sh
 
 	# Strip the paths from the QEMU variable, we can use PATH
@@ -122,7 +91,7 @@ EXTRA_OECONF = " \
     --extra-cflags='${CFLAGS}' \
     --extra-ldflags='${LDFLAGS}' \
     --with-git=/bin/false \
-    --disable-git-update \
+    --with-git-submodules=ignore \
     --meson=meson \
     ${PACKAGECONFIG_CONFARGS} \
     "
meta/recipes-devtools/qemu/qemu/0001-Add-enable-disable-udev.patch +5 -5
index c99adee8a95..4b37967e7a9 100644
@@ -12,13 +12,13 @@ Signed-off-by: Sakib Sajal <[email protected]>
  configure | 4 ++++
  1 file changed, 4 insertions(+)
 
-Index: qemu-5.2.0/configure
+Index: qemu-6.0.0/configure
 ===================================================================
---- qemu-5.2.0.orig/configure
-+++ qemu-5.2.0/configure
-@@ -1525,6 +1525,10 @@ for opt do
+--- qemu-6.0.0.orig/configure
++++ qemu-6.0.0/configure
+@@ -1565,6 +1565,10 @@ for opt do
    ;;
-   --disable-libdaxctl) libdaxctl=no
+   --disable-gio) gio=no
    ;;
 +  --enable-libudev) libudev="yes"
 +  ;;
meta/recipes-devtools/qemu/qemu/0001-configure-fix-detection-of-gdbus-codegen.patch +14 -17
index 1f200778833..8bffc312939 100644
@@ -26,20 +26,20 @@ Signed-off-by: Alexander Kanavin <[email protected]>
  configure | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
 
-diff --git a/configure b/configure
-index 18c26e0389..4c36e221d3 100755
---- a/configure
-+++ b/configure
-@@ -3496,7 +3496,7 @@ if $pkg_config --atleast-version=$glib_req_ver gio-2.0; then
-     gio_cflags=$($pkg_config --cflags gio-2.0)
-     gio_libs=$($pkg_config --libs gio-2.0)
-     gdbus_codegen=$($pkg_config --variable=gdbus_codegen gio-2.0)
--    if [ ! -x "$gdbus_codegen" ]; then
-+    if ! has "$gdbus_codegen"; then
-         gdbus_codegen=
-     fi
-     # Check that the libraries actually work -- Ubuntu 18.04 ships
-@@ -6172,6 +6172,8 @@ if test "$gio" = "yes" ; then
+Index: qemu-6.0.0/configure
+===================================================================
+--- qemu-6.0.0.orig/configure
++++ qemu-6.0.0/configure
+@@ -3366,7 +3366,7 @@ if ! test "$gio" = "no"; then
+         gio_cflags=$($pkg_config --cflags gio-2.0)
+         gio_libs=$($pkg_config --libs gio-2.0)
+         gdbus_codegen=$($pkg_config --variable=gdbus_codegen gio-2.0)
+-        if [ ! -x "$gdbus_codegen" ]; then
++        if ! has "$gdbus_codegen"; then
+             gdbus_codegen=
+         fi
+         # Check that the libraries actually work -- Ubuntu 18.04 ships
+@@ -5704,6 +5704,8 @@ if test "$gio" = "yes" ; then
      echo "CONFIG_GIO=y" >> $config_host_mak
      echo "GIO_CFLAGS=$gio_cflags" >> $config_host_mak
      echo "GIO_LIBS=$gio_libs" >> $config_host_mak
@@ -48,6 +48,3 @@ index 18c26e0389..4c36e221d3 100755
      echo "GDBUS_CODEGEN=$gdbus_codegen" >> $config_host_mak
  fi
  echo "CONFIG_TLS_PRIORITY=\"$tls_priority\"" >> $config_host_mak
--- 
-2.24.0
-
meta/recipes-devtools/qemu/qemu/0001-qemu-Add-missing-wacom-HID-descriptor.patch +3 -3
index 8ce12bdb43e..2f2d19f5367 100644
@@ -20,10 +20,10 @@ Signed-off-by: Sakib Sajal <[email protected]>
  hw/usb/dev-wacom.c | 94 +++++++++++++++++++++++++++++++++++++++++++++-
  1 file changed, 93 insertions(+), 1 deletion(-)
 
-Index: qemu-5.2.0/hw/usb/dev-wacom.c
+Index: qemu-6.0.0/hw/usb/dev-wacom.c
 ===================================================================
---- qemu-5.2.0.orig/hw/usb/dev-wacom.c
-+++ qemu-5.2.0/hw/usb/dev-wacom.c
+--- qemu-6.0.0.orig/hw/usb/dev-wacom.c
++++ qemu-6.0.0/hw/usb/dev-wacom.c
 @@ -69,6 +69,89 @@ static const USBDescStrings desc_strings
      [STR_SERIALNUMBER]     = "1",
  };
meta/recipes-devtools/qemu/qemu/0001-qemu-Do-not-include-file-if-not-exists.patch +5 -5
index 3fe9aa6eb5c..b8d288d3a26 100644
@@ -15,11 +15,11 @@ Signed-off-by: Sakib Sajal <[email protected]>
  linux-user/syscall.c | 2 ++
  1 file changed, 2 insertions(+)
 
-Index: qemu-5.2.0/linux-user/syscall.c
+Index: qemu-6.0.0/linux-user/syscall.c
 ===================================================================
---- qemu-5.2.0.orig/linux-user/syscall.c
-+++ qemu-5.2.0/linux-user/syscall.c
-@@ -109,7 +109,9 @@
+--- qemu-6.0.0.orig/linux-user/syscall.c
++++ qemu-6.0.0/linux-user/syscall.c
+@@ -113,7 +113,9 @@
  #include <linux/blkpg.h>
  #include <netpacket/packet.h>
  #include <linux/netlink.h>
@@ -28,4 +28,4 @@ Index: qemu-5.2.0/linux-user/syscall.c
 +#endif
  #include <linux/rtc.h>
  #include <sound/asound.h>
- #ifdef CONFIG_BTRFS
+ #ifdef HAVE_BTRFS_H
meta/recipes-devtools/qemu/qemu/0001-tests-meson.build-use-relative-path-to-refer-to-file.patch +6 -9
index 5cb5757c371..d5e1ab4d511 100644
@@ -16,19 +16,16 @@ Signed-off-by: Changqing Li <[email protected]>
  tests/meson.build   | 2 +-
  1 files changed, 1 insertions(+), 1 deletion(-)
 
-diff --git a/tests/meson.build b/tests/meson.build
-index afeb6be..54684b5 100644
---- a/tests/meson.build
-+++ b/tests/meson.build
-@@ -113,7 +113,7 @@ tests = {
+Index: qemu-6.0.0/tests/unit/meson.build
+===================================================================
+--- qemu-6.0.0.orig/tests/unit/meson.build
++++ qemu-6.0.0/tests/unit/meson.build
+@@ -42,7 +42,7 @@ tests = {
    'test-keyval': [testqapi],
    'test-logging': [],
    'test-uuid': [],
 -  'ptimer-test': ['ptimer-test-stubs.c', meson.source_root() / 'hw/core/ptimer.c'],
-+  'ptimer-test': ['ptimer-test-stubs.c', '../hw/core/ptimer.c'],
++  'ptimer-test': ['ptimer-test-stubs.c', '../../hw/core/ptimer.c'],
    'test-qapi-util': [],
  }
  
--- 
-2.29.2
-
meta/recipes-devtools/qemu/qemu/0003-qemu-Add-addition-environment-space-to-boot-loader-q.patch +6 -6
index fd54f96b036..733789be297 100644
@@ -18,13 +18,13 @@ Signed-off-by: Roy Li <[email protected]>
  hw/mips/malta.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
-Index: qemu-5.2.0/hw/mips/malta.c
+Index: qemu-6.0.0/hw/mips/malta.c
 ===================================================================
---- qemu-5.2.0.orig/hw/mips/malta.c
-+++ qemu-5.2.0/hw/mips/malta.c
-@@ -62,7 +62,7 @@
- 
- #define ENVP_ADDR           0x80002000l
+--- qemu-6.0.0.orig/hw/mips/malta.c
++++ qemu-6.0.0/hw/mips/malta.c
+@@ -65,7 +65,7 @@
+ #define ENVP_PADDR          0x2000
+ #define ENVP_VADDR          cpu_mips_phys_to_kseg0(NULL, ENVP_PADDR)
  #define ENVP_NB_ENTRIES     16
 -#define ENVP_ENTRY_SIZE     256
 +#define ENVP_ENTRY_SIZE     1024
meta/recipes-devtools/qemu/qemu/0004-qemu-disable-Valgrind.patch +4 -4
index a0bd1c5ebc7..330bcaef0aa 100644
@@ -12,11 +12,11 @@ Signed-off-by: Ross Burton <[email protected]>
  configure | 9 ---------
  1 file changed, 9 deletions(-)
 
-Index: qemu-5.2.0/configure
+Index: qemu-6.0.0/configure
 ===================================================================
---- qemu-5.2.0.orig/configure
-+++ qemu-5.2.0/configure
-@@ -5001,15 +5001,6 @@ fi
+--- qemu-6.0.0.orig/configure
++++ qemu-6.0.0/configure
+@@ -4648,15 +4648,6 @@ fi
  # check if we have valgrind/valgrind.h
  
  valgrind_h=no
meta/recipes-devtools/qemu/qemu/0006-chardev-connect-socket-to-a-spawned-command.patch +16 -16
index 201125c1f47..05dc849dada 100644
@@ -51,11 +51,11 @@ Signed-off-by: Patrick Ohly <[email protected]>
  qapi/char.json        |   5 +++
  3 files changed, 109 insertions(+)
 
-Index: qemu-5.2.0/chardev/char-socket.c
+Index: qemu-6.0.0/chardev/char-socket.c
 ===================================================================
---- qemu-5.2.0.orig/chardev/char-socket.c
-+++ qemu-5.2.0/chardev/char-socket.c
-@@ -1308,6 +1308,67 @@ static bool qmp_chardev_validate_socket(
+--- qemu-6.0.0.orig/chardev/char-socket.c
++++ qemu-6.0.0/chardev/char-socket.c
+@@ -1362,6 +1362,67 @@ static bool qmp_chardev_validate_socket(
      return true;
  }
  
@@ -123,7 +123,7 @@ Index: qemu-5.2.0/chardev/char-socket.c
  
  static void qmp_chardev_open_socket(Chardev *chr,
                                      ChardevBackend *backend,
-@@ -1316,6 +1377,9 @@ static void qmp_chardev_open_socket(Char
+@@ -1370,6 +1431,9 @@ static void qmp_chardev_open_socket(Char
  {
      SocketChardev *s = SOCKET_CHARDEV(chr);
      ChardevSocket *sock = backend->u.socket.data;
@@ -133,7 +133,7 @@ Index: qemu-5.2.0/chardev/char-socket.c
      bool do_nodelay     = sock->has_nodelay ? sock->nodelay : false;
      bool is_listen      = sock->has_server  ? sock->server  : true;
      bool is_telnet      = sock->has_telnet  ? sock->telnet  : false;
-@@ -1381,6 +1445,14 @@ static void qmp_chardev_open_socket(Char
+@@ -1446,6 +1510,14 @@ static void qmp_chardev_open_socket(Char
  
      update_disconnected_filename(s);
  
@@ -148,7 +148,7 @@ Index: qemu-5.2.0/chardev/char-socket.c
      if (s->is_listen) {
          if (qmp_chardev_open_socket_server(chr, is_telnet || is_tn3270,
                                             is_waitconnect, errp) < 0) {
-@@ -1400,6 +1472,9 @@ static void qemu_chr_parse_socket(QemuOp
+@@ -1465,6 +1537,9 @@ static void qemu_chr_parse_socket(QemuOp
      const char *host = qemu_opt_get(opts, "host");
      const char *port = qemu_opt_get(opts, "port");
      const char *fd = qemu_opt_get(opts, "fd");
@@ -158,7 +158,7 @@ Index: qemu-5.2.0/chardev/char-socket.c
  #ifdef CONFIG_LINUX
      bool tight = qemu_opt_get_bool(opts, "tight", true);
      bool abstract = qemu_opt_get_bool(opts, "abstract", false);
-@@ -1407,6 +1482,20 @@ static void qemu_chr_parse_socket(QemuOp
+@@ -1472,6 +1547,20 @@ static void qemu_chr_parse_socket(QemuOp
      SocketAddressLegacy *addr;
      ChardevSocket *sock;
  
@@ -179,7 +179,7 @@ Index: qemu-5.2.0/chardev/char-socket.c
      if ((!!path + !!fd + !!host) != 1) {
          error_setg(errp,
                     "Exactly one of 'path', 'fd' or 'host' required");
-@@ -1448,13 +1537,24 @@ static void qemu_chr_parse_socket(QemuOp
+@@ -1522,13 +1611,24 @@ static void qemu_chr_parse_socket(QemuOp
      sock->tls_creds = g_strdup(qemu_opt_get(opts, "tls-creds"));
      sock->has_tls_authz = qemu_opt_get(opts, "tls-authz");
      sock->tls_authz = g_strdup(qemu_opt_get(opts, "tls-authz"));
@@ -204,11 +204,11 @@ Index: qemu-5.2.0/chardev/char-socket.c
  #ifdef CONFIG_LINUX
          q_unix->has_tight = true;
          q_unix->tight = tight;
-Index: qemu-5.2.0/chardev/char.c
+Index: qemu-6.0.0/chardev/char.c
 ===================================================================
---- qemu-5.2.0.orig/chardev/char.c
-+++ qemu-5.2.0/chardev/char.c
-@@ -839,6 +839,9 @@ QemuOptsList qemu_chardev_opts = {
+--- qemu-6.0.0.orig/chardev/char.c
++++ qemu-6.0.0/chardev/char.c
+@@ -840,6 +840,9 @@ QemuOptsList qemu_chardev_opts = {
              .name = "path",
              .type = QEMU_OPT_STRING,
          },{
@@ -218,10 +218,10 @@ Index: qemu-5.2.0/chardev/char.c
              .name = "host",
              .type = QEMU_OPT_STRING,
          },{
-Index: qemu-5.2.0/qapi/char.json
+Index: qemu-6.0.0/qapi/char.json
 ===================================================================
---- qemu-5.2.0.orig/qapi/char.json
-+++ qemu-5.2.0/qapi/char.json
+--- qemu-6.0.0.orig/qapi/char.json
++++ qemu-6.0.0/qapi/char.json
 @@ -250,6 +250,10 @@
  #
  # @addr: socket address to listen on (server=true)
meta/recipes-devtools/qemu/qemu/0007-apic-fixup-fallthrough-to-PIC.patch +4 -4
index 294cf5129f1..3491fa8a53c 100644
@@ -29,11 +29,11 @@ Signed-off-by: He Zhe <[email protected]>
  hw/intc/apic.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
-Index: qemu-5.2.0/hw/intc/apic.c
+Index: qemu-6.0.0/hw/intc/apic.c
 ===================================================================
---- qemu-5.2.0.orig/hw/intc/apic.c
-+++ qemu-5.2.0/hw/intc/apic.c
-@@ -605,7 +605,7 @@ int apic_accept_pic_intr(DeviceState *de
+--- qemu-6.0.0.orig/hw/intc/apic.c
++++ qemu-6.0.0/hw/intc/apic.c
+@@ -606,7 +606,7 @@ int apic_accept_pic_intr(DeviceState *de
      APICCommonState *s = APIC(dev);
      uint32_t lvt0;
  
meta/recipes-devtools/qemu/qemu/0010-configure-Add-pkg-config-handling-for-libgcrypt.patch +6 -6
index c5d206b91bb..cc6a5fe7549 100644
@@ -14,11 +14,11 @@ Signed-off-by: He Zhe <[email protected]>
  configure | 48 ++++++++++++++++++++++++++++++++++++++++--------
  1 file changed, 40 insertions(+), 8 deletions(-)
 
-Index: qemu-5.2.0/configure
+Index: qemu-6.0.0/configure
 ===================================================================
---- qemu-5.2.0.orig/configure
-+++ qemu-5.2.0/configure
-@@ -2956,6 +2956,30 @@ has_libgcrypt() {
+--- qemu-6.0.0.orig/configure
++++ qemu-6.0.0/configure
+@@ -2847,6 +2847,30 @@ has_libgcrypt() {
      return 0
  }
  
@@ -49,7 +49,7 @@ Index: qemu-5.2.0/configure
  
  if test "$nettle" != "no"; then
      pass="no"
-@@ -2994,7 +3018,14 @@ fi
+@@ -2885,7 +2909,14 @@ fi
  
  if test "$gcrypt" != "no"; then
      pass="no"
@@ -65,7 +65,7 @@ Index: qemu-5.2.0/configure
          gcrypt_cflags=$(libgcrypt-config --cflags)
          gcrypt_libs=$(libgcrypt-config --libs)
          # Debian has removed -lgpg-error from libgcrypt-config
-@@ -3004,12 +3035,12 @@ if test "$gcrypt" != "no"; then
+@@ -2895,12 +2926,12 @@ if test "$gcrypt" != "no"; then
          then
              gcrypt_libs="$gcrypt_libs -lgpg-error"
          fi
meta/recipes-devtools/qemu/qemu/CVE-2020-27821.patch deleted +0 -143

143 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2020-29443.patch deleted +0 -107

107 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2020-35517_1.patch deleted +0 -153

153 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2020-35517_2.patch deleted +0 -117

117 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2020-35517_3.patch deleted +0 -303

303 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-20181.patch deleted +0 -81

81 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-20203.patch deleted +0 -73

73 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-20221.patch deleted +0 -70

70 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-20257.patch deleted +0 -55

55 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-20263.patch deleted +0 -214

214 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3392.patch deleted +0 -89

89 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3409_1.patch deleted +0 -56

56 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3409_2.patch deleted +0 -92

92 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3409_3.patch deleted +0 -109

109 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3409_4.patch deleted +0 -75

75 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3409_5.patch deleted +0 -56

56 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3409_6.patch deleted +0 -99

99 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3416_1.patch deleted +0 -177

177 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3416_10.patch deleted +0 -44

44 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3416_2.patch deleted +0 -42

42 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3416_3.patch deleted +0 -43

43 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3416_4.patch deleted +0 -43

43 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3416_5.patch deleted +0 -45

45 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3416_6.patch deleted +0 -43

43 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3416_7.patch deleted +0 -45

45 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3416_8.patch deleted +0 -44

44 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/CVE-2021-3416_9.patch deleted +0 -46

46 lines not on this page · raw message

meta/recipes-devtools/qemu/qemu/cross.patch +6 -6
index 438c1ad0862..a0fc39e5e2c 100644
@@ -6,19 +6,19 @@ Upstream-Status: Inappropriate [may be rewritten in a way upstream may accept?]
 Signed-off-by: Richard Purdie <[email protected]>
 
 
-Index: qemu-5.2.0/configure
+Index: qemu-6.0.0/configure
 ===================================================================
---- qemu-5.2.0.orig/configure
-+++ qemu-5.2.0/configure
-@@ -6973,7 +6973,6 @@ if has $sdl2_config; then
+--- qemu-6.0.0.orig/configure
++++ qemu-6.0.0/configure
+@@ -6371,7 +6371,6 @@ if has $sdl2_config; then
  fi
  echo "strip = [$(meson_quote $strip)]" >> $cross
  echo "windres = [$(meson_quote $windres)]" >> $cross
--if test -n "$cross_prefix"; then
+-if test "$cross_compile" = "yes"; then
      cross_arg="--cross-file config-meson.cross"
      echo "[host_machine]" >> $cross
      if test "$mingw32" = "yes" ; then
-@@ -6999,9 +6998,6 @@ if test -n "$cross_prefix"; then
+@@ -6403,9 +6402,6 @@ if test "$cross_compile" = "yes"; then
      else
          echo "endian = 'little'" >> $cross
      fi
meta/recipes-devtools/qemu/qemu/determinism.patch +5 -24
index cb1c907777f..330a31204d1 100644
@@ -4,38 +4,19 @@ qemu build are not reproducible due to either full buildpaths or timestamps.
 Replace the full paths with relative ones. I couldn't figure out how to get
 meson to pass relative paths but we can fix that in the script.
 
-For the keymaps, omit the timestamps as they don't matter to us.
-
 Upstream-Status: Pending [some version of all/part of this may be accepted]
 RP 2021/3/1
 
-Index: qemu-5.2.0/scripts/decodetree.py
+Index: qemu-6.0.0/scripts/decodetree.py
 ===================================================================
---- qemu-5.2.0.orig/scripts/decodetree.py
-+++ qemu-5.2.0/scripts/decodetree.py
-@@ -1303,8 +1303,8 @@ def main():
+--- qemu-6.0.0.orig/scripts/decodetree.py
++++ qemu-6.0.0/scripts/decodetree.py
+@@ -1304,7 +1304,7 @@ def main():
      toppat = ExcMultiPattern(0)
  
      for filename in args:
 -        input_file = filename
--        f = open(filename, 'r')
 +        input_file = os.path.relpath(filename)
-+        f = open(input_file, 'r')
+         f = open(filename, 'rt', encoding='utf-8')
          parse_file(f, toppat)
          f.close()
- 
-Index: qemu-5.2.0/ui/keycodemapdb/tools/keymap-gen
-===================================================================
---- qemu-5.2.0.orig/ui/keycodemapdb/tools/keymap-gen
-+++ qemu-5.2.0/ui/keycodemapdb/tools/keymap-gen
-@@ -317,9 +317,8 @@ class LanguageGenerator(object):
-         raise NotImplementedError()
- 
-     def generate_header(self, database, args):
--        today = time.strftime("%Y-%m-%d %H:%M")
-         self._boilerplate([
--            "This file is auto-generated from keymaps.csv on %s" % today,
-+            "This file is auto-generated from keymaps.csv",
-             "Database checksum sha256(%s)" % database.mapchecksum,
-             "To re-generate, run:",
-             "  %s" % args,
meta/recipes-devtools/qemu/qemu/mingwfix.patch deleted +0 -21
deleted file mode 100644
index 8d76cef6388..00000000000
@@ -1,21 +0,0 @@
-OE assumes that mingw files are in a unix like file layout. The
-'flattening' done by configure in qemu for mingw32 breaks things
-for us. We are discussing with upstream but for now, hack this to
-disable it and use the unix like layout everywhere.
-
-Signed-off-by: Richard Purdie <[email protected]>
-Upstream-Status: Submitted [https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg01073.html]
-
-Index: qemu-5.2.0/configure
-===================================================================
---- qemu-5.2.0.orig/configure
-+++ qemu-5.2.0/configure
-@@ -1541,7 +1541,7 @@ libdir="${libdir:-$prefix/lib}"
- libexecdir="${libexecdir:-$prefix/libexec}"
- includedir="${includedir:-$prefix/include}"
- 
--if test "$mingw32" = "yes" ; then
-+if test "$mingw32" = "dontwantthis" ; then
-     mandir="$prefix"
-     datadir="$prefix"
-     docdir="$prefix"
meta/recipes-devtools/qemu/qemu/mmap.patch deleted +0 -29
deleted file mode 100644
index edd9734f30a..00000000000
@@ -1,29 +0,0 @@
-If mremap() is called without the MREMAP_MAYMOVE flag with a start address
-just before the end of memory (reserved_va) where new_size would exceed 
-GUEST_ADD_MAX, the assert(end - 1 <= GUEST_ADDR_MAX) in page_set_flags() 
-would trigger.
-
-Add an extra guard to the guest_range_valid() checks to prevent this and
-avoid asserting binaries when reserved_va is set.
-
-This meant a test case now gives the same behaviour regardless of whether
-reserved_va is set or not.
-
-Upstream-Status: Backport [https://github.com/qemu/qemu/commit/ccc5ccc17f8cfbfd87d9aede5d12a2d47c56e712]
-Signed-off-by: Richard Purdie <[email protected]
-
-Index: qemu-5.2.0/linux-user/mmap.c
-===================================================================
---- qemu-5.2.0.orig/linux-user/mmap.c
-+++ qemu-5.2.0/linux-user/mmap.c
-@@ -727,7 +727,9 @@ abi_long target_mremap(abi_ulong old_add
- 
-     if (!guest_range_valid(old_addr, old_size) ||
-         ((flags & MREMAP_FIXED) &&
--         !guest_range_valid(new_addr, new_size))) {
-+         !guest_range_valid(new_addr, new_size)) ||
-+        ((flags & MREMAP_MAYMOVE) == 0 &&
-+         !guest_range_valid(old_addr, new_size))) {
-         errno = ENOMEM;
-         return -1;
-     }
meta/recipes-devtools/qemu/qemu/mmap2.patch +12 -13
index 1652131757b..e115473b705 100644
@@ -13,27 +13,26 @@ rather than ENOMEM so adjust the other part of the test to this.
 Upstream-Status: Submitted [https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg01355.html]
 Signed-off-by: Richard Purdie <[email protected]
 
-Index: qemu-5.2.0/linux-user/mmap.c
+Index: qemu-6.0.0/linux-user/mmap.c
 ===================================================================
---- qemu-5.2.0.orig/linux-user/mmap.c
-+++ qemu-5.2.0/linux-user/mmap.c
-@@ -722,12 +722,14 @@ abi_long target_mremap(abi_ulong old_add
+--- qemu-6.0.0.orig/linux-user/mmap.c
++++ qemu-6.0.0/linux-user/mmap.c
+@@ -733,12 +733,16 @@ abi_long target_mremap(abi_ulong old_add
      int prot;
      void *host_addr;
  
--    if (!guest_range_valid(old_addr, old_size) ||
+-    if (!guest_range_valid_untagged(old_addr, old_size) ||
 -        ((flags & MREMAP_FIXED) &&
--         !guest_range_valid(new_addr, new_size)) ||
--        ((flags & MREMAP_MAYMOVE) == 0 &&
--         !guest_range_valid(old_addr, new_size))) {
--        errno = ENOMEM;
-+    if (!guest_range_valid(old_addr, old_size)) {
++    if (!guest_range_valid_untagged(old_addr, old_size)) {
 +        errno = EFAULT;
 +        return -1;
 +    }
-+
-+    if (((flags & MREMAP_FIXED) && !guest_range_valid(new_addr, new_size)) ||
-+        ((flags & MREMAP_MAYMOVE) == 0 && !guest_range_valid(old_addr, new_size))) {
++    
++    if (((flags & MREMAP_FIXED) &&
+          !guest_range_valid_untagged(new_addr, new_size)) ||
+         ((flags & MREMAP_MAYMOVE) == 0 &&
+          !guest_range_valid_untagged(old_addr, new_size))) {
+-        errno = ENOMEM;
 +        errno = EINVAL;
          return -1;
      }
meta/recipes-devtools/qemu/qemu_6.0.0.bb renamed from meta/recipes-devtools/qemu/qemu_5.2.0.bb +2 -2
similarity index 93%
rename from meta/recipes-devtools/qemu/qemu_5.2.0.bb
rename to meta/recipes-devtools/qemu/qemu_6.0.0.bb
index f265204b105..90b135a617c 100644
@@ -19,11 +19,11 @@ do_install_append_class-nativesdk() {
 }
 
 PACKAGECONFIG ??= " \
-    fdt sdl kvm \
+    fdt sdl kvm pie \
     ${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \
     ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '', d)} \
     ${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)} \
 "
-PACKAGECONFIG_class-nativesdk ??= "fdt sdl kvm \
+PACKAGECONFIG_class-nativesdk ??= "fdt sdl kvm pie \
     ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '', d)} \
 "
Signature · 1 line
2.30.2
#1 lore raw

PATCH 2/4 python3-markupsafe: Upgrade 1.1.1 -> 2.0.0

---
 ...python3-markupsafe_1.1.1.bb => python3-markupsafe_2.0.0.bb} | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-markupsafe_1.1.1.bb => python3-markupsafe_2.0.0.bb} (81%)
meta/recipes-devtools/python/python3-markupsafe_2.0.0.bb renamed from meta/recipes-devtools/python/python3-markupsafe_1.1.1.bb +1 -2
similarity index 81%
rename from meta/recipes-devtools/python/python3-markupsafe_1.1.1.bb
rename to meta/recipes-devtools/python/python3-markupsafe_2.0.0.bb
index cade4e0f511..5e4be22ee3e 100644
@@ -3,8 +3,7 @@ HOMEPAGE = "http://github.com/mitsuhiko/markupsafe"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=ffeffa59c90c9c4a033c7574f8f3fb75"
 
-SRC_URI[md5sum] = "43fd756864fe42063068e092e220c57b"
-SRC_URI[sha256sum] = "29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b"
+SRC_URI[sha256sum] = "4fae0677f712ee090721d8b17f412f1cbceefbf0dc180fe91bab3232f38b4527"
 
 PYPI_PACKAGE = "MarkupSafe"
 inherit pypi setuptools3
Signature · 1 line
2.30.2
#2 lore raw

PATCH 3/4 python3-jinja2: Upgrade 2.11.3 -> 3.0.0

In reply to Richard Purdie
---
 .../{python3-jinja2_2.11.3.bb => python3-jinja2_3.0.0.bb}       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-jinja2_2.11.3.bb => python3-jinja2_3.0.0.bb} (92%)
meta/recipes-devtools/python/python3-jinja2_3.0.0.bb renamed from meta/recipes-devtools/python/python3-jinja2_2.11.3.bb +1 -1
similarity index 92%
rename from meta/recipes-devtools/python/python3-jinja2_2.11.3.bb
rename to meta/recipes-devtools/python/python3-jinja2_3.0.0.bb
index 11a4d5432ca..5ae8d49b530 100644
@@ -4,7 +4,7 @@ HOMEPAGE = "https://pypi.org/project/Jinja/"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=5dc88300786f1c214c1e9827a5229462"
 
-SRC_URI[sha256sum] = "a6d58433de0ae800347cab1fa3043cebbabe8baa9d29e668f1c768cb87a333c6"
+SRC_URI[sha256sum] = "ea8d7dd814ce9df6de6a761ec7f1cac98afe305b8cdc4aaae4e114b8d8ce24c5"
 
 PYPI_PACKAGE = "Jinja2"
 
Signature · 1 line
2.30.2
#3 lore raw

PATCH 4/4 lttng-ust: Upgrade 2.12.1 -> 2.12.2

In reply to Richard Purdie
---
 .../lttng/{lttng-ust_2.12.1.bb => lttng-ust_2.12.2.bb}         | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
 rename meta/recipes-kernel/lttng/{lttng-ust_2.12.1.bb => lttng-ust_2.12.2.bb} (93%)
meta/recipes-kernel/lttng/lttng-ust_2.12.2.bb renamed from meta/recipes-kernel/lttng/lttng-ust_2.12.1.bb +1 -2
similarity index 93%
rename from meta/recipes-kernel/lttng/lttng-ust_2.12.1.bb
rename to meta/recipes-kernel/lttng/lttng-ust_2.12.2.bb
index 67b53cbbba7..e340ff34600 100644
@@ -33,8 +33,7 @@ SRC_URI = "https://lttng.org/files/lttng-ust/lttng-ust-${PV}.tar.bz2 \
            file://0001-python-lttngust-Makefile.am-Add-install-lib-to-setup.patch \
            "
 
-SRC_URI[md5sum] = "11787d1df69b04dd7431614ab43b2e12"
-SRC_URI[sha256sum] = "48a3948b168195123a749d22818809bd25127bb5f1a66458c3c012b210d2a051"
+SRC_URI[sha256sum] = "bcd0f064b6ca88c72d84e760eac3472ae5c828411c634435922bee9fce359fc7"
 
 CVE_PRODUCT = "ust"
 
Signature · 1 line
2.30.2