xserver/miext/sync
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olivier Fourdan 019c4c4dc8 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)
(cherry picked from commit 51459413d9)
2026-10-09 11:20:06 +02:00
..
meson.build xserver: miext/sync/meson.build: compile misyncshm.c if xshmfence found 2025-07-29 14:20:51 +02:00
misync.c sync: fix deletion of counters and fences 2026-06-03 16:34:10 +02:00
misync.h miext: move include guards up to wrap the whole file 2025-11-21 15:20:11 +01:00
misync_priv.h miext: sync: drop useless CloseScreen wrapping 2025-06-12 16:43:17 +02:00
misyncfd.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
misyncfd.h miext: Ensure xshmfence is only called when driver supports it 2013-11-23 22:06:19 -08:00
misyncshm.c miext/sync: Handle SIGBUS from truncated shm fences 2026-10-09 11:20:06 +02:00
misyncshm.h miext: Ensure xshmfence is only called when driver supports it 2013-11-23 22:06:19 -08:00
misyncstr.h miext: move include guards up to wrap the whole file 2025-11-21 15:20:11 +01:00