kvm crashes host kernel on trusty+hwe-w (unable to handle kernel paging request in __mtrr_lookup_var_next)

Bug #1532571 reported by Christian Ehrhardt 
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Unassigned
Wily
Triaged
Medium
Unassigned
linux-lts-wily (Ubuntu)
Triaged
Medium
Unassigned
Wily
Triaged
Medium
Unassigned

Bug Description

When building the test environment for subiquity I end up with an image I can run with qemu/kvm.
And I realized that this works fine with the Trusty kernel (Host), but when running on trusty+hwe-t (4.2.0-23-generic) it reliably crashes my host (not only the guest).

On the good side it seems
1. 1005 reproducible
2. always the same issue

The Commandline I run is:
sudo qemu-system-x86_64 -smp 2 -m 1024 -enable-kvm -bios /usr/share/ovmf/OVMF.fd -drive snapshot=on,format=raw,cache=unsafe,if=ide,file=ubuntu-server-daily-wily-amd64-installer.img,serial=QM_INSTALL_01 -drive format=raw,cache=unsafe,if=ide,file=target.img_1,serial=QM_TARGET_01 -drive format=raw,cache=unsafe,if=virtio,file=target.img_2,serial=QM_TARGET_02 -drive format=raw,cache=unsafe,if=virtio,file=target.img_3,serial=QM_TARGET_03 -drive format=raw,cache=unsafe,if=virtio,file=target.img_4,serial=QM_TARGET_04 -global isa-fdc.driveA= -net user -net nic,model=e1000 -net nic,model=virtio -net nic,model=i82559er -monitor telnet:127.0.0.1:2446,server,nowait -serial stdio

I'll attach what I've seen in dmesg, let me know if you need any more debug data.

If one provides me a upload target I can share the image I boot (2GB).
---
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: amd64
CurrentDesktop: KDE
DistroRelease: Ubuntu 14.04
HibernationDevice: RESUME=UUID=a36a1b98-ded1-42b1-8b9b-6f6f565ba2b6
InstallationDate: Installed on 2015-08-14 (156 days ago)
InstallationMedia: Kubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150219.1)
MachineType: LENOVO 20BSCTO1WW
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-23-generic root=UUID=265add9d-4d61-40e3-956b-17ac2695c621 ro quiet splash nomdmonddf nomdmonisw crashkernel=384M-:128M vt.handoff=7
ProcVersionSignature: Ubuntu 4.2.0-23.28~14.04.1-generic 4.2.6
RelatedPackageVersions:
 linux-restricted-modules-4.2.0-23-generic N/A
 linux-backports-modules-4.2.0-23-generic N/A
 linux-firmware 1.127.19
Tags: trusty
Uname: Linux 4.2.0-23-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip kvm libvirtd lp lpadmin lxd plugdev sambashare sbuild sudo
_MarkForUpload: True
dmi.bios.date: 06/26/2015
dmi.bios.vendor: LENOVO
dmi.bios.version: N14ET31W (1.09 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20BSCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: SDK0E50510 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias: dmi:bvnLENOVO:bvrN14ET31W(1.09):bd06/26/2015:svnLENOVO:pn20BSCTO1WW:pvrThinkPadX1Carbon3rd:rvnLENOVO:rn20BSCTO1WW:rvrSDK0E50510WIN:cvnLENOVO:ct10:cvrNone:
dmi.product.name: 20BSCTO1WW
dmi.product.version: ThinkPad X1 Carbon 3rd
dmi.sys.vendor: LENOVO

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Revision history for this message
Ryan Harper (raharper) wrote :

https://lists.debian.org/debian-kernel/2015/10/msg00332.html

common threads 4.2 kernel and UEFI mode of kvm.

Mathew Hodson (mhodson)
affects: kvm (Ubuntu) → qemu (Ubuntu)
Changed in qemu (Ubuntu):
importance: Undecided → High
Mathew Hodson (mhodson)
affects: qemu (Ubuntu) → linux (Ubuntu)
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1532571

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: trusty
Revision history for this message
Christian Ehrhardt  (paelzer) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Christian Ehrhardt  (paelzer) wrote : AudioDevicesInUse.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : BootDmesg.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : CRDA.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : IwConfig.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : Lspci.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : Lsusb.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : ProcEnviron.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : ProcModules.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : PulseList.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : RfKill.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : UdevDb.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : UdevLog.txt

apport information

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

While - as initially reported - I doubt that we need the apport data.
I still added a full apport-collect to make the bot and process happy.

Also seeing that there are equal reports to Debian with 4.2 kernels I set it to confirmed.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.4 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4-wily

tags: added: kernel-da-key
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Tested:
linux-image-4.4.0-040400-generic 4.4.0-040400.201601101930

No more crashing the system with that

tags: added: kernel-fixed-upstream
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Can you also test the latest upstream 4.2 stable kernel? That will tell us if the fix was cc'd to stable and has already landed upstream.

The latest 4.2 upstream stable kernel can be downloaded from:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.2.8-wily/

tags: added: needs-bisect
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Joseph,
yes the 4.2.8 seems to have the fix has well.

Any tag like kernel-fixed-upstream-stable for that?

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Thanks for testing, Christian. That means Wily(And Trusty HWE) should get the fix through the normal stable update process.

Changed in linux (Ubuntu Wily):
status: New → Triaged
Changed in linux (Ubuntu):
status: Confirmed → Triaged
Changed in linux (Ubuntu Wily):
importance: Undecided → Medium
Changed in linux (Ubuntu):
importance: High → Medium
Changed in linux-lts-wily (Ubuntu):
status: New → Triaged
Changed in linux-lts-wily (Ubuntu Wily):
status: New → Triaged
Changed in linux-lts-wily (Ubuntu):
importance: Undecided → Medium
Changed in linux-lts-wily (Ubuntu Wily):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.