xserver/miext/sync
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olivier Fourdan 84d53bf2f0 miext/sync: Handle SIGBUS from truncated shm fences
A client can truncate the shared memory backing a DRI3/xshmfence sync
fence and cause SIGBUS when the server accesses it.

Register the mapping with busfault and wrap xshmfence accesses with
sigsetjmp so truncation unwinds safely, then discard the mapping while
keeping the fence XID.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Assisted-by: AI
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/work_items/1911
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2270>
(cherry picked from commit cd083d9659)
2026-10-20 19:47:40 +02:00
..
meson.build mi: sync: move over public SDK headers to include/ 2026-02-12 14:32:24 +01:00
misync.c miext: use stdbool's 'bool' instead of 'Bool' for local variables 2026-08-07 14:26:48 +02:00
misync_priv.h license: add X11 OR MIT OR AGPL-3.0-or-later to Enrico Weigelt's source files 2026-07-29 10:02:59 +02:00
misyncfd.c miext/sync/misyncfd.c: fix NULL deref on uninitialized screens 2026-08-31 12:39:20 +02:00
misyncshm.c miext/sync: Handle SIGBUS from truncated shm fences 2026-10-20 19:47:40 +02:00