This is a note to let you know that I've just added the patch titled
vmwgfx: corruption in vmw_event_fence_action_create()
to the 3.5-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
vmwgfx-corruption-in-vmw_event_fence_action_create.patch
and it can be found in the queue-3.5 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 68c4fce737c4b963e336435f225621dc21138397 Mon Sep 17 00:00:00 2001
From: Dan Carpenter <[email protected]>
Date: Sun, 23 Sep 2012 19:33:55 +0300
Subject: vmwgfx: corruption in vmw_event_fence_action_create()
From: Dan Carpenter <[email protected]>
commit 68c4fce737c4b963e336435f225621dc21138397 upstream.
We don't allocate enough data for this struct. As soon as we start
modifying event->event on the next lines, then we're going beyond the
end of the memory we allocated.
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
@@ -1018,7 +1018,7 @@ int vmw_event_fence_action_create(struct
}
- event = kzalloc(sizeof(event->event), GFP_KERNEL);
+ event = kzalloc(sizeof(*event), GFP_KERNEL);
if (unlikely(event == NULL)) {
DRM_ERROR("Failed to allocate an event.\n");
ret = -ENOMEM;
Patches currently in stable-queue which might be from [email protected]
are
queue-3.5/vmwgfx-corruption-in-vmw_event_fence_action_create.patch
queue-3.5/xhci-fix-a-logical-vs-bitwise-and-bug.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html