From e6be97da40d568e95d5e3229bc78db40d4788673 Mon Sep 17 00:00:00 2001 From: Dongkyun Son Date: Thu, 1 Aug 2024 17:52:53 +0900 Subject: wip: check for libasan * bd0496402 - packaging: update baselibs for riscv64 * f3a87fb4b - Revert "fix ldd run crash issue in aarch64" * b408a3f58 - Revert "packaging: update baselibs for riscv64" * 19c6a13c8 - linux-user/elfload: do not assume MAP_FIXED_NOREPLACE kernel support * 4af6f98f8 - linux-user/elfload: munmap proper address in pgd_find_hole_fallback Change-Id: I3130a54470725a150e0dfe2bc22a07ffdc17540d Signed-off-by: Dongkyun Son --- packaging/baselibs.conf | 21 ++++++--------------- packaging/qemu-linux-user-5.2.0-2.1.i586.rpm | Bin 12329420 -> 0 bytes packaging/qemu-linux-user-5.2.0-2.1.x86_64.rpm | Bin 12331976 -> 0 bytes packaging/qemu-linux-user-5.2.0-57.1.i586.rpm | Bin 0 -> 12278944 bytes packaging/qemu-linux-user-5.2.0-57.1.x86_64.rpm | Bin 0 -> 12281804 bytes packaging/qemu-linux-user.spec | 4 ++-- 6 files changed, 8 insertions(+), 17 deletions(-) delete mode 100644 packaging/qemu-linux-user-5.2.0-2.1.i586.rpm delete mode 100644 packaging/qemu-linux-user-5.2.0-2.1.x86_64.rpm create mode 100644 packaging/qemu-linux-user-5.2.0-57.1.i586.rpm create mode 100644 packaging/qemu-linux-user-5.2.0-57.1.x86_64.rpm diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf index 9f504a952..3ea237402 100644 --- a/packaging/baselibs.conf +++ b/packaging/baselibs.conf @@ -27,11 +27,8 @@ targettype cross package qemu-linux-user post "setbinfmt 'armeb' ':armeb:M::\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-armeb-binfmt:P'" post "setbinfmt 'aarch64' ':aarch64:M::\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-binfmt:P'" post "setbinfmt 'riscv64' ':riscv64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf3\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-riscv64-binfmt:P'" - post "# workaround for using ldd on non-pie executable causes segfault" - post "# ex) ldd /usr/bin/which" - post "# ldd: exited with unknown exit code (139)" - post "%ifarch aarch64 riscv64" - post "echo 'export QEMU_GUEST_BASE=0x5500000000' > /etc/profile.d/qemu_base.sh" + post "%ifarch riscv64" + post "echo 'export QEMU_RESERVED_VA=0x3FFFFF0000' > /etc/profile.d/qemu_base.sh" post "chmod 755 /etc/profile.d/qemu_base.sh" post "%endif" @@ -55,11 +52,8 @@ targettype x86_64-cross package qemu-linux-user post "setbinfmt 'armeb' ':armeb:M::\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-armeb-binfmt:P'" post "setbinfmt 'aarch64' ':aarch64:M::\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-binfmt:P'" post "setbinfmt 'riscv64' ':riscv64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf3\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-riscv64-binfmt:P'" - post "# workaround for using ldd on non-pie executable causes segfault" - post "# ex) ldd /usr/bin/which" - post "# ldd: exited with unknown exit code (139)" - post "%ifarch aarch64 riscv64" - post "echo 'export QEMU_GUEST_BASE=0x5500000000' > /etc/profile.d/qemu_base.sh" + post "%ifarch riscv64" + post "echo 'export QEMU_RESERVED_VA=0x3FFFFF0000' > /etc/profile.d/qemu_base.sh" post "chmod 755 /etc/profile.d/qemu_base.sh" post "%endif" @@ -83,11 +77,8 @@ targettype x86-cross package qemu-linux-user post "setbinfmt 'armeb' ':armeb:M::\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-armeb-binfmt:P'" post "setbinfmt 'aarch64' ':aarch64:M::\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-binfmt:P'" post "setbinfmt 'riscv64' ':riscv64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf3\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-riscv64-binfmt:P'" - post "# workaround for using ldd on non-pie executable causes segfault" - post "# ex) ldd /usr/bin/which" - post "# ldd: exited with unknown exit code (139)" - post "%ifarch aarch64 riscv64" - post "echo 'export QEMU_GUEST_BASE=0x5500000000' > /etc/profile.d/qemu_base.sh" + post "%ifarch riscv64" + post "echo 'export QEMU_RESERVED_VA=0x3FFFFF0000' > /etc/profile.d/qemu_base.sh" post "chmod 755 /etc/profile.d/qemu_base.sh" post "%endif" diff --git a/packaging/qemu-linux-user-5.2.0-2.1.i586.rpm b/packaging/qemu-linux-user-5.2.0-2.1.i586.rpm deleted file mode 100644 index 12f720106..000000000 Binary files a/packaging/qemu-linux-user-5.2.0-2.1.i586.rpm and /dev/null differ diff --git a/packaging/qemu-linux-user-5.2.0-2.1.x86_64.rpm b/packaging/qemu-linux-user-5.2.0-2.1.x86_64.rpm deleted file mode 100644 index 8a11b1e10..000000000 Binary files a/packaging/qemu-linux-user-5.2.0-2.1.x86_64.rpm and /dev/null differ diff --git a/packaging/qemu-linux-user-5.2.0-57.1.i586.rpm b/packaging/qemu-linux-user-5.2.0-57.1.i586.rpm new file mode 100644 index 000000000..d5d3cb4da Binary files /dev/null and b/packaging/qemu-linux-user-5.2.0-57.1.i586.rpm differ diff --git a/packaging/qemu-linux-user-5.2.0-57.1.x86_64.rpm b/packaging/qemu-linux-user-5.2.0-57.1.x86_64.rpm new file mode 100644 index 000000000..18306c3ed Binary files /dev/null and b/packaging/qemu-linux-user-5.2.0-57.1.x86_64.rpm differ diff --git a/packaging/qemu-linux-user.spec b/packaging/qemu-linux-user.spec index 1f9e00c10..d9e01159b 100644 --- a/packaging/qemu-linux-user.spec +++ b/packaging/qemu-linux-user.spec @@ -33,8 +33,8 @@ Group: System/Emulators/PC Version: %qemuver Release: 20.1 Source: https://wiki.qemu.org/download/%{srcname}-%{srcver}.tar.xz -Source1001: qemu-linux-user-5.2.0-2.1.x86_64.rpm -Source1002: qemu-linux-user-5.2.0-2.1.i586.rpm +Source1001: qemu-linux-user-5.2.0-57.1.x86_64.rpm +Source1002: qemu-linux-user-5.2.0-57.1.i586.rpm ExclusiveArch: %{ix86} x86_64 -- cgit v1.2.3