[UBUNTU 21.10] qemu: target/s390x: Fix translation exception on illegal instruction
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
Wishlist
|
Skipper Bug Screeners | ||
qemu (Ubuntu) |
Fix Released
|
Medium
|
Canonical Server | ||
Focal |
Fix Released
|
Wishlist
|
Christian Ehrhardt | ||
Hirsute |
Fix Released
|
Wishlist
|
Christian Ehrhardt |
Bug Description
[Impact]
* A bad return in handling uretprobe makes qemu tcg to crash the probed
application.
* Fix is small and upstream, backport as SRU to fix it in active releases
as well
[Test Plan]
* See https:/
[Where problems could occur]
* Changes are limited to s390x TCG, so that is the kind of use cases to
look out for potential issues as well.
[Other Info]
* This bug on its own isn't important enough to cause everyone to
download a new qemu. But we now have another bug to bundle it with,
and users as well as the bug reporter are mostly interested in the
LTS. OTOH we need this fix here for F+H but the other one only for F.
Therefore intention is to hold it back for Hirsute via block-proposed
while fully completing Focal.
------------
--Problem Description---
Using an uretprobe in QEMU without hardware acceleration causes a SIGSEGV.
---uname output---
na
Machine Type = na
---Debugger---
A debugger is not configured
---Steps to Reproduce---
Run attach_probe eBPF testcase in QEMU.
Userspace tool common name: na
The userspace tool has the following bit modes: 64-bit
Userspace rpm: na
Userspace tool obtained from project website: na
Fix: https:/
Package qemu
focal (20.04LTS) 1:4.2-3ubuntu6.14
groovy (20.10) 1:5.0-5ubuntu9.6
hirsute (21.04) 1:5.2+dfsg-9ubuntu2
impish (metapackages): 1:5.2+dfsg-9ubuntu3
It would be good to have this fix in 20.04 and the later ones.
The patch applies cleanly to all levels.
Related branches
- Sergio Durigan Junior (community): Approve
- Canonical Server packageset reviewers: Pending requested
- Canonical Server: Pending requested
-
Diff: 131 lines (+109/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu/lp-1929926-target-s390x-Fix-translation-exception-on-illegal-in.patch (+101/-0)
- Sergio Durigan Junior (community): Approve
- Canonical Server packageset reviewers: Pending requested
- Canonical Server: Pending requested
-
Diff: 126 lines (+104/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu/lp-1929926-target-s390x-Fix-translation-exception-on-illegal-in.patch (+96/-0)
- Christian Ehrhardt (community): Approve
- Canonical Server: Pending requested
-
Diff: 6906 lines (+6195/-31)19 files modifieddebian/changelog (+4528/-4)
debian/control (+87/-19)
debian/control-in (+56/-6)
debian/optionrom.mak (+1/-1)
debian/patches/series (+8/-0)
debian/patches/ubuntu/avoid-fcf-clashing-with-i486.patch (+23/-0)
debian/patches/ubuntu/define-ubuntu-machine-types.patch (+823/-0)
debian/patches/ubuntu/enable-svm-by-default.patch (+34/-0)
debian/patches/ubuntu/lp-1929926-target-s390x-Fix-translation-exception-on-illegal-in.patch (+101/-0)
debian/patches/ubuntu/lp-1932175-s390x-cpumodel-add-3931-and-3932.patch (+119/-0)
debian/patches/ubuntu/pre-bionic-256k-ipxe-efi-roms.patch (+62/-0)
debian/qemu-block-extra.postinst (+59/-0)
debian/qemu-kvm-init (+89/-0)
debian/qemu-system-common.install (+1/-0)
debian/qemu-system-common.qemu-kvm.default (+8/-0)
debian/qemu-system-common.qemu-kvm.service (+16/-0)
debian/qemu-system-x86.NEWS (+80/-0)
debian/qemu-system-x86.README.Debian (+47/-0)
debian/rules (+53/-1)
- Lucas Kanashiro (community): Approve
- Canonical Server packageset reviewers: Pending requested
- Canonical Server: Pending requested
-
Diff: 6801 lines (+6016/-43)19 files modifieddebian/changelog (+4449/-4)
debian/control (+96/-22)
debian/control-in (+67/-13)
debian/patches/build-most-modules-statically-hack.diff (+1/-1)
debian/patches/series (+6/-0)
debian/patches/ubuntu/define-ubuntu-machine-types.patch (+823/-0)
debian/patches/ubuntu/enable-svm-by-default.patch (+34/-0)
debian/patches/ubuntu/lp-1929926-target-s390x-Fix-translation-exception-on-illegal-in.patch (+101/-0)
debian/patches/ubuntu/pre-bionic-256k-ipxe-efi-roms.patch (+62/-0)
debian/qemu-block-extra.postinst (+59/-0)
debian/qemu-kvm-init (+89/-0)
debian/qemu-system-common.install (+1/-0)
debian/qemu-system-common.qemu-kvm.default (+8/-0)
debian/qemu-system-common.qemu-kvm.service (+16/-0)
debian/qemu-system-gui.install (+2/-0)
debian/qemu-system-x86.NEWS (+80/-0)
debian/qemu-system-x86.README.Debian (+47/-0)
debian/rules (+61/-3)
debian/run-qemu.mount (+14/-0)
- Paride Legovini (community): Approve
- Canonical Server packageset reviewers: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 293 lines (+265/-0)4 files modifieddebian/changelog (+9/-0)
debian/patches/series (+2/-0)
debian/patches/ubuntu/lp-1749393-linux-user-Reserve-space-for-brk.patch (+158/-0)
debian/patches/ubuntu/lp-1929926-target-s390x-Fix-translation-exception-on-illegal-in.patch (+96/-0)
CVE References
tags: | added: architecture-all bugnameltc-192947 severity-medium targetmilestone-inin2110 |
Changed in ubuntu: | |
assignee: | nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
affects: | ubuntu → qemu (Ubuntu) |
Changed in ubuntu-power-systems: | |
importance: | Undecided → Medium |
Changed in ubuntu-power-systems: | |
assignee: | nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
Changed in qemu (Ubuntu): | |
assignee: | Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → Canonical Server Team (canonical-server) |
Changed in ubuntu-z-systems: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
tags: | added: qemu-21.10 |
Changed in qemu (Ubuntu Focal): | |
status: | New → Triaged |
Changed in qemu (Ubuntu Groovy): | |
status: | New → Triaged |
Changed in qemu (Ubuntu Hirsute): | |
status: | New → Triaged |
Changed in qemu (Ubuntu): | |
status: | New → Triaged |
Changed in qemu (Ubuntu Focal): | |
importance: | Undecided → Low |
Changed in qemu (Ubuntu Groovy): | |
importance: | Undecided → Low |
Changed in qemu (Ubuntu): | |
importance: | Undecided → Medium |
Changed in qemu (Ubuntu Hirsute): | |
importance: | Undecided → Low |
Changed in ubuntu-z-systems: | |
status: | New → Triaged |
Changed in ubuntu-power-systems: | |
status: | New → Triaged |
no longer affects: | ubuntu-power-systems |
Changed in ubuntu-z-systems: | |
importance: | Undecided → Medium |
Changed in qemu (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in ubuntu-z-systems: | |
status: | Triaged → Won't Fix |
importance: | Medium → Wishlist |
description: | updated |
Changed in qemu (Ubuntu Focal): | |
status: | Won't Fix → In Progress |
Changed in qemu (Ubuntu Hirsute): | |
status: | Won't Fix → In Progress |
Changed in qemu (Ubuntu Focal): | |
assignee: | nobody → Christian Ehrhardt (paelzer) |
Changed in qemu (Ubuntu Hirsute): | |
assignee: | nobody → Christian Ehrhardt (paelzer) |
tags: | added: server-todo |
Changed in ubuntu-z-systems: | |
status: | Won't Fix → In Progress |
Changed in ubuntu-z-systems: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-z-systems: | |
status: | Fix Committed → Fix Released |
@IBM Please could you provide a more step-by-step test case?
That would allow us to verify the package once the fix got picked up.