qemu: Replace workaround with proper usermode fix for shmat
PATCH 1/2 qemu: Replace workaround with proper usermode fix for shmat
We were using a workaround to avoid problems with the behaviour of shmat() calls in usermode qemu. Switch to patches from upstream which are in review but not merged yet.
Update the mmap fixed/noreplace workaround for the changes.
--- meta/recipes-devtools/qemu/qemu.inc | 7 +- ...4-Handle-the-vsyscall-page-in-open_s.patch | 56 +++++ ...ongarch64-Remove-TARGET_FORCE_SHMLBA.patch | 43 ++++ ...0003-linux-user-Add-strace-for-shmat.patch | 71 ++++++ ...0004-linux-user-Rewrite-target_shmat.patch | 236 ++++++++++++++++++ ...that-shmat-does-not-break-proc-self-.patch | 85 +++++++ ...round-for-missing-MAP_FIXED_NOREPLAC.patch | 62 +++-- ...79ad8629b57a43daa62e46cc7af6e1078116.patch | 60 +++++ .../recipes-devtools/qemu/qemu/fix_segv.patch | 47 ---- 9 files changed, 586 insertions(+), 81 deletions(-) create mode 100644 meta/recipes-devtools/qemu/qemu/0001-linux-user-x86_64-Handle-the-vsyscall-page-in-open_s.patch create mode 100644 meta/recipes-devtools/qemu/qemu/0002-linux-user-loongarch64-Remove-TARGET_FORCE_SHMLBA.patch create mode 100644 meta/recipes-devtools/qemu/qemu/0003-linux-user-Add-strace-for-shmat.patch create mode 100644 meta/recipes-devtools/qemu/qemu/0004-linux-user-Rewrite-target_shmat.patch create mode 100644 meta/recipes-devtools/qemu/qemu/0005-tests-tcg-Check-that-shmat-does-not-break-proc-self-.patch create mode 100644 meta/recipes-devtools/qemu/qemu/4a8579ad8629b57a43daa62e46cc7af6e1078116.patch delete mode 100644 meta/recipes-devtools/qemu/qemu/fix_segv.patch
meta/recipes-devtools/qemu/qemu.inc +6 -1
@@ -33,7 +33,12 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \ file://0002-linux-user-Replace-use-of-lfs64-related-functions-an.patch \ file://fixedmeson.patch \ file://no-pip.patch \ - file://fix_segv.patch \ + file://4a8579ad8629b57a43daa62e46cc7af6e1078116.patch \ + file://0001-linux-user-x86_64-Handle-the-vsyscall-page-in-open_s.patch \ + file://0002-linux-user-loongarch64-Remove-TARGET_FORCE_SHMLBA.patch \ + file://0003-linux-user-Add-strace-for-shmat.patch \ + file://0004-linux-user-Rewrite-target_shmat.patch \ + file://0005-tests-tcg-Check-that-shmat-does-not-break-proc-self-.patch \ file://qemu-guest-agent.init \ file://qemu-guest-agent.udev \ "
meta/recipes-devtools/qemu/qemu/0001-linux-user-x86_64-Handle-the-vsyscall-page-in-open_s.patch new file +56 -0
56 lines not on this page · raw message
meta/recipes-devtools/qemu/qemu/0002-linux-user-loongarch64-Remove-TARGET_FORCE_SHMLBA.patch new file +43 -0
43 lines not on this page · raw message
meta/recipes-devtools/qemu/qemu/0003-linux-user-Add-strace-for-shmat.patch new file +71 -0
71 lines not on this page · raw message
meta/recipes-devtools/qemu/qemu/0004-linux-user-Rewrite-target_shmat.patch new file +236 -0
236 lines not on this page · raw message
meta/recipes-devtools/qemu/qemu/0005-tests-tcg-Check-that-shmat-does-not-break-proc-self-.patch new file +85 -0
85 lines not on this page · raw message
meta/recipes-devtools/qemu/qemu/0011-linux-user-workaround-for-missing-MAP_FIXED_NOREPLAC.patch +29 -33
130 lines not on this page · raw message
meta/recipes-devtools/qemu/qemu/4a8579ad8629b57a43daa62e46cc7af6e1078116.patch new file +60 -0
60 lines not on this page · raw message
meta/recipes-devtools/qemu/qemu/fix_segv.patch deleted +0 -47
47 lines not on this page · raw message
Signature · 1 line
2.40.1
PATCH 2/2 no-gplv3: Tweak for packagemangement in core-image-full-cmdline
If we enable package-management for core-image-full-cmdline we need the workarounds used for core-image-weston to ensure the oe-selftest license QA tests keep working.
--- meta/conf/distro/include/no-gplv3.inc | 2 ++ 1 file changed, 2 insertions(+)
meta/conf/distro/include/no-gplv3.inc +2 -0
@@ -19,6 +19,8 @@ PACKAGECONFIG:remove:pn-bluez5 = "readline" # so install rpm but not dnf IMAGE_FEATURES:remove:pn-core-image-weston = "package-management" CORE_IMAGE_EXTRA_INSTALL:pn-core-image-weston += "rpm" +IMAGE_FEATURES:remove:pn-core-image-full-cmdline = "package-management" +CORE_IMAGE_EXTRA_INSTALL:pn-core-image-full-cmdline += "rpm" # matchbox-terminal depends on vte, which is gpl3 CORE_IMAGE_BASE_INSTALL:remove:pn-core-image-weston = "matchbox-terminal"
Signature · 1 line
2.40.1
Re: [OE-core] [PATCH 2/2] no-gplv3: Tweak for packagemangement in core-image-full-cmdline
Quoted 16 lines · Richard Purdie
If we enable package-management for core-image-full-cmdline we need the workarounds
used for core-image-weston to ensure the oe-selftest license QA tests keep working.Signed-off-by Richard Purdie <[email protected]>--- meta/conf/distro/include/no-gplv3.inc | 2 ++ 1 file changed, 2 insertions(+)meta/conf/distro/include/no-gplv3.inc +0
-0
meta/conf/distro/include/no-gplv3.inc PACKAGECONFIG:remove:pn-bluez5 = "readline" · line 24
Quoted 6 lines
meta/conf/distro/include/no-gplv3.inc +2
-0@@ -19,6 +19,8 @@ PACKAGECONFIG:remove:pn-bluez5 = "readline" # so install rpm but not dnf IMAGE_FEATURES:remove:pn-core-image-weston = "package-management" CORE_IMAGE_EXTRA_INSTALL:pn-core-image-weston += "rpm" +IMAGE_FEATURES:remove:pn-core-image-full-cmdline = "package-management" +CORE_IMAGE_EXTRA_INSTALL:pn-core-image-full-cmdline += "rpm"
If a distro is not using rpm package backend then it seems to be not sufficient or did I miss anything
Quoted 17 lines
meta/conf/distro/include/no-gplv3.inc +0
-1# matchbox-terminal depends on vte, which is gpl3 CORE_IMAGE_BASE_INSTALL:remove:pn-core-image-weston = "matchbox-terminal" --2.40.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#196457):
https://lists.openembedded.org/g/openembedded-core/message/196457
Mute This Topic: https://lists.openembedded.org/mt/104660966/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-