mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
Disable use of SSE instructions in Xorg's xf86SlowBcopy() function.
When such instructions are used to copy data from/to mapped video memory, some hypervisors (e.g. KVM, Microsoft Hyper-V) can generate SIGILL or SIGBUS exceptions, causing Xorg to crash. Reported by: nogcjx@fastmail.fm Approved by: x11 (bapt) PR: 202643 MFH: 2015Q3
This commit is contained in:
parent
a5db7d5da7
commit
6edde2ba50
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396167
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME?= xorg-server
|
||||
PORTVERSION= 1.14.7
|
||||
PORTREVISION?= 5
|
||||
PORTREVISION?= 6
|
||||
PORTEPOCH?= 1
|
||||
CATEGORIES= x11-servers
|
||||
MASTER_SITES= XORG/individual/xserver
|
||||
|
@ -0,0 +1,12 @@
|
||||
--- hw/xfree86/os-support/misc/Makefile.in.orig 2015-09-03 22:36:34.000000000 +0000
|
||||
+++ hw/xfree86/os-support/misc/Makefile.in 2015-09-03 22:33:10.000000000 +0000
|
||||
@@ -445,7 +445,8 @@ libmisc_la_SOURCES = SlowBcopy.c
|
||||
|
||||
#AM_LDFLAGS = -r
|
||||
INCLUDES = $(XORG_INCS)
|
||||
-AM_CFLAGS = $(XORG_CFLAGS) $(DIX_CFLAGS)
|
||||
+@I386_VIDEO_TRUE@I386_VIDEO_CFLAGS = -mno-sse
|
||||
+AM_CFLAGS = $(I386_VIDEO_CFLAGS) $(XORG_CFLAGS) $(DIX_CFLAGS)
|
||||
EXTRA_DIST = $(I386_SRCS) $(PORTIO_SRCS)
|
||||
all: all-am
|
||||
|
Loading…
Reference in New Issue
Block a user