projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec3789c
)
drm: vmwgfx: fix information leak to userland
author
Kulikov Vasiliy
<segooon@gmail.com>
Sat, 6 Nov 2010 14:41:16 +0000
(14:41 +0000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 9 Nov 2010 03:42:15 +0000
(13:42 +1000)
Structure drm_vmw_fence_rep is copied to userland with field "pad64"
uninitialized. It leads to leaking of contents of kernel stack memory.
Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
index
51d9f9f
..
76954e3
100644
(file)
--- a/
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
+++ b/
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
@@
-691,6
+691,7
@@
int vmw_execbuf_ioctl(struct drm_device *dev, void *data,
fence_rep.error = ret;
fence_rep.fence_seq = (uint64_t) sequence;
+ fence_rep.pad64 = 0;
user_fence_rep = (struct drm_vmw_fence_rep __user *)
(unsigned long)arg->fence_rep;