Commit graph xserver/Xext
Author SHA1 Message Date
Michel Dänzer
6928daf585 dri2: Deduplicate attachments in do_get_buffer
It was always the intention of the DRI2 protocol that there's at most
one instance of each attachment, and that's how it was implemented in
Mesa.

Since that wasn't enforced though, there might be other clients in the
wild which (e.g. accidentally) request the same attachment multiple
times. So starting to a raise a protocol error in this case now risks
breaking such clients.

Instead, just deduplicate the attachments using a bit-set.

This has a couple of desirable side effects:

* destroy_buffer cannot be called multiple times for the same
  DRI2BufferPtr.
* The client cannot cause the server to allocate a buffers array with
  more entries than there are attachments (currently 11).

changes by mtx: fix FTBS by dropping now unused have_fake_front variable.

Signed-off-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2228>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-06-10 15:52:17 +02:00
Michel Dänzer
422d6764e5 dri2: Use booleans for (fake) front buffer tracking in do_get_buffers
This works as intended — the (fake) front buffer needs to be added
only if the client didn't request it in the first place — even if the
client requests the same attachment multiple times. This ensures we
never try to access more than (count + 1) entries of the buffers array.

Fixes: ff6c7764c2 ("DRI2: Implement protocol for DRI2GetBuffersWithFormat")
Signed-off-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2228>
2026-06-03 19:09:51 +02:00
Peter Hutterer
a266fe0e5f sync: restart trigger list iteration in SyncChangeCounter after TriggerFired
This is the equivalent check to miSyncTriggerFence() from
commit f19ab94ba9 ("miext/sync: Fix use-after-free in miSyncTriggerFence()")

When a trigger fires via SyncAwaitTriggerFired, the resulting
FreeResource/FreeAwait call invokes SyncDeleteTriggerFromSyncObject for
every trigger in the same Await group. This unlinks and frees the
corresponding trigger list nodes - potentially including the node pnext
points to.

Fix by restarting iteration from the list head after a trigger fires, since
TriggerFired may have arbitrarily mutated the list. Triggers that have fired
are removed from the list by FreeAwait, so restarting cannot cause infinite
loops.

This vulnerability was discovered by:
Anonymous working with TrendAI Zero Day Initiative

ZDI-CAN-30164

Assisted-by: Claude:claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2228>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-06-03 19:09:02 +02:00
Peter Hutterer
0cdd8bbd25 saver: re-fetch screen private after CheckScreenPrivate in CreateSaverWindow
CreateSaverWindow stores pPriv (the ScreenSaverScreenPrivatePtr) in a local
variable via the SetupScreen macro at function entry. When an existing saver
window is being replaced, the function sets pPriv->hasWindow = FALSE and
calls CheckScreenPrivate(). If at this point pPriv->attr is NULL (cleared
by a prior UnsetAttributes call), pPriv->events is NULL, and
pPriv->installedMap is None, then CheckScreenPrivate determines the screen
private is unused, frees it, and sets the screen private pointer to NULL.

The function then continues to dereference the now-freed pPriv on the very
next line (pPriv->attr), resulting in a use-after-free. On glibc 2.34+,
the tcache key at offset 8 within the freed block makes pPriv->attr appear
non-NULL, causing the function to continue operating on garbage data and
eventually crash.

The attack sequence is:
  1. SetAttributes (creates pPriv with pPriv->attr set)
  2. ForceScreenSaver(Active) (creates saver window, pPriv->hasWindow=TRUE)
  3. UnsetAttributes (sets pPriv->attr = NULL)
  4. ForceScreenSaver(Active) (re-enters CreateSaverWindow → UAF)

Fix by re-fetching pPriv from the screen private after CheckScreenPrivate
returns, so the subsequent NULL check correctly detects the freed state.

ScreenSaverFreeAttr has the same pattern, force pPriv to NULL there too
even though it has no real effect.

This vulnerability was discovered by:
Anonymous working with TrendAI Zero Day Initiative

ZDI-CAN-30168

Assisted-by: Claude:claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2228>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-06-03 19:08:00 +02:00
Peter Hutterer
2a0c937439 sync: fix deletion of counters and fences
Both FreeCounter() and miSyncDestroyFence() iterate over the trigger list
and invoke the CounterDestroyed callback on each trigger.

The CounterDestroyed callback (e.g. SyncAwaitTriggerFired) may call
FreeResource/FreeAwait, which frees the SyncAwaitUnion containing all
SyncAwait structs in the same Await group.

When multiple conditions in a single Await reference the same sync
object (counter or fence), the first callback frees all SyncAwait
structs while subsequent trigger list nodes still reference them. On the
next iteration, reading ptl->next or ptl->pTrigger dereferences freed
memory, leading to a use-after-free.

We need separate fixes for separate issues here to fix this in one go
- use our null-terminated list macro to make sure our next pointer stays
  valid (the code accessed ptl->next after freeing it)
- update the list head before deleting the trigger, eventually this ends
  up being NULL anyway but meanwhile the list head is a valid list
  during CounterDestroyed
