groovy qemu-arm-static: /build/qemu-W3R0Rj/qemu-5.0/linux-user/elfload.c:2317: pgb_reserved_va: Assertion `guest_base != 0' failed.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| qemu (Ubuntu) |
Undecided
|
Unassigned | ||
| Groovy |
Undecided
|
Unassigned |
Bug Description
I do not observe the following error in Ubuntu Focal
nor the qemu source downloaded and compiled on 30 September 2020.
The error message of the title is reproduced by
the following command and mmdebstrap fails.
Host is Ubuntu Focal of amd64 architecture.
root@ryutaroh-
qemu-user-static 1:5.0-5ubuntu9
root@ryutaroh-
I: automatically chosen mode: root
I: armhf cannot be executed, falling back to qemu-user
I: running apt-get update...
done
I: downloading packages with apt...
done
I: extracting archives...
done
I: installing packages...
done
qemu-arm-static: /build/
Related branches
- Lucas Kanashiro: Approve on 2020-11-03
- Canonical Server Team: Pending requested 2020-10-29
- Canonical Server packageset reviewers: Pending requested 2020-10-29
-
Diff: 6297 lines (+5622/-29)18 files modifieddebian/changelog (+4098/-3)
debian/control (+90/-17)
debian/control-in (+59/-8)
debian/patches/series (+5/-0)
debian/patches/ubuntu/define-ubuntu-machine-types.patch (+784/-0)
debian/patches/ubuntu/enable-svm-by-default.patch (+34/-0)
debian/patches/ubuntu/pre-bionic-256k-ipxe-efi-roms.patch (+62/-0)
debian/qemu-block-extra.postrm.in (+43/-0)
debian/qemu-block-extra.prerm.in (+45/-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.postrm.in (+44/-0)
debian/qemu-system-gui.prerm.in (+46/-0)
debian/qemu-system-x86.NEWS (+80/-0)
debian/qemu-system-x86.README.Debian (+47/-0)
debian/rules (+71/-1)
summary: |
- qemu-arm-static: /build/qemu-W3R0Rj/qemu-5.0/linux-user/elfload.c:2317: - pgb_reserved_va: Assertion `guest_base != 0' failed. + groovy qemu-arm-static: /build/qemu-W3R0Rj/qemu-5.0/linux- + user/elfload.c:2317: pgb_reserved_va: Assertion `guest_base != 0' + failed. |
Paolo Pisati (p-pisati) wrote : | #2 |
I'm experiencing the same issue:
$ sudo qemu-debootstrap --arch armhf groovy armhf-chroot
...
I: Running command: chroot armhf-chroot /debootstrap/
qemu-arm-static: /build/
Aborted (core dumped)
this on a recent Groovy amd64 installation.
flag@harukaze:
ii debootstrap 1.0.123ubuntu1 all Bootstrap a basic Debian system
Doug Torrance (profzoom) wrote : | #3 |
I'm also running into this trying to set up a pbuilder environment:
$ pbuilder-dist sid armhf create
...
I: Running command: chroot /var/cache/
qemu-arm-static: /build/
Aborted (core dumped)
This appears to have been fixed upstream [1, 2] in qemu 5.1, which has been in Debian unstable since August [3], but hasn't been merged into Ubuntu yet.
[1] https:/
[2] https:/
[3] https:/
Christian Ehrhardt (paelzer) wrote : | #4 |
Thanks Doug,
I'm working on 5.1 already.
Once done we can evaluate and consider SRUing this ...
Changed in qemu (Ubuntu): | |
status: | Incomplete → Triaged |
tags: | added: qemu-21.04 |
Launchpad Janitor (janitor) wrote : | #5 |
This bug was fixed in the package qemu - 1:5.1+dfsg-4ubuntu1
---------------
qemu (1:5.1+
* Merge with Debian testing, remaining changes:
Fixes qemu-arm-static Assertion `guest_base != 0' failed (LP: #1897854)
- qemu-kvm to systemd unit
- d/qemu-kvm-init: script for QEMU KVM preparation modules, ksm,
hugepages and architecture specifics
- d/qemu-
- d/qemu-
- d/qemu-
- d/rules: call dh_installinit and dh_installsystemd for qemu-kvm
- Distribution specific machine type (LP: 1304107 1621042)
- d/p/ubuntu/
types
- d/qemu-
for host-phys-bits=true (LP: 1776189)
- add an info about -hpb machine type in debian/
- provide pseries-
- ubuntu-q35 alias added to auto-select the most recent q35 ubuntu type
- Enable nesting by default
- d/p/ubuntu/
in qemu64 on amd
[ No more strictly needed, but required for backward compatibility ]
- improved dependencies
- Make qemu-system-common depend on qemu-block-extra
- Make qemu-utils depend on qemu-block-extra
- let qemu-utils recommend sharutils
- tolerate ipxe size change on migrations to >=18.04 (LP: 1713490)
- d/p/ubuntu/
reference 256k path
- d/control-in: depend on ipxe-qemu-
handle incoming migrations from former releases.
- d/control-in: Disable capstone disassembler library support (universe)
- d/qemu-
- d/control*, d/rules: disable xen by default, but provide universe
package qemu-system-x86-xen as alternative
[includes compat links changes of 5.0-5ubuntu4]
- allow qemu to load old modules post upgrade (LP 1847361)
- d/qemu-
upgrade
- d/rules: generate maintainer scripts matching package version on build
- d/rules: enable --enable-
- d/control: regenerate debian/control out of control-in
* Dropped changes [in Debian or no more needed]
- d/control-in: disable pmem on ppc64 as it is currently considered
experimental on that architecture (pmdk v1.8-1)
- d/rules: makefile definitions can't be recursive - sys_systems for s390x
- d/rules: report config log from the correct subdir
- d/control-in: disable rbd support unavailable on riscv (LP: 1872931)
- Pick further changes for groovy from debian/master since 5.0-5
- ati-vga-
Changed in qemu (Ubuntu): | |
status: | Triaged → Fix Released |
Christian Ehrhardt (paelzer) wrote : | #6 |
We've bundled this fix for Groovy (Thanks Mark) with another upcoming upload.
This should soon be resolved in groovy as well.
Launchpad Janitor (janitor) wrote : | #7 |
This bug was fixed in the package qemu - 1:5.0-5ubuntu9.2
---------------
qemu (1:5.0-5ubuntu9.2) groovy-security; urgency=medium
* SECURITY UPDATE: heap buffer overflow in sdhci_sdma_
- debian/
Size field in hw/sd/sdhci.c.
- CVE-2020-17380
- CVE-2020-25085
* SECURITY UPDATE: use-after-free via unchecked return value
- debian/
'
- CVE-2020-25084
* SECURITY UPDATE: out-of-bound access issue
- debian/
frame_number variables in hw/usb/hcd-ohci.c.
- CVE-2020-25624
* SECURITY UPDATE: infinite loop when a TD list has a loop
- debian/
before retire in hw/usb/hcd-ohci.c.
- CVE-2020-25625
* SECURITY UPDATE: assertion failure through usb_packet_unmap()
- debian/
'
- CVE-2020-25723
* SECURITY UPDATE: bounds issue in ati_2d_blt
- debian/
parameter values in hw/display/
- CVE-2020-27616
* SECURITY UPDATE: assertion failure
- debian/
eth_
- CVE-2020-27617
* Assertion failure via zero mmap_min_addr (LP: #1897854)
- debian/
ensure mmap_min_addr is non-zero in linux-user/main.c.
-- Marc Deslauriers <email address hidden> Fri, 20 Nov 2020 08:02:13 -0500
Changed in qemu (Ubuntu Groovy): | |
status: | New → Fix Released |
Hello Ryutaroh,
I tried to reproduce the problem by running the command you provided basically as-it on an up-to-date Groovy amd64 system, but I couldn't:
$ dpkg-query -W | grep qemu-user-static
qemu-user-static 1:5.0-5ubuntu9
$ mmdebstrap --architectures =armhf, arm64 --variant=apt --components="main contrib non-free" --include= linux-image- arm64,udev, kmod,e2fsprogs, btrfs-progs, systemd- sysv,libpam- systemd, libnss- systemd, dbus-user- session, locales, tzdata, openssh- server, bash,apt- utils,whiptail, vim-tiny, less,man- db,wpasupplican t,crda, raspi-firmware, firmware- brcm80211, firmware- linux-free, firmware- misc-nonfree, keyboard- configuration, console- setup bullseye /home/paride/delme/
I: automatically chosen mode: unshare
I: armhf cannot be executed, falling back to qemu-user
I: running apt-get update...
done
I: downloading packages with apt...
done
I: extracting archives...
done
I: installing packages...
done
I: installing remaining packages inside the chroot...
done
I: cleaning package lists and apt cache...
done
done
Could you please confirm the problem is reproducible, and provide any other bit of information about your setup that may be relevant?
Also: in the bug description you wrote "Host is Ubuntu Focal". Did you mean Groovy?
For the moment I'm setting the status of this report to Incomplete, please change it back to New after commenting back and we'll look at it again. Thanks!