vmwgfx: information leak in vmw_execbuf_copy_fence_user()
Subsystems (4)
PATCH 1/1 vmwgfx: information leak in vmw_execbuf_copy_fence_user()
If ret is non-zero then we don't initialize the struct which leaks stack information to user space.
Signed-off-by Dan Carpenter <[email protected]>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +2 -0
@@ -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 );
Quoted 5 lines · Dan Carpenter
If ret is non-zero then we don't initialize the struct which leaks stack information to user space.
Signed-off-by Dan Carpenter<[email protected]>
Reviewed-by Thomas Hellstrom <[email protected]>
Quoted 14 lines
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +2
-0@@ -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 );
Quoted 4 lines · Dan Carpenter
If ret is non-zero then we don't initialize the struct which leaks stack information to user space.
Signed-off-by Dan Carpenter <[email protected]>
Reviewed-by Vasiliy Kulikov <[email protected]>
Quoted 13 lines
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +2
-0@@ -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 );
Signature · 1 line
Vasiliy