failed to install ca-certificates-java in ppc64le systems: fatal: Tried to call a TRAP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Won't Fix
|
Undecided
|
Unassigned | ||
Focal |
Confirmed
|
Undecided
|
Unassigned | ||
Impish |
Won't Fix
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[SRU Justification]
[Impact]
Failed to install ca-certificates
[Fix]
Upstream commit 083fe9a12d20 ("linux-user/ppc: deliver SIGTRAP on POWERPC_EXCP_TRAP") along with the corresponding fix for tests in commit 62089c849d49 ("tests/
The first patch depends on commit d30e60e7b4c3 ("linux-user/ppc: Use force_sig_fault").
[Test Case]
apt-get install -y qemu qemu-user-static
docker run --rm --privileged multiarch/
docker run -it ppc64le/
apt-get update && apt-get install -y openjdk-11-jdk
[Where problems could occur]
SIGTRAP will then be handled properly inside the emulated environment, so if some tool in the host side is expecting for such failure, it will no longer be valid.
[Other Info]
While Debian already packaged qemu 1:7.0+dfsg-7 in https:/
For Impish and older, it takes more prerequisite commits yet to be found and back ported.
There is another bug 1981339 waiting to enter -proposed.
Please consider picking it up once you have moved this one to -updates.
========== original bug report ==========
Upstream bug: https:/
[Host environmen]
Operating system: Ubuntu Bionic/
OS/kernel version:
Architecture: ppc64le
QEMU flavor: qemu-system-x86_64
QEMU version: 1:2.11+
[QEMU command line]
apt-get install -y qemu qemu-user-static
docker run --rm --privileged multiarch/
docker run -it ppc64le/
apt-get update && apt-get install -y openjdk-11-jdk
[Emulated/
Operating system: Ubuntu Bionic/
OS/kernel version:
Architecture: ppc64le
[Description of problem]
qemu: fatal: Tried to call a TRAP occurs while running the:
/etc/ca-
Unknown privilege violation (03)
NIP 0000004012db12b0 LR 0000004002a4335c CTR 0000004012db1280 XER 0000000000000000 CPU#1
MSR 9000000102806901 HID0 0000000000000000 HF 9000000002806001 iidx 6 didx 6
TB 00000538 2314542730558
GPR00 ffffffbffcc22660 00000040033dd940 0000004002d92f00 00000040033de9a0
GPR04 0000000000000000 0000000000002000 0000000000000000 0000000000000000
GPR08 0000004002df2f00 0000004002df3460 0000000000000001 0000000000000000
GPR12 0000004012db1280 00000040033e88f0 0000004001b87410 0000000000000000
GPR16 0000004001872000 0000004012db12a4 0000004012db12ac 0000004012db12d0
GPR20 0000004012db12d8 00000000000003d8 0000004004014e20 00000040040151f8
GPR24 0000004002dc39f8 00000040033df9a0 0000004004014e10 0000004004014dd0
GPR28 0000004002df3470 0000004012db1280 0000004002df4600 00000040033dd940
CR 24884400 [ E G L L G G - - ] RES 00000040033de9a0
qemu: fatal: Tried to call a TRAP
NIP 0000004013342588 LR 0000004013340d84 CTR 0000004013340c8c XER 0000000000000000 CPU#1
MSR 9000000102806901 HID0 0000000000000000 HF 9000000002806001 iidx 6 didx 6
TB 00000539 2317026761994
GPR00 0000000000000001 00000040033df9d0 0000004013340c00 00000000fff7ad68
GPR04 00000000fff7ad68 000000404d235860 0000000000000105 0000000000000000
GPR08 0000000100013f10 0000000000000000 0000000000000008 00000040033cfa60
GPR12 000000010003cd10 00000040033e88f0 000000404d204303 00000040033dfac0
GPR16 0000004004016000 00000000fff7ad68 00000040033dfb88 0000000100001808
GPR20 0000004012db8b90 00000040033dfa50 0000004012db8b90 0000000044000000
GPR24 0000004012dd9000 0000004002dd6aa0 00000040033dfad8 000000404d204b08
GPR28 0000000000000000 0000004012db1000 0000000000000010 000000404d2047a8
CR 48884424 [ G L L L G G E G ] RES ffffffffffffffff
FPR00 0000000100016f00 3ff000853ce957eb 0000000000000000 0000000000000000
FPR04 000000000000000a 0000000000000006 000000000000000e 0000000000000000
FPR08 0000000000000042 403a000000000000 0000000000000064 0000000000000064
FPR12 4060000000000000 0000003000000000 0000000000000000 0000000000000060
FPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR28 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPSCR 000000008a008000
Aborted (core dumped)
[Steps to reproduce]
apt-get install -y qemu qemu-user-static
docker run --rm --privileged multiarch/
docker run -it ppc64le/
apt-get update && apt-get install -y openjdk-11-jdk
Related branches
- Andreas Hasenack (community): Approve
- git-ubuntu bot: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 7306 lines (+6615/-37)23 files modifieddebian/changelog (+4759/-3)
debian/control (+55/-9)
debian/control-in (+15/-25)
debian/patches/CVE-2021-3507.patch (+81/-0)
debian/patches/series (+13/-0)
debian/patches/ubuntu/define-ubuntu-machine-types.patch (+870/-0)
debian/patches/ubuntu/enable-svm-by-default.patch (+34/-0)
debian/patches/ubuntu/lp-1981339-target-s390x-Exit-tb-after-executing-ex_value.patch (+39/-0)
debian/patches/ubuntu/lp-1981339-target-s390x-Remove-DISAS_GOTO_TB.patch (+62/-0)
debian/patches/ubuntu/lp-1981339-target-s390x-Remove-DISAS_PC_STALE.patch (+79/-0)
debian/patches/ubuntu/lp-1981339-target-s390x-Remove-DISAS_PC_STALE_NOCHAIN.patch (+113/-0)
debian/patches/ubuntu/lp1970737-linux-aio-explain-why-max-batch-is-checked-in-laio_i.patch (+39/-0)
debian/patches/ubuntu/lp1970737-linux-aio-fix-unbalanced-plugged-counter-in-laio_io_.patch (+46/-0)
debian/patches/ubuntu/pre-bionic-256k-ipxe-efi-roms.patch (+62/-0)
debian/patches/ubuntu/qboot-Disable-LTO-for-ELF-binary-build-step.patch (+44/-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 (+4/-0)
According to the upstream discussion, this issue should have been fixed by merged commit https:/ /gitlab. com/qemu- project/ qemu/-/ commit/ 083fe9a12d2025b b719ce8fb8cef86 266f9bdddd and https:/ /gitlab. com/qemu- project/ qemu/-/ commit/ 62089c849d49f92 823c68624720cda c8fa4b43e0.