Xorg crashes with kernel warning on KVM/VirtualBox -- process "Xorg" tried to map 0x00100000 bytes at page 0x00000000

Bug #676963 reported by Daniel Holbach
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Andy Whitcroft

Bug Description

[ 6.265066] WARNING: at /build/buildd/linux-2.6.37/drivers/pci/pci-sysfs.c:758 pci_mmap_resource.clone.9+0x156/0x1a0()
[ 6.265080] Hardware name: Bochs
[ 6.265083] process "Xorg" tried to map 0x00100000 bytes at page 0x00000000 on 0000:00:02.0 BAR 0 (start 0x f0000000, size 0x 2000000)
[ 6.265093] Modules linked in: ppdev psmouse serio_raw parport_pc i2c_piix4 lp parport 8139too 8139cp mii floppy
[ 6.265169] Pid: 648, comm: Xorg Not tainted 2.6.37-5-generic #13-Ubuntu
[ 6.265175] Call Trace:
[ 6.265210] [<ffffffff8106561f>] warn_slowpath_common+0x7f/0xc0
[ 6.265218] [<ffffffff81065716>] warn_slowpath_fmt+0x46/0x50
[ 6.265221] [<ffffffff812fcc26>] pci_mmap_resource.clone.9+0x156/0x1a0
[ 6.265225] [<ffffffff812fccb0>] pci_mmap_resource_wc+0x20/0x30
[ 6.265246] [<ffffffff811d4f31>] mmap+0x81/0x130
[ 6.265263] [<ffffffff81136790>] mmap_region+0x3b0/0x4f0
[ 6.265267] [<ffffffff81136c15>] do_mmap_pgoff+0x345/0x380
[ 6.265270] [<ffffffff81136e4e>] sys_mmap_pgoff+0x1fe/0x230
[ 6.265288] [<ffffffff81010cb9>] sys_mmap+0x29/0x30
[ 6.265291] [<ffffffff8100c132>] system_call_fastpath+0x16/0x1b

This happens with 2.6.37-5-generic in a natty amd64 vm. (-4 still works). X can't be brought up.

Revision history for this message
Daniel Holbach (dholbach) wrote :
Changed in linux (Ubuntu):
assignee: nobody → Andy Whitcroft (apw)
Revision history for this message
Andy Whitcroft (apw) wrote :

Seems that this has also been seen upstream. The upstream thread implies this is fixed upstream:

    http://www.spinics.net/lists/kernel/msg1111743.html

This seems to correspond to the commit below. I will pull this in and build some kernels for testing:

  commit 8c05cd08a7504b855c265263e84af61aabafa329
  Author: Darrick J. Wong <email address hidden>
  Date: Tue Nov 16 09:13:41 2010 -0800

    PCI: fix offset check for sysfs mmapped files

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Andy Whitcroft (apw) wrote :

Also confirmed that normal systems are able to boot the -5.13 kernel, this does seem to be specific to (multiple) virtualisation scenarios, including virtualbox and kvm,

Revision history for this message
Andy Whitcroft (apw) wrote :

Ok I have pulled back the suggested fix and built test kernels. Could you test the kernels at the URL below and see if they fix things for you. Pleas report back here:

    http://people.canonical.com/~apw/lp676963-natty/

Thanks.

Andy Whitcroft (apw)
summary: - process "Xorg" tried to map 0x00100000 bytes at page 0x00000000
+ Xorg crashes with kernel warning on KVM/VirtualBox -- process "Xorg"
+ tried to map 0x00100000 bytes at page 0x00000000
Revision history for this message
Daniel Holbach (dholbach) wrote :

It works.

Andy Whitcroft (apw)
Changed in linux (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 2.6.37-5.14

---------------
linux (2.6.37-5.14) natty; urgency=low

  [ Upstream Kernel Changes ]

  * PCI: fix offset check for sysfs mmapped files
    - LP: #676963
 -- Andy Whitcroft <email address hidden> Thu, 18 Nov 2010 18:12:27 +0000

Changed in linux (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Dennis Sheil (dennis-sheil) wrote :

I had a similar issue, installing the 2.6.37-5.14 packages fixes it for me as well.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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