kernel bug when mounting a qemu-nbd backed image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
1. % lsb_release -rd
Description: Ubuntu 15.10
Release: 15.10
2.
% apt-cache policy linux-image-generic
linux-image-
Installed: (none)
Candidate: 4.2.0.30.33
Version table:
4.2.0.30.33 0
500 http://
500 http://
4.2.0.16.18 0
500 http://
(kriek) ~ % apt-cache policy qemu-utils
qemu-utils:
Installed: 1:2.3+dfsg-
Candidate: 1:2.3+dfsg-
Version table:
*** 1:2.3+dfsg-
500 http://
500 http://
100 /var/lib/
1:
500 http://
3. Configure an NBD device with a qemu image and then mount it. The base image is a wily amd64 cloud-image in raw format.
Created the qcow2 device with: qemu-img create -f qcow2 -b /path/to/
Connect to nbd: sudo qemu-nbd -c /dev/nbd0 boot.img
Mount it: sudo mount /dev/nbd0 /mnt
Mount succeeds and I can examine the image.
% qemu-img info --backing-chain boot.img
image: boot.img
file format: qcow2
virtual size: 2.0G (2147483648 bytes)
disk size: 196K
cluster_size: 65536
backing file: /srv/images/
Format specific information:
compat: 1.1
lazy refcounts: false
refcount bits: 16
corrupt: false
image: /srv/images/
file format: raw
virtual size: 1.4G (1468006400 bytes)
disk size: 1.4G
4. mount command hung and kernel emitted BUG().
In reproducing this may be relevant.
a. Configure NBD with boot.img as in (3)
b. while still mounted rm boot.img
c. disconnect: qemu-nbd -d /dev/nbd0
d. unmount: umount /mnt
Then repeat (3).
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: linux-image-
ProcVersionSign
Uname: Linux 4.2.0-19-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version k4.2.0-19-generic.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/hwC0D3', '/dev/snd/
Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
Card0.Amixer.
Date: Thu Mar 3 09:18:14 2016
HibernationDevice: RESUME=
InstallationDate: Installed on 2015-05-10 (297 days ago)
InstallationMedia: Ubuntu-Server 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.3)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.149.3
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/05/2014
dmi.bios.vendor: Intel Corp.
dmi.bios.version: RKPPT10H.
dmi.board.
dmi.board.name: D53427RKE
dmi.board.vendor: Intel Corporation
dmi.board.version: G87971-406
dmi.chassis.type: 3
dmi.modalias: dmi:bvnIntelCor
Changed in linux (Ubuntu): | |
importance: | Undecided → High |
This change was made by a bot.