projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c5d370
)
vmwgfx: information leak in vmw_execbuf_copy_fence_user()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 18 Oct 2011 06:10:12 +0000
(09:10 +0300)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 18 Oct 2011 09:42:01 +0000
(10:42 +0100)
If ret is non-zero then we don't initialize the struct which leaks
stack information to user space.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Vasiliy Kulikov <segoon@openwall.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 d4a1d8b0633660c427320359c902f2848183efe5..28e1c35aec6f28aa5ec1ee7bab53c4454649b78c 100644
(file)
--- a/
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
+++ b/
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
@@
-1070,6
+1070,8
@@
vmw_execbuf_copy_fence_user(struct vmw_private *dev_priv,
if (user_fence_rep == NULL)
return;
+ memset(&fence_rep, 0, sizeof(fence_rep));
+
fence_rep.error = ret;
if (ret == 0) {
BUG_ON(fence == NULL);