- Oct 25, 2018
-
-
CVE-2018-14665 also made it possible to exploit this to access memory. With -logfile forbidden when running with elevated privileges this is no longer an issue. Signed-off-by:
Matthieu Herrb <matthieu@herrb.eu> Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
Could cause privilege elevation and/or arbitrary files overwrite, when the X server is running with elevated privileges (ie when Xorg is installed with the setuid bit set and started by a non-root user). CVE-2018-14665 Issue reported by Narendra Shinde and Red Hat. Signed-off-by:
Matthieu Herrb <matthieu@herrb.eu> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
- Oct 24, 2018
-
-
Choose the socket fd of the correct address family based on the address family of the argument to the -from option. Fixes: #4
-
Adam Jackson authored
Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
Michel Dänzer authored
xwl_present_window->sync_callback was leaked. The event memory was leaked if the corresponding buffer had already been released.
-
- Oct 23, 2018
-
-
Automatic compositing exists, if that's what you want then use it. Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
Michel Dänzer authored
This allows X to run with glamor at these depths.
-
- Oct 18, 2018
-
-
`xwl_present_timer_callback()` is initially marked a private and later implemented as public. Let's keep that private, shall we. Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com>
-
Adam Jackson authored
At the point where xf86BusProbe runs we haven't yet taken our own VT, which means we can't perform drm "master" operations on the device. This is tragic, because we need master to fish the bus id string out of the kernel, which we can only do after drmSetInterfaceVersion, which for some reason stores that string on the device not the file handle and thus needs master access. Fortunately we know the format of the busid string, and it happens to almost be the same as the ID_PATH variable from udev. Use that instead and stop calling drmSetInterfaceVersion. Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- Oct 16, 2018
-
-
Peter Hutterer authored
Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by:
Dave Airlie <airlied@redhat.com>
-
If the X server is terminated while its VT is not active, it should not change the current VT. v2: Query current state in xf86CloseConsole using VT_GETSTATE instead of keeping track in xf86VTEnter/xf86VTLeave/etc.
-
Peter Hutterer authored
Found by coverity Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- Oct 15, 2018
-
-
Peter Hutterer authored
Misplaced parenthesis caused us to compare the sizeof, not the readlink return value. Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
Peter Hutterer authored
Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- Oct 12, 2018
-
-
Fixes: xorg/driver/xf86-video-fbdev#9 Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- Oct 05, 2018
-
-
Adam Jackson authored
0a9415cf apparently can tickle bugs in the GL stack where glGetString returns NULL, presumably because the eglMakeCurrent() didn't manage to actually install a dispatch table and you're hitting a stub function. That's clearly not our bug, but if it happens we should at least not crash. Notice this case and fail gently. Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- Oct 03, 2018
-
-
xdmcpSocket survives during the reset, there is no need to create a new one. This commit restores logic that was broken by 49c0f241 in Xorg 1.19. Signed-off-by:
Alexander Volkov <a.volkov@rusbitech.ru>
-
Pierre Ossman (Work account) authored
It is currently (ab)using the screen BlockHandler callback to do this. But this can cause problems with other extension as their block handlers might have executed before Composite's. And the operations Composite does might result in them wanting to change timeouts. Practically this caused problems for TigerVNC's VNC extension which failed to send out updates for Composite's screen updates.
-
- Oct 01, 2018
-
-
Adam Jackson authored
The destination is always either on the stack or in the middle of some struct. Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
Olivier Fourdan authored
wl_drm's protocol "device" event provides the path to the DRM device, which may not be a render node, thus causing Xwayland to fall back to DRM authentication which may fail if the user has switched to another VT while Xwayland is starting. Search for a render node corresponding to the given DRM device and try to use it instead, as render nodes do not need DRM authentication and Xwayland can make use of them if it can find one. Closes: https://bugs.freedesktop.org/108038 Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com>
-
- Sep 28, 2018
-
-
Adam Jackson authored
This hasn't done anything besides return TRUE in a long long time. Reviewed-by:
Eric Anholt <eric@anholt.net> Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
Adam Jackson authored
These are so close to identical that most DDXes implement one in terms of the other. All the relevant cases can be distinguished by the error code, so merge the functions together to make things simpler. Reviewed-by:
Eric Anholt <eric@anholt.net> Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
Adam Jackson authored
Reviewed-by:
Eric Anholt <eric@anholt.net> Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
Mesa started supporting GL_OES_EGL_image on llvmpipe in 17.3, after this commit: commit bbdeddd5fd0b797e1e281f058338b3da4d98029d Author: Gurchetan Singh <gurchetansingh@chromium.org> Date: Tue Aug 1 14:49:33 2017 -0700 st/dri: add drisw image extension That's pretty cool, but it means glamor now thinks it can initialize on llvmpipe. This is almost certainly not what anyone wants, as glamor on llvmpipe is pretty much uniformly slower than fb. This fixes both Xorg and Xwayland to refuse glamor in such a setup. Xephyr is left alone, both because glamor is not the default there and because Xephyr+glamor+llvmpipe is one of the easier ways to get xts to exercise glamor. The (very small) downside of this change is that you lose DRI3 support. This wouldn't have helped you very much (since an lp glamor blit is slower than a pixman blit), but it would eliminate the PutImage overhead for llvmpipe's glXSwapBuffers. A future change should add DRI3 support for the fb-only case. Reviewed-by:
Eric Anholt <eric@anholt.net> Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
-
- Sep 27, 2018
-
-
No supported driver supports 1bpp anymore, nor has in a very long time. This option only worked with vgahw anyway. Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
Fixes: accd32a4 (xorg: Remove the XF86PM define.) Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- Sep 26, 2018
-
-
Emma Anholt authored
Inspired by the previous bug, build something we can use to write damage testcases, including testing for the bug. Signed-off-by:
Eric Anholt <eric@anholt.net>
-
The mode (CoordModeOrigin or CoordModePrevious) was not taken into account when computing the box. The result was a bad drawing of points in some situations (on my hardware/software configuration, calling XDrawString followed by XDrawPoints in the mode CoordModePrevious). Signed-off-by:
Cedric Roux <sed@free.fr> Signed-off-by:
Eric Anholt <eric@anholt.net>
-
So we do not lose subpixel precision in Xwayland. Suggested-by:
Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com> Closes: libinput/libinput#138
-
- Sep 25, 2018
-
-
Jon Turney authored
Signed-off-by:
Jon Turney <jon.turney@dronecode.org.uk> Reviewed-by:
Colin Harrison <colin.harrison@virgin.net>
-
Jon Turney authored
Seems like this was omitted in error Signed-off-by:
Jon Turney <jon.turney@dronecode.org.uk> Reviewed-by:
Colin Harrison <colin.harrison@virgin.net>
-
Jon Turney authored
v2: Fix a bogus warning about a missing pixelformat attribute issued for every pixelformat when WGL_ARB_framebuffer_sRGB isn't available Signed-off-by:
Jon Turney <jon.turney@dronecode.org.uk> Reviewed-by:
Colin Harrison <colin.harrison@virgin.net>
-
Jon Turney authored
Future work: To properly support GLX_ARB_create_context in indirect mode, we need to use wglCreateContextAttribsARB() rather than wglCreateContext(), when attribs are provided, rather than just dropping attribs on the floor, as we currently do. That probably entails removing the deferred context creation and instead using a temporary window, as direct WGL does. Signed-off-by:
Jon Turney <jon.turney@dronecode.org.uk> Reviewed-by:
Colin Harrison <colin.harrison@virgin.net>
-
Jon Turney authored
v2: Set renderType more correctly Signed-off-by:
Jon Turney <jon.turney@dronecode.org.uk> Reviewed-by:
Colin Harrison <colin.harrison@virgin.net>
-
Jon Turney authored
Signed-off-by:
Jon Turney <jon.turney@dronecode.org.uk> Reviewed-by:
Colin Harrison <colin.harrison@virgin.net>
-
Jon Turney authored
In glxWinSetPixelFormat() handle the case where wglChoosePixelFormatARB() fails and fallback to ChoosePixelFormat() It seems for some drivers, wglChoosePixelFormatARB() can fail when the provided DC doesn't belong to the driver (e.g. it's a compatible DC for a bitmap, so allow a fallback to ChoosePixelFormat() if it fails. Signed-off-by:
Jon Turney <jon.turney@dronecode.org.uk> Reviewed-by:
Colin Harrison <colin.harrison@virgin.net>
-
Jon Turney authored
Exposing these pixelFormats is problematic: they are provided by the 'GDI Generic' renderer, which doesn't support the same set of extensions as the IGD providing the more capable pixelFormats. Signed-off-by:
Jon Turney <jon.turney@dronecode.org.uk> Reviewed-by:
Colin Harrison <colin.harrison@virgin.net>
-
musl only implements inx/outx on x86, so check for __GLIBC__ instead of __linux__. Signed-off-by:
Ross Burton <ross.burton@intel.com>
-
- Sep 20, 2018
-
-
Ross Burton authored
Instead of fetching just the sdkdir variable of xorg-server using pkg-config, simply get all of the CFLAGS. Aside from completeness, this helps builds in sysroots as pkg-config knows what to do with --cflags but doesn't remap arbitrary variables. Signed-off-by:
Ross Burton <ross.burton@intel.com>
-