- check if we actually do have a trigger before dereferencing the
  callback
- Set all triggers to NULL if they are shared so we don't dereference
  potentially freed memory

This vulnerability was discovered by:
Anonymous working with TrendAI Zero Day Initiative

ZDI-CAN-30159 (miSyncDestroyFence), ZDI-CAN-30163 (FreeCounter)

Assisted-by: Claude:claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2228>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-06-03 17:49:13 +02:00
Enrico Weigelt, metux IT consult
5a8cb969fd Xext: sync: NULL pointer protection in FreeCounter()
Some checks failed
Build X servers / xserver-build-ubuntu (push) Has been cancelled
Build X servers / drivers-build-ubuntu (push) Has been cancelled
Build X servers / xserver-build-mingw32-ubuntu (push) Has been cancelled
Build X servers / xserver-build-macos (push) Has been cancelled
Build X servers / xserver-build-freebsd (push) Has been cancelled
Build X servers / xserver-build-dragonflybsd (push) Has been cancelled
Build X servers / xserver-build-netbsd (push) Has been cancelled
Build X servers / xserver-build-cygwin (push) Has been cancelled
Build X servers / Check Signed-Off-By (push) Has been cancelled
check PRs for merge conflicts / notify (push) Has been cancelled
Build X servers / Release pushed tag (push) Has been cancelled
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-05-01 18:57:20 +02:00
Enrico Weigelt, metux IT consult
85c14b9f30 Xext: sync: handle strdup() alloc fail in SyncCreateSystemCounter()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-05-01 18:47:02 +02:00
Peter Hutterer
c03ad0c2f9 panoramiX: fail if we can't allocate our visual arrays
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
This code has failed for decades by triggering a segfault, let's not
bother figuring out the perfect cleanup path.

