Mouse Input X freezes with XEN/HVM hosts

Bug #148584 reported by André Anjos
4
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Undecided
Unassigned
linux-source-2.6.22 (Ubuntu)
Won't Fix
Wishlist
Unassigned

Bug Description

Binary package hint: linux-image-2.6.22-12-xen

So, this is what happens:

I start an HVM domain on the Xen system (it seems not matter which kind of it is), I can reproduce this with either Windows or Linux systems. Here is the configuration of one of them:

#Kernel and memory size
kernel = '/usr/lib/xen-ioemu-3.1/boot/hvmloader'
device_model = '/usr/lib/xen-ioemu-3.1/bin/qemu-dm'
builder = 'hvm'
memory = '1024'
#disk = [ 'phy:/dev/slc4/slc4_disk,ioemu:hda,w', 'file:/home/rabello/tmp/iso/SLC45_i386_dvd.iso,ioemu:hdc:cdrom,r' ]
disk = [ 'phy:/dev/slc4/slc4_disk,ioemu:hda,w' ]

# Hostname and Networking
name = 'pcuw32slc4'
vif = [ 'type=ioemu, bridge=xenbr0' ]

# Behaviour
boot='c' #d is cdrom boot, c is disk boot.
vnc=0
#vncviewer=1
sdl=1

So, it uses SDL and not VNC. I choose SDL because with VNC the same problem happens much faster, as soon as I create the hosted system.

Well, the domain boots and so and after a few instants, the windows session on dom0 (the ubuntu host) has the mouse frozen. The keyboard continues to work. Occasionally, I see that the mouse starts misbehaving (left clicks not working properly) before it dies as described above.

If I try to go into the console and back into the X server, the keyboard stops also to work.

If I unconnect the mouse and reconnect, it does not come back (by the way, it is an USB mouse), but the keyboard goes back to life.

The problem does not affect running applications, but if I try to reboot, the kernel panics saying:

