1
0

- n_xserver-optimus-autoconfig-hack.patch

u_randr-Do-not-crash-if-slave-screen-does-not-have-pro.patch
  u_xfree86-activate-GPU-screens-on-autobind.patch
  * check dixPrivateKeyRegistered(rrPrivKey) before calling
    rrGetScrPriv() to avoid xserver crash when Xinerama is enabled
    (boo#1218240)
 -------------------------------------------------------------------

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xorg-x11-server?expand=0&rev=865
This commit is contained in:
Stefan Dirsch 2024-01-06 15:21:02 +00:00 committed by Git OBS Bridge
parent cdc2ed918d
commit 605942037e
5 changed files with 27 additions and 4 deletions

View File

@ -62,7 +62,7 @@ Index: xorg-server-1.20.5/hw/xfree86/common/xf86Init.c
#include "picturestr.h" #include "picturestr.h"
#include "randrstr.h" #include "randrstr.h"
#include "glxvndabi.h" #include "glxvndabi.h"
@@ -294,6 +295,231 @@ AddVTAtoms(CallbackListPtr *pcbl, void * @@ -294,6 +295,237 @@ AddVTAtoms(CallbackListPtr *pcbl, void *
"Failed to register VT properties\n"); "Failed to register VT properties\n");
} }
@ -92,6 +92,9 @@ Index: xorg-server-1.20.5/hw/xfree86/common/xf86Init.c
+ } *outputConfigs; + } *outputConfigs;
+ int outputConfigsCount = 0, outputConfigsUsed = 0; + int outputConfigsCount = 0, outputConfigsUsed = 0;
+ +
+ if (!dixPrivateKeyRegistered(rrPrivKey))
+ return;
+
+ pMasterScrPriv = rrGetScrPriv(pMasterScreen); + pMasterScrPriv = rrGetScrPriv(pMasterScreen);
+ if (!pMasterScrPriv) + if (!pMasterScrPriv)
+ return; + return;
@ -253,6 +256,9 @@ Index: xorg-server-1.20.5/hw/xfree86/common/xf86Init.c
+ rrScrPrivPtr master_rp; + rrScrPrivPtr master_rp;
+ rrScrPrivPtr slave_rp; + rrScrPrivPtr slave_rp;
+ +
+ if (!dixPrivateKeyRegistered(rrPrivKey))
+ return;
+
+ master_rp = rrGetScrPriv(master); + master_rp = rrGetScrPriv(master);
+ slave_rp = rrGetScrPriv(slave); + slave_rp = rrGetScrPriv(slave);
+ +

View File

@ -25,9 +25,13 @@ Index: xorg-server-21.1.0/randr/randr.c
=================================================================== ===================================================================
--- xorg-server-21.1.0.orig/randr/randr.c --- xorg-server-21.1.0.orig/randr/randr.c
+++ xorg-server-21.1.0/randr/randr.c +++ xorg-server-21.1.0/randr/randr.c
@@ -651,7 +651,9 @@ RRTellChanged(ScreenPtr pScreen) @@ -650,8 +650,13 @@ RRTellChanged(ScreenPtr pScreen)
pScrPriv->crtcs[i]->changed = FALSE;
xorg_list_for_each_entry(iter, &primary->secondary_list, secondary_head) { xorg_list_for_each_entry(iter, &primary->secondary_list, secondary_head) {
+ if (!dixPrivateKeyRegistered(rrPrivKey)) {
+ break;
+ }
pSecondaryScrPriv = rrGetScrPriv(iter); pSecondaryScrPriv = rrGetScrPriv(iter);
- pSecondaryScrPriv->provider->changed = FALSE; - pSecondaryScrPriv->provider->changed = FALSE;
+ if (pSecondaryScrPriv->provider) { + if (pSecondaryScrPriv->provider) {

View File

@ -59,7 +59,7 @@ index 380288ca4..9839cb19c 100644
} }
static void static void
@@ -258,6 +263,186 @@ AddVTAtoms(CallbackListPtr *pcbl, void *data, void *screen) @@ -258,6 +263,189 @@ AddVTAtoms(CallbackListPtr *pcbl, void *data, void *screen)
"Failed to register VT properties\n"); "Failed to register VT properties\n");
} }
@ -90,6 +90,9 @@ index 380288ca4..9839cb19c 100644
+ } *outputConfigs; + } *outputConfigs;
+ int outputConfigsCount = 0, outputConfigsUsed = 0; + int outputConfigsCount = 0, outputConfigsUsed = 0;
+ +
+ if (!dixPrivateKeyRegistered(rrPrivKey))
+ return;
+
+ pMasterScrPriv = rrGetScrPriv(pMasterScreen); + pMasterScrPriv = rrGetScrPriv(pMasterScreen);
+ if (!pMasterScrPriv) + if (!pMasterScrPriv)
+ return; + return;

View File

@ -1,4 +1,14 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jan 6 15:12:29 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- n_xserver-optimus-autoconfig-hack.patch
u_randr-Do-not-crash-if-slave-screen-does-not-have-pro.patch
u_xfree86-activate-GPU-screens-on-autobind.patch
* check dixPrivateKeyRegistered(rrPrivKey) before calling
rrGetScrPriv() to avoid xserver crash when Xinerama is enabled
(boo#1218240)
-------------------------------------------------------------------
Mon Dec 4 18:49:47 UTC 2023 - Stefan Dirsch <sndirsch@suse.com> Mon Dec 4 18:49:47 UTC 2023 - Stefan Dirsch <sndirsch@suse.com>
- U_bsc1217765-Xi-allocate-enough-XkbActions-for-our-buttons.patch - U_bsc1217765-Xi-allocate-enough-XkbActions-for-our-buttons.patch

View File

@ -1,7 +1,7 @@
# #
# spec file for package xorg-x11-server # spec file for package xorg-x11-server
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed