[Mesa-dev] [PATCH] svga: add missing padding to SVGA3dSize

2015-02-22 Thread Van Der Wath, DanielX J
From: Daniel van der Wath The kernel side equivalent of struct SVGA3dSize (struct drm_vmw_size) has an extra padding word that SVGA3dSize lacks. This was causing data to be written past the end of "size" in vmw_drm_surface_from_handle(), corrupting other data and in this case leading to Weston be

Re: [Mesa-dev] [PATCH] svga: fix sid corruption in vmw_drm_surface_from_handle()

2015-02-22 Thread Van Der Wath, DanielX J
Thanks for looking at this. I tried adding the checks you suggested, but it turns out the problem I'm seeing was actually caused by a mismatch between the kernel and user side versions of the SVGA3dSize struct (the kernel version is bigger, and so when it was copied back into user space it was o