summaryrefslogtreecommitdiff
path: root/xserver
AgeCommit message (Collapse)Author
2018-01-20Remove code to pull softfloat libs.Matthieu Herrb
It was needed at some point in the past, but doesn't compile and isn't needed with clang. Reported by jsg@.
2018-01-15watch for events sent by drm(4) over kevent using EVFILT_DEVICERobert Nagy
and NOTE_CHANGE to notify the desktop environment to deal with the change (e.g. after plugging in an HDMI cable) with this change there is no need to manually do any randr commands if your desktop environment supports it (gnome, mate, kde, etc.) ok matthieu@, kettenis@
2017-12-08Update to xserver 1.19.5.Matthieu Herrb
Tested by bru@, jsg@ and others
2017-12-05Use ws as default driver for touchpads.Ulf Brosziewski
ok matthieu@
2017-10-14MFC: Unvalidated extra length in ProcEstablishConnection (CVE-2017-12176)Matthieu Herrb
2017-10-14MFC: dbe: Unvalidated variable-length request inMatthieu Herrb
ProcDbeGetVisualInfo (CVE-2017-12177) v2: Protect against integer overflow (Alan Coopersmith)
2017-10-14MFC: Xi: fix wrong extra length check in ProcXIChangeHierarchyMatthieu Herrb
(CVE-2017-12178)
2017-10-14MFC: Xi: integer overflow and unvalidated length inMatthieu Herrb
(S)ProcXIBarrierReleasePointer [jcristau: originally this patch fixed the same issue as commit 211e05ac85 "Xi: Test exact size of XIBarrierReleasePointer", with the addition of these checks] This addresses CVE-2017-12179
2017-10-14MFC: Xi: Test exact size of XIBarrierReleasePointerMatthieu Herrb
Otherwise a client can send any value of num_barriers and cause reading or swapping of values on heap behind the receive buffer.
2017-10-14MFC: hw/xfree86: unvalidated lengthsMatthieu Herrb
This addresses: CVE-2017-12180 in XFree86-VidModeExtension CVE-2017-12181 in XFree86-DGA CVE-2017-12182 in XFree86-DRI
2017-10-14MFC: xfixes: unvalidated lengths (CVE-2017-12183)Matthieu Herrb
v2: Use before swap (Jeremy Huddleston Sequoia) v3: Fix wrong XFixesCopyRegion checks (Alan Coopersmith)
2017-10-14MFC: Unvalidated lengthsMatthieu Herrb
v2: Add overflow check and remove unnecessary check (Julien Cristau) This addresses: CVE-2017-12184 in XINERAMA CVE-2017-12185 in MIT-SCREEN-SAVER CVE-2017-12186 in X-Resource CVE-2017-12187 in RENDER
2017-10-14MFC: os: Make sure big requests have sufficient length.Matthieu Herrb
A client can send a big request where the 32B "length" field has value 0. When the big request header is removed and the length corrected, the value will underflow to 0xFFFFFFFF. Functions processing the request later will think that the client sent much more data and may touch memory beyond the receive buffer.
2017-10-14MFC: xkb: Handle xkb formated string output safely (CVE-2017-13723)Matthieu Herrb
Generating strings for XKB data used a single shared static buffer, which offered several opportunities for errors. Use a ring of resizable buffers instead, to avoid problems when strings end up longer than anticipated.
2017-10-14MFC: xkb: Escape non-printable characters correctlyMatthieu Herrb
XkbStringText escapes non-printable characters using octal numbers. Such escape sequence would be at most 5 characters long ("\0123"), so it reserves 5 bytes in the buffer. Due to char->unsigned int conversion, it would print much longer string for negative numbers.
2017-10-14MFC: Xext/shm: Validate shmseg resource id (CVE-2017-13721)Matthieu Herrb
Otherwise it can belong to a non-existing client and abort X server with FatalError "client not in use", or overwrite existing segment of another existing client.
2017-09-25Force Intel Ironlake chipsets to use the xf86-video-intel driver.Matthieu Herrb
stsp@ reported that modesetting(4) has been reported unreliable on his laptop, while intel(4) works. XXXX to be removed after 6.2 to figure out and fix the issue. ok kettenis@, also discussed briefly with deraadt@ during EuroBSDCon.
2017-08-07Disable SSE optimizations on i386/amd64 for SlowBcopy.Matthieu Herrb
It is supposed to be slow, and 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. Bug report to OpenBSD by Max Parmer, fix from FreeBSD (Dimitry Andric) via kettenis@ ok kettenis@
2017-08-07Create on OpenBSD-specific version of listPossibleVideoDrivers() that takesMark Kettenis
care of autoconfiguration based on the information returned by the WSDISPLAYIO_GTYPE ioctl of the console FD. This should fix selection of wsfb on loongson and sgi when using a non-KMS kernel driver. ok matthieu@, jsg@
2017-07-14Use the modesetting driver by default on 4th generation Intel Graphics andMark Kettenis
later. This matches what several Linux distros do these days as it tends to work better than the intel driver in most cases. There are some performance issues with vncviewer on at least Ivy Bridge and Haswell. But for now that regression outweighs the benefits. ok robert@, tedu@, sthen@
2017-07-12Add code to update the value of the RandR "Backlight" property based on theMark Kettenis
KMS connector property of the same name if such a property is present. ok matthieu@
2017-07-07Merge upstream fixes to the X event swapping code.Matthieu Herrb
(CVE-2017-10971 and CVE-2017-10972).
2017-05-21Make X work with radeondrm(4) hardware on loongson.Visa Hankala
OK jsg@
2017-03-07make xserver build on arm64Jonathan Gray
ok matthieu@
2017-03-01Fix arc4random_buf(3) detection. Noticed by Eric Engestrom onMatthieu Herrb
the xorg-devel list. Thanks
2017-02-28Oops, in previous commit I forgot to remove the actual implementationMatthieu Herrb
of the unused *ToID functions(). Spotted by Adam Jackson on xorg-devel list. Thanks.
2017-02-28regenMatthieu Herrb
2017-02-28auth: remove AuthToIDFunc and associated functions. Not used anymore.Matthieu Herrb
And the current code for MitToId has a use-after-free() issue. Advisory X41-2017-001: Multiple Vulnerabilities in X.Org
2017-02-28MFC: Use arc4random_buf(3) if available to generate cookies.Matthieu Herrb
Advisory X41-2017-001: Multiple Vulnerabilities in X.Org.
2017-02-28MFC: Use timingsafe_memcmp() to compare MIT-MAGIC-COOKIESMatthieu Herrb
Advisory X41-2017-001: Multiple Vulnerabilities in X.Org.
2016-10-11regenMatthieu Herrb
2016-10-04ignore chown error (for systems which don't install a Xserver)Theo de Raadt
2016-10-02fix the ownership of the link /usr/X11R6/bin/X -> XorgMatthieu Herrb
2016-09-12Fix a bunch of gcc warnings.Matthieu Herrb
- constify name field - rename devname -> devnam - replace deprecated Xprintf() with asprintf()
2016-09-12sys/select.h -> sys/time.hMatthieu Herrb
2016-09-12Fix build after headers cleanup.Matthieu Herrb
include wscons headers after sys/ioct.h and sys/select.h with deraadt@ and kettenis@
2016-09-03Remove zaurus keyboard modelPhilip Guenther
ok matthieu@
2016-08-13Kill remaining HP300 bitsMatthieu Herrb
2016-08-09Update to xserver 1.18.4Matthieu Herrb
tested by krw@ and dcoppa@ ok dcoppa@
2016-08-03xserver: fix an off-by-one error that lead to asprintf("%s", NULL)Matthieu Herrb
reported by deraadt@, fix reviewed in X.Org by Keith Packard.
2016-07-30Merge the build of Xephyr in the main xserver build.Matthieu Herrb
Recent X server doesn't require to build the DIX with different options for xfree86 and kdrive. Tested for beeing a no-op on m88k by Kenji Aoyama. Thanks
2016-05-29Update to xserver 1.18.3. Tested by shadchin@ and naddy@.Matthieu Herrb
Note that indirect GLX is now disbled by default.
2016-05-12No more hppa64Matthieu Herrb
2016-04-24Fix white space/indentation to match X.Org style.Matthieu Herrb
2016-04-24Fall back to /dev/ttyC0 when the console device is not a wsdisplay(4)Matthieu Herrb
Problem noticed by sthen@.
2016-04-02Don't build the PCVT console backend anymore.Matthieu Herrb
2016-04-02Implement VT switching (based on the USL compat interface) in theMatthieu Herrb
wscons console backend and use it by default. ok kettenis@
2016-03-27Make alpha_video.c build in recent X server.Matthieu Herrb
Completely broken on VGA cards (libpciaccess doesn't know about the alpha specific ways of mapping the PCI space), only XRender is broken on TGA cards.
2016-03-11Remove support vax and XENOCARA_HAVE_SHARED_LIBS scaffolding.Okan Demirmen
ok matthieu@
2016-03-06Cleanup gcc warnings and function prototypes.Matthieu Herrb