summaryrefslogtreecommitdiff
path: root/xserver
AgeCommit message (Collapse)Author
2006-11-26Importing xserver from X.Org 7.2RC2Matthieu Herrb
2021-09-06missing pathnames on unveil() errorTheo de Raadt
2021-09-03Update to xserver 1.20.13.Matthieu Herrb
2021-08-11GetLocalClientCreds: prefer getsockopt(,SO_PEERCRED,) to getpeereid()Matthieu Herrb
This adds the pid of the local clients to LocalLientCred. ok espie@
2021-06-30Close the console fd after probing if it's a wscons, even it fails.Matthieu Herrb
This avoids keeping an open file descriptor on machines where /dev/console is not a wsdisplay device.
2021-06-15Initial attempt to build xserver for riscv64Dale Rahn
ok matthieu@
2021-04-13Fix XChangeFeedbackControl() request underflow.Matthieu Herrb
CVE-2021-3472 / ZDI-CAN-1259 Reported by Jan-Niklas Sohn via Trend Micro.
2021-03-13compiler.h: don't define inb/outb and friends on mipsVisa Hankala
From Julien Cristau 0148a15da1616a868d71abe1b56e3f28cc79533c in xserver git without arm_video.c changes. Fixes clang 11 build on mips64. Input and OK jsg@
2021-03-13Avoid sequences of malloc(0) / free() by checking the length.Matthieu Herrb
b2d96b5cd459963a9587ee9c86afc9266ba3d02b in xserver git originally from deraadt@
2021-02-26record: Fix undefined memcpy in RecordAClientStateChangeJonathan Gray
From Adam Jackson f44ac101c523a0439bd1a864850e3c1a4e154549 in xserver git avoids a large number of malloc(0) calls ok deraadt@ who had almost the same diff
2021-02-20change from /dev/drm to /dev/dri/ in xenocaraJonathan Gray
ok matthieu@ kettenis@
2021-02-12don't fatally error if unveil(2) sets ENOENTJonathan Gray
This occurs when trying to unveil a /dev/dri/ node when the directory does not exist.
2021-02-12add /dev/dri/card[0-3] to allowed devicesJonathan Gray
2021-01-21Safer workaround for the "kame hack": only override sin6_scope_id if zeroJeremie Courreges-Anglas
The assumption is that if sin6_scope_id is set, then the interface index is no longer embedded in the address. ok claudio@ matthieu@
2021-01-10try to handle running out of file descriptors by refusing client connectionsRobert Nagy
in case the X server is near the limit and only allow connections again if there are resources freed up this is done by checking the amount of currently used FDs + a reserve and comparing that to the FD limit with help from benno@, millert@, florian@ ok matthieu@, benno@
2021-01-10Add a root window property with the console device.Matthieu Herrb
2020-12-12Update X server to version 1.20.10. Tested by jsg@ and naddy@Matthieu Herrb
2020-12-01Check SetMap request length carefully.Matthieu Herrb
Avoid out of bounds memory accesses on too short requests. ZDI-CAN 11572 / CVE-2020-14360 Reported by Jan-Niklas Sohn working with Trend Micro Zero Day Initiative
2020-12-01Fix XkbSetDeviceInfo() and SetDeviceIndicators() heap overflowsMatthieu Herrb
ZDI-CAN 11389 / CVE-2020-25712 Fix from Jan-Niklas Sohn working with Trend Micro.
2020-08-28build with --disable-dri3 when XENOCARA_BUILD_DRI is "no"Jonathan Gray
fixes build breakage on alpha reported by deraadt@
2020-08-25Fix integer underflow in XRecordRegisterClients()Matthieu Herrb
Reported by Jan-Niklas Sohn working with Trend Micro Zero Day Initiative.
2020-08-25Fix integer underflow in XkbSelectEvents()Matthieu Herrb
Reported by Jan-Niklas Sohn working with Trend Micro Zero Day Initiative.
2020-08-25Fix an integer underflow in XIChangeHierarchy()Matthieu Herrb
Reported by Jan-Niklas Sohn working with Trend Micro Zero Day Initiative.
2020-08-25Correct bounds checking in XkbSetNames()Matthieu Herrb
Reported by Jan-Niklas Sohn working with Trend Micro Zero Day Initiative.
2020-07-31fix for X Server Pixel Data Uninitialized Memory Information DisclosureMatthieu Herrb
CVE-2020-14347 This vulnerability was discovered and reported to X.Org by Jan-Niklas Sohn working with Trend Micro Zero Day Initiative.
2020-06-14sync white space with upstream. No code change.Matthieu Herrb
2020-06-12revert local change which removed -retro flag and adjust -br toJoshua Stein
properly override our default behavior of stippled root. no objection from deraadt and kettenis
2020-04-20Release unused filedescriptors in the privileged X server process.Matthieu Herrb
There is no reason to keep /dev/pci* and /dev/ttyC* open in this process. pointed to by deraadt. ok kettenis@ deraadt@
2020-04-18Remove unused files.Matthieu Herrb
2020-04-14dix: do not send focus event when grab actually does not changeMatthieu Herrb
upstream commit 364d64981549544213e2bca8de6ff8a5b2b5a69e Fixes an issue in xserver 1.20 where some applications were loosing focus. Naddy@ reported it appeards in SDL 1.2 games (burgerspace). tested and ok naddy@
2020-04-13Update to xserver 1.20.8. ok jsg@ robert@Matthieu Herrb
2020-03-04Use modesetting driver as the default for rkdrm(4).Mark Kettenis
ok patrick@, jsg@
2020-01-26Update to xserver 1.20.7 plus 2 extra fixes from upstream. ok jsg@Matthieu Herrb
2019-12-12Update to X server 1.20.6. Tested by naddy@Matthieu Herrb
2019-09-15Add modesetting driver as a fall-back when appropriate such that we canMark Kettenis
use it when running withour root privileges which prevents us from scanning the PCI bus. This makes startx(1)/xinit(1) work again on modern systems with inteldrm(4), radeondrm(4) and amdgpu(4). In some cases this will result in using a different driver than with xenodm(4) which may expose issues (e.g. when we prefer the intel Xorg driver) or loss of acceleration (e.g. older cards supported by radeondrm(4)). ok jsg@, matthieu@
2019-08-24sync i965 pci ids with xserver git masterJonathan Gray
ok matthieu@
2019-08-24remove duplicate ids added by patch in xserver 1.20.5 updateJonathan Gray
ok matthieu@
2019-08-15Don't prune duplicate modes there.Matthieu Herrb
This function removes too many modes, causing trouble with the vesa driver at least. Problem reported by semarie@. Thanks.
2019-08-03Remove one more file that is no longer part of upstream tarballs.Matthieu Herrb
Missed in previous commit.
2019-08-03Remove files that are no longer part of upstream tarballs.Matthieu Herrb
They accumulated over releases for various reasons. No build change.
2019-07-27Update to xserver 1.20.5. Tested by jsg@Matthieu Herrb
2019-06-11when probing for wsmouse devices, check up to wsmouse9Joshua Stein
ok deraadt
2019-05-11Enable colemakAaron Bieber
OK matthieu@
2019-04-28Backport cf7517675d988c2d1ff967d6d162a17acbdad46 from xserver 1.20Jonathan Gray
xfree86: Hold input_lock across SPRITE functions in VGA arbiter Fixes stack overflow crash with VGA arbiter used with multi GPU systems. Report and fix identified by 'Joe M' on misc@. ok matthieu@
2019-04-06When checking keyboard variants, perform a stricter comparison.Anthony J. Bentley
This prevents kbd(8) layouts with particular bitmasks from being wrongly detected as French. Broken behavior reported by Diogo Galvao; thanks! ok mpi@ matthieu@
2019-03-19Update to xserver 1.19.7. Tested by jca@ and stsp@.Matthieu Herrb
2019-02-18sync xserver dri2 pci_ids with the latest MesaJonathan Gray
the modesetting driver uses these to pick a dri driver name ok phessler@ kettenis@ matthieu@
2019-01-03Call xf86OpenConsole() before probing for drivers.Matthieu Herrb
On OpenBSD, we need the console fd to query wsdisplay type, This was only causing problems with -keepPriv, since the privilege separation code already calls xf86OpenConsole() earlier. The function is idempotent, so there's no harm calling it several times. ok kettenis@
2018-11-03Explicitely disable xdm-authorization-1 support in X server.Matthieu Herrb
It was previously disabled by a broken test for XdmcpWrap() in xdm and later in xenodm but it won't be missed. (use of DES, no IPv6 support). ok tb@ mortimer@
2018-10-25Disable setuid on the X server. We have always known it is a trash fireTheo de Raadt
and we held out hope too long. This will break some stuff. Let's start with non-setuid as the baseline, and see if it is worth trying to fix the broken parts in some other way.