Bug 574621 - Linux pvmmu guests (FC11, FC12, etc) crash on boot on AMD hosts with NPT disabled
Summary: Linux pvmmu guests (FC11, FC12, etc) crash on boot on AMD hosts with NPT disa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm
Version: 5.5
Hardware: All
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 575257 590125 648984 (view as bug list)
Depends On:
Blocks: 578577 578579
TreeView+ depends on / blocked
 
Reported: 2010-03-18 00:11 UTC by Marcelo Tosatti
Modified: 2018-10-27 11:23 UTC (History)
10 users (show)

Fixed In Version: kvm-83-165.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-13 23:34:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0028 0 normal SHIPPED_LIVE Low: kvm security and bug fix update 2011-01-13 11:03:39 UTC

Description Marcelo Tosatti 2010-03-18 00:11:46 UTC
KVM: x86: ignore access permissions for hypercall patching

Ignore access permissions while patching hypercall instructions.
Otherwise KVM injects a page fault when trying to patch vmcall
on read-only text regions:

Freeing initrd memory: 8843k freed 
Freeing unused kernel memory: 660k freed 
Write protecting the kernel text: 4780k 
Write protecting the kernel read-only data: 1912k 
BUG: unable to handle kernel paging request at c01292e3
IP: [<c01292e3>] kvm_leave_lazy_mmu+0x43/0x70
*pde = 00910067 *pte = 00129161
Oops: 0003 [#1] SMP

CC: stable
Reported-and-Tested-by: Stefan Bader <stefan.bader>
Signed-off-by: Marcelo Tosatti <mtosatti>

Comment 5 lihuang 2010-03-23 03:12:25 UTC
Hi Marcelo 
   Do we have reproducer for RHEL x86_64 host ?

Comment 6 Marcelo Tosatti 2010-03-23 18:20:05 UTC
*** Bug 575257 has been marked as a duplicate of this bug. ***

Comment 7 Marcelo Tosatti 2010-03-23 18:21:51 UTC
lihuang,

You need an AMD host without NPT and recent Linux guest (Fedora 12 for eg).

Comment 8 Marcelo Tosatti 2010-03-23 18:27:47 UTC
The original report can be found here:

https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/531823

Comment 9 lihuang 2010-03-23 20:09:21 UTC
(In reply to comment #7)
> lihuang,
> 
> You need an AMD host without NPT and recent Linux guest (Fedora 12 for eg).    

Yes . did reproduced with Fc12 guest when disable NPT.

Thank you.

Comment 14 Miya Chen 2010-04-08 08:49:10 UTC
Tested in kvm-83-165.el5, this problem does not exist.
cmd:
/usr/libexec/qemu-kvm -no-hpet -rtc-td-hack -usbdevice tablet -smp 2 -m 4G -drive file=f12_32.qcow2,if=ide -net nic,vlan=0,macaddr=20:88:99:11:99:11 -net tap,vlan=0,script=/etc/qemu-ifup -uuid `uuidgen` -cpu qemu64,+sse2 -vnc :16 -monitor stdio -boot n

result:
f12_32bit can be installed successfully and then can boot successfully.

Comment 16 Ben Hutchings 2010-04-29 14:10:32 UTC
(In reply to comment #14)
> Tested in kvm-83-165.el5, this problem does not exist.

This package does not seem to be available; is there a timetable to release it?

Comment 17 Marcelo Tosatti 2010-05-17 02:21:18 UTC
*** Bug 590125 has been marked as a duplicate of this bug. ***

Comment 18 Amit Shah 2010-05-18 15:32:23 UTC
*** Bug 590125 has been marked as a duplicate of this bug. ***

Comment 21 Miya Chen 2010-11-02 05:19:26 UTC
Based on comment#14, change status to verified.

Comment 23 errata-xmlrpc 2011-01-13 23:34:16 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0028.html

Comment 24 Glauber Costa 2011-03-01 20:10:43 UTC
*** Bug 648984 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.