xserver/hw/xwayland
Adam Jackson 02c94ccddf xwayland: Don't (double) destroy input resources in CloseScreen
By the time we get here we've already done CloseDownDevices, so on the
second regeneration you get:

    Invalid read of size 4
       at 0x43402A: RemoveDevice (devices.c:1125)
       by 0x427902: xwl_seat_destroy (xwayland-input.c:568)
       by 0x42649C: xwl_close_screen (xwayland.c:116)
       by 0x4B7F67: CursorCloseScreen (cursor.c:187)
       by 0x536003: AnimCurCloseScreen (animcur.c:106)
       by 0x539831: present_close_screen (present_screen.c:64)
       by 0x43E486: dix_main (main.c:351)
       by 0x30D70206FF: (below main) (libc-start.c:289)
     Address 0x980e1a0 is 64 bytes inside a block of size 904

       at 0x4A07D6A: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
       by 0x434158: RemoveDevice (devices.c:1157)
       by 0x42F77B: CloseDeviceList (devices.c:1017)
       by 0x430246: CloseDownDevices (devices.c:1047)
       by 0x43E3EB: dix_main (main.c:333)
       by 0x30D70206FF: (below main) (libc-start.c:289)

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 533fb62739)
2015-10-26 11:53:11 -04:00
..
.gitignore Xwayland DDX 2014-04-03 15:19:22 -07:00
drm.xml xwayland: Add glamor and DRI3 support 2014-06-24 15:09:55 -07:00
Makefile.am xwayland: Add dependency on glamor libs 2015-06-03 09:05:36 -04:00
xwayland-cursor.c xwayland: Throttle our cursor surface updates with a frame callback 2015-06-16 11:21:26 -04:00
xwayland-cvt.c Xwayland DDX 2014-04-03 15:19:22 -07:00
xwayland-glamor.c xwayland: Fix error strings 2015-06-03 09:05:37 -04:00
xwayland-input.c xwayland: Don't (double) destroy input resources in CloseScreen 2015-10-26 11:53:11 -04:00
xwayland-output.c xwayland: Don't (double) destroy RANDR resources in CloseScreen 2015-10-26 11:53:06 -04:00
xwayland-shm.c Xwayland DDX 2014-04-03 15:19:22 -07:00
xwayland.c xwayland: default to local user if no xauth file given. [CVE-2015-3164 3/3] 2015-06-03 09:05:39 -04:00
xwayland.h xwayland: Throttle our cursor surface updates with a frame callback 2015-06-16 11:21:26 -04:00