Installing qemu-user-static in an i386 lxc container applies the binfmt changes to the host, breaking execution in that host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
binfmt-support (Ubuntu) |
Confirmed
|
Medium
|
Unassigned | ||
linux (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
lxc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
qemu-linaro (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
If you create an i386 container on an amd64 host and install qemu-user-static on the container, it will run "update-binfmts --import qemu-x86_64" and since binfmt doesn't seem to be containerized, it will affect the host causing all binary executions to go through /usr/bin/
salgado@
ERROR: ioctl(SNDCTL_
ERROR: ioctl(SNDCTL_
qemu: Unsupported syscall: 202
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Because of that you won't be able to execute anything on the host, so the only way to solve that is to restart or run the following in the container:
update-binfmts --package qemu-user-static --remove qemu-x86_64 /usr/bin/
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-
ProcVersionSign
Uname: Linux 3.2.0-9-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.90-0ubuntu2
Architecture: amd64
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CONEXANT Analog [CONEXANT Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
Card0.Amixer.info:
Card hw:0 'PCH'/'HDA Intel PCH at 0xf1620000 irq 49'
Mixer name : 'Intel CougarPoint HDMI'
Components : 'HDA:14f1506e,
Controls : 23
Simple ctrls : 8
Card29.Amixer.info:
Card hw:29 'ThinkPadEC'
Mixer name : 'ThinkPad EC (unknown)'
Components : ''
Controls : 1
Simple ctrls : 1
Card29.
Simple mixer control 'Console',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
Date: Tue Jan 17 10:56:49 2012
HibernationDevice: RESUME=
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MachineType: LENOVO 4170CTO
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.67
SourcePackage: linux
StagingDrivers: mei
UpgradeStatus: Upgraded to precise on 2012-01-17 (0 days ago)
dmi.bios.date: 11/01/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 8CET50WW (1.30 )
dmi.board.
dmi.board.name: 4170CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 4170CTO
dmi.product.
dmi.sys.vendor: LENOVO
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
summary: |
- Installing qemu-user-static on an i386 lxc container will hose your - amd64 host + Installing qemu-user-static in an i386 lxc container applies the binfmt + changes to the host, breaking execution in that host |
Changed in lxc (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: |
added: bot-stop-nagging removed: kernel-request-3.2.0-10.17 kernel-request-3.2.0-10.18 |
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in binfmt-support (Ubuntu): | |
importance: | Undecided → Medium |
Changed in lxc (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in linux (Ubuntu): | |
status: | Invalid → Confirmed |
Changed in linux (Ubuntu): | |
status: | Confirmed → Invalid |
Thank you for taking the time to file a bug report on this issue.
However, given the number of bugs that the Kernel Team receives during any development cycle it is impossible for us to review them all. Therefore, we occasionally resort to using automated bots to request further testing. This is such a request.
We have noted that there is a newer version of the development kernel than the one you last tested when this issue was found. Please test again with the newer kernel and indicate in the bug if this issue still exists or not.
You can update to the latest development kernel by simply running the following commands in a terminal window:
sudo apt-get update
sudo apt-get upgrade
If the bug still exists, change the bug status from Incomplete to Confirmed. If the bug no longer exists, change the bug status from Incomplete to Fix Released.
If you want this bot to quit automatically requesting kernel tests, add a tag named: bot-stop-nagging.
Thank you for your help, we really do appreciate it.