xserver/hw/xfree86
Doug Brown a0834009cf dri2: Protect against dri2ClientPrivate assertion failures
If DRI2ScreenInit hasn't been called yet, DRI2Authenticate and
DRI2CreateDrawable2 cause the X server to crash. This has been observed
to happen on multiple modern Linux distros in various conditions,
including QEMU and VMware VMs. Make these functions more robust in order
to prevent the crash.

This patch was originally provided by Bernhard Übelacker and expanded
upon by Mark Wagner.

Signed-off-by: Doug Brown <doug@schmorgal.com>
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1053
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1534
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1608>
2025-02-19 11:25:01 +00:00
..
common xfree86: xf86configure: use NULL instead of 0 2025-02-17 19:41:29 +00:00
ddc xfree86: common: use LogMessageVerb() instead of xf86Msg() 2025-02-07 22:40:06 +00:00
dixmods xfree86: shmodule: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
doc xfree86: doc: update docs on XF86ModuleData 2025-02-17 19:41:30 +00:00
dri dri: report failed memory allocation 2025-02-17 18:50:25 +00:00
dri2 dri2: Protect against dri2ClientPrivate assertion failures 2025-02-19 11:25:01 +00:00
drivers xfree86: inputtest: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
exa xfree86: exa: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
fbdevhw xfree86: fbdevhw: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
glamor_egl drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
i2c xfree86: i2c: use LogMessageVerb() instead of xf86Msg() 2025-02-07 22:40:06 +00:00
int10 xfree86: xf86int10module: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
loader Revert "xfree86: loader: drop unused LoaderShouldIgnoreABI()" 2025-02-07 14:46:21 +01:00
man xorg.conf.man: Add missing new paragraph mark before AllowByteSwappedClients 2024-03-23 14:30:43 -07:00
modes xfree86: ddc: move private definitions from xf86DDC.h to xf86DDC_priv.h 2025-02-06 23:51:34 +00:00
os-support xfree86: os-support: unexport xf86scanpci() 2025-02-17 18:35:43 +00:00
parser xfree86: parser: move private defs from xf86Parser.h to xf86Parser_priv.h 2025-02-06 23:51:34 +00:00
ramdac mi: unexport miPointerWarpCursor() 2025-02-06 14:38:05 +00:00
shadowfb xfree86: xfbmodule: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
utils Remove autotools support 2021-10-27 13:15:40 +03:00
vgahw xfree86: vgaHWmodule: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
x86emu xfree86: x86emu: rename segment register fields 2024-06-18 00:41:38 +00:00
xkb dix: unexport non-public functions from dixgrabs.h and document prototypes 2024-10-10 13:50:57 +00:00
.gitignore Xorg: Add Xorg.wrap to hw/xfree86/.gitignore 2014-04-18 11:39:16 +02:00
Xorg.sh.in xfree86: rename Xorg.bin to Xorg 2015-01-05 09:53:58 +10:00
meson.build meson: Support building Xnest and Xorg on darwin 2022-06-26 09:16:42 +00:00
sdksyms.sh xfree86: sdksyms.sh: add more headers 2025-02-06 23:51:34 +00:00
xorg-wrapper.c Fix various spelling errors 2019-10-01 17:05:28 +00:00
xorgconf.cpp Fix spelling/wording issues 2020-07-05 13:07:33 -07:00