Co-Authored-by: Claude Code <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2184>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 19:19:15 +02:00
Enrico Weigelt, metux IT consult
497fcee94f Xext: xtest: bracket around if/for
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 12:19:54 +02:00
Enrico Weigelt, metux IT consult
f4c0e9c288 Xext: xselinux_label: brackets around if/for
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 11:05:23 +02:00
Enrico Weigelt, metux IT consult
7c7f83efeb Xext: xselinux_hooks: brackets on if/for
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 11:05:00 +02:00
Enrico Weigelt, metux IT consult
f43f5f0aec Xext: panoramiX: use X_REQUEST_* macros for request parsing
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 11:01:02 +02:00
Enrico Weigelt, metux IT consult
572353bc85 Xext: selinux: brackets around if/for
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 20:12:39 +02:00
Enrico Weigelt, metux IT consult
f956288791 Xext: xf86bigfont: brackets around if/for/while
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 20:04:10 +02:00
Enrico Weigelt, metux IT consult
b2c6474bfc Xext: xres: brackets on if's
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 19:52:42 +02:00
Enrico Weigelt, metux IT consult
d9da339954 Xext: xcmisc: brackets around if
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 19:27:57 +02:00
Enrico Weigelt, metux IT consult
562780725c dix: and NULL protect FreeCursor()
Adding NULL protection in FreeCursor(), so we don't need extra
checks at caller sites anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 19:20:33 +02:00
Enrico Weigelt, metux IT consult
f6b58206fd Xext: saver: clean up setEventMask()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
* drop unnecessary forward declaration
* declare variables where needed

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 18:31:10 +02:00
Enrico Weigelt, metux IT consult
834c9027ba Xext: sleepuntil: rename list walk variables
For carirty, rename the list walk variables `pReq` to `walk`.
Also reducing diff size on follow-up commits.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 18:27:55 +02:00
Enrico Weigelt, metux IT consult
446999718f Xext: saver: ScreenSaverSetAttributes: drop extra bw variable
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 18:07:17 +02:00
Enrico Weigelt, metux IT consult
a3914e4f8b Xext: sleepuntil: rename pPending to pending
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Little stupid naming change, just to keep difference on upcoming
refactoring smaller (make those commits easier to read)

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 17:19:53 +02:00
Enrico Weigelt, metux IT consult
77ce387697 Xext: shm: declare variables where needed in ProcShmPutImage()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 17:14:00 +02:00
Enrico Weigelt, metux IT consult
428945e34b Xext: saver.c: declare variables where needed in ScreenSaverUnsetAttributes()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 16:56:26 +02:00
Enrico Weigelt, metux IT consult
5ebc29337c Xext: bigreq: drop unnecessary includes
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 15:06:50 +02:00
Enrico Weigelt, metux IT consult
0245436271 Xext: saver: declare variables where needed in getEventMask()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 14:57:28 +02:00
Enrico Weigelt, metux IT consult
db3f59d215 Xext: saver: scope variables in ScreenSaverSetAttributes()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Properly scoping variables to where they're actually used reduces the
risk of abusing them for multiple different things and thus the risk
of introducing bugs on refactoring.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 14:28:58 +02:00
Enrico Weigelt, metux IT consult
e578757510 Xext: saver: cleanup UninstallSaverColormap()
* drop the extra prototype
* scope the pCmap variable

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 14:27:54 +02:00
Enrico Weigelt, metux IT consult
89c838d8fe Xext: saver: declare variables where needed in ProcScreenSaverQueryInfo()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 14:27:25 +02:00
Enrico Weigelt, metux IT consult
1813f35a2a Xext: saver: extra NULL pointer protection in UninstallSaverColormap()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 14:26:47 +02:00
Enrico Weigelt, metux IT consult
acedb6c34c Xext: saver: init reply struct at once in ProcScreenSaverQueryInfo()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Initialize all the reply struct field in one shot.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 12:40:47 +02:00
Enrico Weigelt, metux IT consult
31e70d4217 Xext: damage: turn around return values on doDamageCreate()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Let's be more consistent with the rest of the code base and return
the result code as function return value and the additional data
via pointer.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 11:29:42 +02:00
Enrico Weigelt, metux IT consult
e43351f1cd Xext: declare rc variables where needed
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 10:03:52 +02:00
Enrico Weigelt, metux IT consult
354674dd5b Xext: sync: ProcSyncGetPriority(): declare rc variable where needed
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 20:39:28 +02:00
Enrico Weigelt, metux IT consult
65932a1d79 Xext: shm: ProcShmCreateSegment(): delcare reply struct right where needed
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 20:37:58 +02:00
Enrico Weigelt, metux IT consult
c4cae6759c Xext: shm: use new X_REPLY_FIELD_* macros
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Use the new X_REPLY_FIELD_* macros for reply byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 20:08:30 +02:00
Enrico Weigelt, metux IT consult
189320f828 Xext: shm: rename xgi reply struct to reply in ProcShmGetImage()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
All reply structs shall be consistently named `reply`.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 19:50:10 +02:00
Enrico Weigelt, metux IT consult
a2f2743f87 Xext: shm: don't abuse length variable in ProcShmGetImage()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
It's originally used for the reply's `size` field, but later abused
for entirely different purpose. Such things can cause subtle bugs
on later changes, so let's keep them cleanly separated.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 19:27:16 +02:00
Enrico Weigelt, metux IT consult
f2a28272b2 Xext: shm: fix ShmGetImage()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Last commit moved down the reply record assignent, but overlooked that
the `length` variable has been abused for other purpose.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 18:56:19 +02:00
Enrico Weigelt, metux IT consult
e3ba00b535 Xext: saver: brackets around if's and loops.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 18:53:00 +02:00
Enrico Weigelt, metux IT consult
7990f3645c Xext: shm: rename "xgi" variable to "reply" in ShmGetImage()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Like to have consistent naming for those reply structs.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 17:55:17 +02:00
Enrico Weigelt, metux IT consult
9fac6b0ce7 Xext: panoramix: use new X_REPLY_FIELD_* macros
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Use the new X_REPLY_FIELD_* macros for reply byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 17:33:03 +02:00
Enrico Weigelt, metux IT consult
4b9c68dc48 Xext: dpms: use new X_REPLY_FIELD_* macros
Use the new X_REPLY_FIELD_* macros for reply byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 17:32:39 +02:00
Enrico Weigelt, metux IT consult
db186854b4 Xext: sync: use new X_REPLY_FIELD_* macros
Use the new X_REPLY_FIELD_* macros for reply byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 17:32:06 +02:00
Enrico Weigelt, metux IT consult
a6e6d2ad8f Xext: selinux: use new X_REPLY_FIELD_* macros
Use the new X_REPLY_FIELD_* macros for reply byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 17:31:47 +02:00
Enrico Weigelt, metux IT consult
f20e304b11 Xext: xtest: use new X_REPLY_FIELD_* macros
Use the new X_REPLY_FIELD_* macros for reply byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 17:31:34 +02:00
Enrico Weigelt, metux IT consult
a9eb8bdbb2 Xext: xv: use new X_REPLY_FIELD_* macros
Use the new X_REPLY_FIELD_* macros for reply byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 17:31:20 +02:00
Enrico Weigelt, metux IT consult
9d736919f4 Xext: damage: use new X_REPLY_FIELD_* macros
Use the new X_REPLY_FIELD_* macros for reply byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 17:30:56 +02:00
Enrico Weigelt, metux IT consult
3d8904c22d Xext: xvmc: use new X_REPLY_FIELD_* macros
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Use the new X_REPLY_FIELD_* macros for reply byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 17:21:14 +02:00
Enrico Weigelt, metux IT consult
acdca55a53 Xext: geext: use new X_REPLY_FIELD_* macros
Use the new X_REPLY_FIELD_* macros for reply byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 17:12:01 +02:00
Enrico Weigelt, metux IT consult
8b3c9d2ba9 Xext: xres: use new X_REPLY_FIELD_* macros
Use the new X_REPLY_FIELD_* macros for reply byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 17:11:36 +02:00