[Bug 625041] New: KVM/Xorg/fbdev/vmmouse segfaults
http://bugzilla.novell.com/show_bug.cgi?id=625041 http://bugzilla.novell.com/show_bug.cgi?id=625041#c0 Summary: KVM/Xorg/fbdev/vmmouse segfaults Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: All OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: novellbmw@lsmod.de QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=378001) --> (http://bugzilla.novell.com/attachment.cgi?id=378001) debug output with debuginfo and debugsource packages installed on openSUSE-11.1 (as 11.3 did not resolve addrs to symbols) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.11) Gecko/20100714 SUSE/2.0.6-2.1 SeaMonkey/2.0.6 openSUSE in KVM uses the cirrus driver by default, but can be run with the vesa and fbdev drivers, too. Activating fbdev in openSUSE-11.3 and 11.1 (but not 11.0 and 11.2, which do not use vmmouse) lets the X-server segfault in vmmouse_drv.so Reproducible: Always Steps to Reproduce: 0. have installed openSUSE's current kvm-0.12.3 1. qemu-kvm -m 1024 -cdrom openSUSE-11.3-KDE4-LiveCD-x86_64.iso 2. as root set Driver to fbdev via /etc/X11/xorg.conf.d/50-d* 3. rcxdm stop 4. startx Actual Results: X-Server segfaults in vmmouse_drv.so VMMouseProto_SendCmd Expected Results: should not segfault, but start KDE -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=625041
http://bugzilla.novell.com/show_bug.cgi?id=625041#c
yang xiaoyu
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c1
Stefan Dirsch
2. as root set Driver to fbdev via /etc/X11/xorg.conf.d/50-d*
Why are you doing this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c2
Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c4
Matthias Hopf
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c5
Matthias Hopf
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c7
--- Comment #7 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c8
Matthias Hopf
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c9
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c10
Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c11
--- Comment #11 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c12
--- Comment #12 from Stefan Dirsch
This is related to bug 604966. An equivalent call to iopl(3) as in attachment 366092 works in this case as well.
Alex, do you know why qemu in *some* cases behaves differently here?
If you don't,
Seems so. :-(
we probably should use a different patch which only sets iopl(3) while sending the command, and reverts this effect afterwards directly afterwards.
That would be in shared/vmmouse_proto.c:VMMouseProto_SendCmd() right before/after calling VMMouseProtoInOut(). Makes perfectly sense to me.
Still, I don't see where in vmmouse_proto.c the io port is actually accessed...
Obviously that's in VMMouseProtoInOut(...) __asm__ __volatile__( Or what do you mean exactly?
Also I don't know how to detect the current iopl level, so you can re-set it afterwards again.
Me not either. Can we assume that the Xserver runs as a "normal process"? # man iopl [...] The I/O privilege level for a normal process is 0. [...] Then it would be easy, but I doubt that. Maybe it's Level 1, maybe it's level 2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c14
--- Comment #14 from Alexander Graf
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c16
--- Comment #16 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c17
--- Comment #17 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c18
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c19
--- Comment #19 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c20
Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c21
--- Comment #21 from Stefan Dirsch
Created an attachment (id=398904) --> (http://bugzilla.novell.com/attachment.cgi?id=398904) [details] fbdev Xorg log with full debug+backtrace
Well, apparently the new code I've added didn't get active at all. Either you didn't update the xorg-x11-driver-input package or I patched dead code. Also there is no crash any longer in vmmouse_drv.
This works much better now, running KDE4, konsole and glxgears without problems... it only crashed on logout.
That's a complete different crash in glx module it seems. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c22
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c23
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c24
--- Comment #24 from Stefan Dirsch
Argh. VMwareLog(()) is only useful, if VMX86_DEVEL is defined, which apparently is not. I'm going to replace it with xf86Msg(X_INFO, ...).
.. which I can't that easily since the code is shared between the driver and the standalone tool. :-( -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c25
--- Comment #25 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c26
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c27
--- Comment #27 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c28
--- Comment #28 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c29
Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c30
--- Comment #30 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c31
--- Comment #31 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c32
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c33
Michal Srb
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c34
--- Comment #34 from Michal Srb
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c
Michal Srb
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c35
Michal Srb
https://bugzilla.novell.com/show_bug.cgi?id=625041
https://bugzilla.novell.com/show_bug.cgi?id=625041#c36
--- Comment #36 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com