Bugzilla – Attachment 366092 Details for
Bug 604966
vmmouse_detect seg faults at vmmouse_proto.c:62
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
suggested patch
xf86-input-vmmouse-call-iopl.diff (text/plain), 772 bytes, created by
Leonardo Chiquitto
on 2010-06-01 12:10:19 UTC
(
hide
)
Description:
suggested patch
Filename:
MIME Type:
Creator:
Leonardo Chiquitto
Created:
2010-06-01 12:10:19 UTC
Size:
772 bytes
patch
obsolete
>Subject: Not calling iopl() is triggering an undesired SEGV >References: bnc#604966 > > Reverts the following upstream commit: > > commit bcdec3d0cd4434770cd841c33c030e0d7203881f > Author: Philip Langdale <philipl@fido2.homeip.net> > Date: Thu Oct 23 23:35:28 2008 -0700 > > Remove call to iopl(). It's not portable and isn't necessary. > >diff --git a/tools/vmmouse_detect.c b/tools/vmmouse_detect.c >index e5f14a3..0dd4827 100644 >--- a/tools/vmmouse_detect.c >+++ b/tools/vmmouse_detect.c >@@ -47,6 +47,11 @@ main(void) > signal(SIGSEGV, segvCB); > > #if defined __i386__ || defined __x86_64__ >+ /* >+ * To access i/o ports above 0x3ff, we need to be in iopl(3). >+ */ >+ >+ iopl(3); > if (VMMouseClient_Enable()) { > VMMouseClient_Disable(); > return 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 604966
:
361512
| 366092