Oct 3 15:34:36 pcuw32 kernel: kernel BUG at /build/buildd/linux-source-2.6.22-2.6.22/debian/build/custom-source-xen/arch/i386/mm/pageattr.c:172!
Oct 3 15:34:36 pcuw32 kernel: invalid opcode: 0000 [#1]
Oct 3 15:34:36 pcuw32 kernel: SMP
Oct 3 15:34:36 pcuw32 kernel: Modules linked in: xt_physdev iptable_filter ip_tables x_tables tun af_packet i915 drm binfmt_misc rfcomm l2cap bluetooth bridge ppdev ipv6 container dock ac sbs video button battery loop sbp2 lp snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event sr_mod cdrom snd_seq snd_timer firewire_ohci firewire_core crc_itu_t snd_seq_device 8250_pnp 8250 serial_core iTCO_wdt iTCO_vendor_support intel_agp agpgart parport_pc parport serio_raw snd soundcore snd_page_alloc tsdev heci ext3 jbd mbcache sg sd_mod usbhid hid ff_memless pata_marvell usb_storage ohci1394 generic ide_core ieee1394 ahci ehci_hcd libata scsi_mod uhci_hcd usbcore e1000 dm_mirror dm_snapshot dm_mod thermal processor fan fuse apparmor commoncap
Oct 3 15:34:36 pcuw32 kernel: CPU: 1
Oct 3 15:34:36 pcuw32 kernel: EIP: 0061:[change_page_attr+1120/1718] Not tainted VLI
Oct 3 15:34:36 pcuw32 kernel: EFLAGS: 00210046 (2.6.22-12-xen #1)
Oct 3 15:34:36 pcuw32 kernel: EIP is at change_page_attr+0x460/0x6b6
Oct 3 15:34:36 pcuw32 kernel: eax: 00000000 ebx: 2793a063 ecx: 80000001 edx: 80000001
Oct 3 15:34:36 pcuw32 kernel: esi: 2793a063 edi: c1ca0ff8 ebp: c1d0a400 esp: ecf83ea4
Oct 3 15:34:36 pcuw32 kernel: ds: 007b es: 007b fs: 00d8 gs: 0033 ss: 0069
Oct 3 15:34:36 pcuw32 kernel: Process Xorg (pid: 7960, ti=ecf82000 task=c1a61ab0 task.ti=ecf82000)
Oct 3 15:34:36 pcuw32 kernel: Stack: e7dff000 00000001 00000000 80000001 00000001 c21ccfe0 00000000 00000000
Oct 3 15:34:36 pcuw32 kernel: 00000000 00000000 e7dff000 c1ca0ff8 00000000 00000000 00000000 00007ff0
Oct 3 15:34:36 pcuw32 kernel: 00000000 00000063 80000000 00000000 00007ff0 00000000 2793a063 80000001
Oct 3 15:34:36 pcuw32 kernel: Call Trace:
Oct 3 15:34:36 pcuw32 kernel: [free_hot_cold_page+194/381] free_hot_cold_page+0xc2/0x17d
Oct 3 15:34:36 pcuw32 kernel: [<ee2963c0>] agp_generic_destroy_page+0x49/0x70 [agpgart]
Oct 3 15:34:36 pcuw32 kernel: [<ee296c05>] agp_free_memory+0xb3/0xe8 [agpgart]
Oct 3 15:34:36 pcuw32 kernel: [<ee296377>] agp_generic_destroy_page+0x0/0x70 [agpgart]
Oct 3 15:34:36 pcuw32 kernel: [<ee295981>] agp_release+0x7e/0x143 [agpgart]
Oct 3 15:34:36 pcuw32 kernel: [__fput+171/353] __fput+0xab/0x161
Oct 3 15:34:36 pcuw32 kernel: [filp_close+81/88] filp_close+0x51/0x58
Oct 3 15:34:36 pcuw32 kernel: [sys_close+110/165] sys_close+0x6e/0xa5
Oct 3 15:34:36 pcuw32 kernel: [syscall_call+7/11] syscall_call+0x7/0xb
Oct 3 15:34:36 pcuw32 kernel: =======================
Oct 3 15:34:36 pcuw32 kernel: Code: f3 89 7c 24 0c 8b 4c 24 0c 89 7c 24 5c 8b 7c 24 2c 89 44 24 08 89 74 24 58 8b 07 8b 57 04 f0 0f c7 0f 75 f5 8b 45 0c 85 c0 75 04 <0f> 0b eb fe 48 89 45 0c eb 04 0f 0b eb fe 8b 45 00 f6 c4 04 0f
Oct 3 15:34:36 pcuw32 kernel: EIP: [change_page_attr+1120/1718] change_page_attr+0x460/0x6b6 SS:ESP 0069:ecf83ea4

Or, sometimes, this:

Oct 3 14:12:50 pcuw32 kernel: BUG: unable to handle kernel paging request at virtual address 00100104
Oct 3 14:12:50 pcuw32 kernel: printing eip:
Oct 3 14:12:50 pcuw32 kernel: c018397b
Oct 3 14:12:50 pcuw32 kernel: 2bada000 -> *pde = 00000001:112b2001
Oct 3 14:12:50 pcuw32 kernel: 1a8b2000 -> *pme = 00000000:00000000
Oct 3 14:12:50 pcuw32 kernel: Oops: 0000 [#1]
Oct 3 14:12:50 pcuw32 kernel: SMP
Oct 3 14:12:50 pcuw32 kernel: Modules linked in: xt_physdev iptable_filter ip_tables tun x_tables af_packet i915 drm binfmt_misc rfcomm l2cap bluetooth bridge ppdev ipv6 container dock ac sbs video button battery loop sbp2 lp snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device firewire_ohci firewire_core iTCO_wdt iTCO_vendor_support crc_itu_t 8250_pnp 8250 serial_core snd parport_pc parport tsdev intel_agp agpgart serio_raw soundcore snd_page_alloc heci usbhid hid ff_memless ext3 jbd mbcache sg pata_marvell sd_mod generic ide_core ohci1394 ieee1394 ahci libata scsi_mod ehci_hcd uhci_hcd usbcore e1000 dm_mirror dm_snapshot dm_mod thermal processor fan fuse apparmor commoncap
Oct 3 14:12:50 pcuw32 kernel: CPU: 0
Oct 3 14:12:50 pcuw32 kernel: EIP: 0061:[block_invalidatepage+51/173] Not tainted VLI
Oct 3 14:12:50 pcuw32 kernel: EFLAGS: 00210213 (2.6.22-12-xen #1)
Oct 3 14:12:50 pcuw32 kernel: EIP is at block_invalidatepage+0x33/0xad
Oct 3 14:12:50 pcuw32 kernel: eax: ffffffff ebx: 00100100 ecx: 00000002 edx: c224d314
Oct 3 14:12:50 pcuw32 kernel: esi: c2236b80 edi: c224d314 ebp: ffffffff esp: e160bd7c
Oct 3 14:12:50 pcuw32 kernel: ds: 007b es: 007b fs: 00d8 gs: 0000 ss: 0069
Oct 3 14:12:50 pcuw32 kernel: Process qemu-dm (pid: 15257, ti=e160a000 task=e1972030 task.ti=e160a000)
Oct 3 14:12:50 pcuw32 kernel: Stack: 00000000 00100100 c0183948 00027591 00000000 00025335 c014d262 c2236b80
Oct 3 14:12:50 pcuw32 kernel: c014d523 c2236b80 c014d5de 0000000e 00c4cbd8 0000000e 00000000 00000000
Oct 3 14:12:50 pcuw32 kernel: c1c4cbd8 00000000 ffffffff 0000000e 00000000 c2236b80 c20992a0 c2115e60
Oct 3 14:12:50 pcuw32 kernel: Call Trace:
Oct 3 14:12:50 pcuw32 kernel: [block_invalidatepage+0/173] block_invalidatepage+0x0/0xad
Oct 3 14:12:50 pcuw32 kernel: [do_invalidatepage+22/24] do_invalidatepage+0x16/0x18
Oct 3 14:12:50 pcuw32 kernel: [truncate_complete_page+36/63] truncate_complete_page+0x24/0x3f
Oct 3 14:12:50 pcuw32 kernel: [truncate_inode_pages_range+160/603] truncate_inode_pages_range+0xa0/0x25b
Oct 3 14:12:50 pcuw32 kernel: [truncate_inode_pages+23/26] truncate_inode_pages+0x17/0x1a
Oct 3 14:12:50 pcuw32 kernel: [__blkdev_put+68/259] __blkdev_put+0x44/0x103
Oct 3 14:12:50 pcuw32 kernel: [__fput+171/353] __fput+0xab/0x161
Oct 3 14:12:50 pcuw32 kernel: [filp_close+81/88] filp_close+0x51/0x58
Oct 3 14:12:50 pcuw32 kernel: [put_files_struct+95/167] put_files_struct+0x5f/0xa7
Oct 3 14:12:50 pcuw32 kernel: [do_exit+572/1862] do_exit+0x23c/0x746
Oct 3 14:12:50 pcuw32 kernel: [recalc_sigpending+11/29] recalc_sigpending+0xb/0x1d
Oct 3 14:12:50 pcuw32 kernel: [sys_exit_group+0/13] sys_exit_group+0x0/0xd
Oct 3 14:12:50 pcuw32 kernel: [get_signal_to_deliver+976/1040] get_signal_to_deliver+0x3d0/0x410
Oct 3 14:12:50 pcuw32 kernel: [do_notify_resume+132/1582] do_notify_resume+0x84/0x62e
Oct 3 14:12:50 pcuw32 kernel: [vma_merge+241/376] vma_merge+0xf1/0x178
Oct 3 14:12:50 pcuw32 kernel: [copy_to_user+37/60] copy_to_user+0x25/0x3c
Oct 3 14:12:50 pcuw32 kernel: [sys_select+353/391] sys_select+0x161/0x187
Oct 3 14:12:50 pcuw32 kernel: [work_notifysig+19/26] work_notifysig+0x13/0x1a
Oct 3 14:12:50 pcuw32 kernel: =======================
Oct 3 14:12:50 pcuw32 kernel: Code: 08 89 14 24 8b 00 a8 01 75 04 0f 0b eb fe 8b 06 f6 c4 08 0f 84 85 00 00 00 8b 06 f6 c4 08 75 04 0f 0b eb fe 8b 7e 0c 31 c0 89 fb <8b> 53 04 89 c5 03 6b 14 39 04 24 89 54 24 04 77 43 e8 68 8f 13
Oct 3 14:12:50 pcuw32 kernel: EIP: [block_invalidatepage+51/173] block_invalidatepage+0x33/0xad SS:ESP 0069:e160bd7c
Oct 3 14:12:50 pcuw32 kernel: Fixing recursive fault but reboot is needed!

I can check any other stuff on request.

Revision history for this message
André Anjos (andre.anjos-deactivatedaccount-deactivatedaccount) wrote :
Revision history for this message
André Anjos (andre.anjos-deactivatedaccount-deactivatedaccount) wrote :
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Now that the 7.10 Gutsy Gibbon release of Ubuntu is out (kernel 2.6.22-14), we were wondering if you can still reproduce this issue. Could you please download and try the new version of Ubuntu from http://www.ubuntu.com/getubuntu/download and report back your results. If the issue is still present in the new release, please attach the following information:

* uname -a > uname-a.log
* cat /proc/version_signature > version.log
* dmesg > dmesg.log
* sudo lspci -vvnn > lspci-vvnn.log

Please be sure to attach each file as a separate attachment. For more information regarding the kernel team bug policy, please refer to https://wiki.ubuntu.com/KernelTeamBugPolicies . Thanks again and we appreciate your help and feedback.

Changed in linux-source-2.6.22:
status: New → Incomplete
Revision history for this message
André Anjos (andre.anjos-deactivatedaccount-deactivatedaccount) wrote : Re: [Bug 148584] Re: Mouse Input X freezes with XEN/HVM hosts

Hi, I did test this with the kernel you mentioned. I've made it to work as
well and here was the problem. If one assigns more memory than it is
available physically to VMs working concurrently, the result is a crash in
the OS, followed by the trace I posted before.

There is basically nothing preventing me to do so. It would be good to have
this either limited or impossible to reset to avoid such conditions.

On 10/22/07, Leann Ogasawara <email address hidden> wrote:
>
> Thank you for taking the time to report this bug and helping to make
> Ubuntu better. Now that the 7.10 Gutsy Gibbon release of Ubuntu is out
> (kernel 2.6.22-14), we were wondering if you can still reproduce this
> issue. Could you please download and try the new version of Ubuntu from
> http://www.ubuntu.com/getubuntu/download and report back your results.
> If the issue is still present in the new release, please attach the
> following information:
>
> * uname -a > uname-a.log
> * cat /proc/version_signature > version.log
> * dmesg > dmesg.log
> * sudo lspci -vvnn > lspci-vvnn.log
>
> Please be sure to attach each file as a separate attachment. For more
> information regarding the kernel team bug policy, please refer to
> https://wiki.ubuntu.com/KernelTeamBugPolicies . Thanks again and we
> appreciate your help and feedback.
>
> ** Changed in: linux-source-2.6.22 (Ubuntu)
> Status: New => Incomplete
>
> --
> Mouse Input X freezes with XEN/HVM hosts
> https://bugs.launchpad.net/bugs/148584
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Andre ANJOS
University of Wisconsin group
CERN, PH/EP Division
Office: 32-R-A09, Tel: (+ 41 22) 767 5863
Fax: (+ 41 22) 767 8370
CH-1211 Geneve 23 - Suisse/Switzerland
http://cern.ch/rabello

Changed in linux-source-2.6.22:
importance: Undecided → Wishlist
status: Incomplete → Triaged
Revision history for this message
Brian Murray (brian-murray) wrote :

I am assigning this bug to the 'ubuntu-kernel-team' per their bug policy. For future reference you can learn more about their bug policy at https://wiki.ubuntu.com/KernelTeamBugPolicies .

Changed in linux-source-2.6.22:
assignee: nobody → ubuntu-kernel-team
Revision history for this message
Launchpad Janitor (janitor) wrote : This bug is now reported against the 'linux' package

Beginning with the Hardy Heron 8.04 development cycle, all open Ubuntu kernel bugs need to be reported against the "linux" kernel package. We are automatically migrating this bug to the new "linux" package. However, development has already began for the upcoming Intrepid Ibex 8.10 release. It would be helpful if you could test the upcoming release and verify if this is still an issue - http://www.ubuntu.com/testing . If the issue still exists, please update this report by changing the Status of the "linux" task from "Incomplete" to "New". We appreciate your patience and understanding as we make this transition. Thanks!

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Revision history for this message
Jim Lieb (lieb) wrote :

This bug report is being closed because we received no response to the previous inquiry for information. Please reopen if this is still an issue in the current Ubuntu release, Jaunty Jackalope 9.04 - http://www.ubuntu.com/getubuntu/download. To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.

Changed in linux (Ubuntu):
status: Incomplete → Won't Fix
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.