🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.devel.release
Article #599

Bug#1153435: trixie-pu: package xorg-server/2:21.1.16-1.3+deb13u4

#599
From: 2387skju
Date: Sun, 08 Nov 2026 15:00
154 lines
8069 bytes
This is a multi-part MIME message sent by reportbug.


--===============5697558418764976065==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: xorg-server@packages.debian.org, 2387skju@disroot.org
Control: affects -1 + src:xorg-server
User: release.debian.org@packages.debian.org
Usertags: pu

Hi,

a small cherry-pick please.

[ Reason ]
Fix for some old hardware, with some windowmanager: "Glamor: handle EXT_gpu_shader4 in dual source blend paths"

[ Impact ]
XServer crash unexpected.

[ Effected old hardware ]
Intel gen4/5 mainly (e.g. GMA4500MHD) ( with GLSL 1.20, which means OpenGL 2.1 )

[ Effected desktops enviroments ]
Effected desktop enviroments (window-manager): MATE (Marco), LXDE (Openbox), Cinnamon
Not effected desktop enviroments (short test): KDE Plasma, Gnome, Xfce, LXQT, Budgie, Lomiri

[ Tests ]
Tested using our my hardware (one affected, and one not affected)

[ Risks ]
Very simple patch.
No / low risk:
 - Newer hardware is not effected. Will be skipped by version check.
 - Old hardware will already crash here.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [X] the issue is verified as fixed in unstable

[ More Info ]
Bug example (reproduceable): Changing the font size of a text in LibreOffice Write causes XServer to crash.
Patch was merged to upstream-master in year 2023.
Patch was backported to 21.1 line in year 2025 (version 21.1.19).
Commits:
https://gitlab.freedesktop.org/xorg/xserver/-/commit/86598739ba285045bc03778d43e25bb0886627f3
https://salsa.debian.org/xorg-team/xserver/xorg-server/-/commit/feb860014df0b8b1a4b1f8921843fb1cd77eeafc
Merge-Request:
https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1066
Merge-Request (backport to 21.1):
https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1636
Bug-Reports:
https://gitlab.freedesktop.org/xorg/xserver/-/work_items/1336
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1988438


With kind regard & thanks.
2387skju

--===============5697558418764976065==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="xorg-server_2:21.1.16-1.3+deb13u5.debdiff"

diff -ruN xorg-server-21.1.16/debian/changelog xorg-server-21.1.16/debian/changelog
--- xorg-server-21.1.16/debian/changelog	2026-10-03 09:23:42.000000000 +0200
+++ xorg-server-21.1.16/debian/changelog	2026-10-17 14:04:26.905876880 +0200
@@ -1,3 +1,9 @@
+xorg-server (2:21.1.16-1.3+deb13u5) trixie; urgency=medium
+
+  * Glamor: handle EXT_gpu_shader4 in dual source blend paths
+
+ -- 2387skju <2387skju@disroot.org>  Sat, 08 Nov 2026 10:43:43 +0200
+
 xorg-server (2:21.1.16-1.3+deb13u4) trixie-security; urgency=high
 
   * Non-maintainer upload by the Security Team.
diff -ruN xorg-server-21.1.16/debian/patches/series xorg-server-21.1.16/debian/patches/series
--- xorg-server-21.1.16/debian/patches/series	2026-10-03 09:23:42.000000000 +0200
+++ xorg-server-21.1.16/debian/patches/series	2026-10-11 22:02:57.325330684 +0200
@@ -35,3 +35,4 @@
 glx-free-old-context-tag-before-allocating-new-one-i.patch
 fb-mi-glamor-reject-glyphs-with-negative-dimensions.patch
 glamor-reject-fonts-with-per-glyph-metrics-exceeding.patch
