libX11: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Oct 9 17:37:30 UTC 2019
include/X11/Xlibint.h | 3 +++
src/OpenDis.c | 1 +
src/XlibInt.c | 4 +++-
3 files changed, 7 insertions(+), 1 deletion(-)
New commits:
commit f5ba2c632a4c84279bdd48c687271292f5dc4f87
Author: Dmitry Osipenko <digetx at gmail.com>
Date: Sat May 18 19:10:32 2019 +0300
Fix lockup in _XReply() caused by recursive synchronization
This patch is based on a suggestion made by Uli Schlachter in a comment
to the bug report https://gitlab.freedesktop.org/xorg/lib/libx11/issues/93.
Explanation of the bug (given by Uli Schlachter as well):
An error was received and handled. Since there was an error callback set,
Xlib unlocks the display, runs the error callback, and then locks the display
again. This goes through _XLockDisplay and then calls _XSeqSyncFunction.
On this "lock the thing"-path, Xlib notices that sequence numbers are close to
wrap-around and tries to send a GetInputFocus request. However, the earlier
calls already registered themselves as "we are handling replies/errors, do
not interfere!" and so the code here waits for "that other thread" to be done
before it continues. Only that there is no other thread, but it is this thread
itself and thus a deadlock follows.
The bug is relatively easy to reproduce on any desktop environment by
using actively a touchscreen input that supports multitouch, i.e. practically
all mobile devices are affected.
Fixes: https://gitlab.freedesktop.org/xorg/lib/libx11/issues/93
Suggested-by: Uli Schlachter <psychon at znc.in>
Tested-by: Dmitry Osipenko <digetx at gmail.com>
Reported-by: Dmitry Osipenko <digetx at gmail.com>
Signed-off-by: Dmitry Osipenko <digetx at gmail.com>
More information about the xorg-commit
mailing list