xserver/hw/xfree86/drivers/modesetting
Alex Goins 3ef9029ace modesetting: Fix ms_covering_crtc() segfault with non-modesetting slave primary
ms_covering_crtc() uses RRFirstOutput() to determine a primary output to fall
back to if a drawable is overlapping a slave output.

If the primary output is a slave output, RRFirstOutput() will return a slave
output even if passed a master ScreenPtr. ms_covering_crtc() dereferences the
output's devPrivate, which is invalid for non-modesetting outputs, and can
crash.

Changing RRFirstOutput() could have unintended side effects for other callers,
so this change replaces the call to RRFirstOutput() with ms_first_output().
ms_first_output() ignores the primary output if it doesn't match the given
ScreenPtr, choosing the first connected output instead.

Signed-off-by: Alex Goins <agoins@nvidia.com>
2019-11-11 14:35:57 -08:00
..
Makefile.am modesetting: Fix broken manpage in autoconf build 2019-10-04 10:29:23 +02:00
dri2.c modesetting: Avoid duplicate error messages on present-flip errors 2019-08-09 10:50:55 +02:00
driver.c Revert https://gitlab.freedesktop.org/xorg/xserver/merge_requests/235 2019-10-14 12:48:24 +02:00
driver.h modesetting: Disable atomic support by default 2019-09-03 18:52:02 +00:00
drmmode_display.c modesetting: Fix possible_crtcs 2019-10-29 22:14:06 +00:00
drmmode_display.h modesetting: Only log 1 error for consecutive flip failures 2019-08-09 10:51:12 +02:00
dumb_bo.c modesetting: Include dix-config.h from dumb_bo.c 2015-05-12 08:02:11 -07:00
dumb_bo.h modesetting: Drop dumb_bo::map_count field and dead unmap code. 2014-12-11 11:26:19 -08:00
meson.build xfree86: Link fb statically 2019-07-23 14:24:00 -04:00
modesetting.man modesetting: Document Option "DoubleShadow" in the man page 2018-09-10 14:47:06 -04:00
pageflip.c modesetting: Only log 1 error for consecutive flip failures 2019-08-09 10:51:12 +02:00
present.c modesetting: Avoid duplicate error messages on present-flip errors 2019-08-09 10:50:55 +02:00
vblank.c modesetting: Fix ms_covering_crtc() segfault with non-modesetting slave primary 2019-11-11 14:35:57 -08:00