+glamor-handle-EXT_gpu_shader4-in-dual-source-blend-paths.patch
diff -ruN xorg-server-21.1.16/debian/patches/glamor-handle-EXT_gpu_shader4-in-dual-source-blend-paths.patch xorg-server-21.1.16/debian/patches/glamor-handle-EXT_gpu_shader4-in-dual-source-blend-paths.patch
--- xorg-server-21.1.16/debian/patches/glamor-handle-EXT_gpu_shader4-in-dual-source-blend-paths.patch	1970-01-01 01:00:00.000000000 +0100
+++ xorg-server-21.1.16/debian/patches/glamor-handle-EXT_gpu_shader4-in-dual-source-blend-paths.patch	2026-10-17 13:52:50.626095981 +0200
@@ -0,0 +1,53 @@
+Description: glamor: handle EXT_gpu_shader4 in dual source blend paths
+Fix a xserver-crash on old hardware with some window-managers.
+Effected hardware: Intel gen4/5 mainly (e.g. GMA4500MHD) (with OpenGL 2.1 and GLSL 1.20)
+Effected desktop enviroments (window-manager): MATE (Marco), LXDE (Openbox), Cinnamon
+Not effected desktop enviroments (just short tested):  KDE Plasma, Gnome, Xfce, LXQT, Budgie, Lomiri
+Fixes: a9552868697c ("glamor: add EXT_gpu_shader4 support")
+Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1636>
+Origin: upstream, https://gitlab.freedesktop.org/xorg/xserver/-/commit/86598739ba285045bc03778d43e25bb0886627f3
+Bug: https://gitlab.freedesktop.org/xorg/xserver/-/work_items/1336
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1988438
+Applied-Upstream: Version 21.1.19
+---
+--- a/glamor/glamor_render.c
++++ b/glamor/glamor_render.c
+@@ -61,7 +61,7 @@
+ 
+ #define RepeatFix			10
+ static GLuint
+-glamor_create_composite_fs(struct shader_key *key)
++glamor_create_composite_fs(glamor_screen_private *glamor_priv, struct shader_key *key)
+ {
+     const char *repeat_define =
+         "#define RepeatNone               	      0\n"
+@@ -223,6 +223,8 @@
+         "}\n";
+     const char *header_ca_dual_blend =
+         "#version 130\n";
++    const char *header_ca_dual_blend_gpu_shader4 =
++        "#version 120\n#extension GL_EXT_gpu_shader4 : require\n";
+ 
+     char *source;
+     const char *source_fetch;
+@@ -292,7 +294,10 @@
+         break;
+     case glamor_program_alpha_dual_blend:
+         in = in_ca_dual_blend;
+-        header = header_ca_dual_blend;
++        if (glamor_priv->glsl_version >= 130)
++           header = header_ca_dual_blend;
++        else
++           header = header_ca_dual_blend_gpu_shader4;
+         break;
+     default:
+         FatalError("Bad composite IN type");
+@@ -359,7 +364,7 @@
+     vs = glamor_create_composite_vs(key);
+     if (vs == 0)
+         return;
+-    fs = glamor_create_composite_fs(key);
++    fs = glamor_create_composite_fs(glamor_priv, key);
+     if (fs == 0)
+         return;
+ 

--===============5697558418764976065==--
Technical Details
Message-ID: <NXcxc-aDgz-11@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: 2387skju@disroot.org
Newsgroups: linux.debian.bugs.dist,linux.debian.devel.release
Subject: Bug#1153435: trixie-pu: package xorg-server/2:21.1.16-1.3+deb13u4
Date: Sun, 08 Nov 2026 16:00:02 +0100
Message-ID: <NXcxc-aDgz-11@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Nov  8 14:51:12 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -0.912
Reply-To: 2387skju@disroot.org, 1153435@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: xorg-server@packages.debian.org, 2387skju@disroot.org, debian-release@lists.debian.org
X-Debian-Pr-Message: report 1153435
X-Debian-Pr-Package: release.debian.org
X-Debian-Pr-Keywords: trixie
Content-Type: multipart/mixed; boundary="===============5697558418764976065=="
MIME-Version: 1.0
X-Mailer: reportbug 13.2.0
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2001468
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 154
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 08 Nov 2026 15:48:38 +0100
X-Original-Message-ID: <179414931859.97568.1967239672734291588.reportbug@user>