]> git.baikalelectronics.ru Git - kernel.git/commit
sgi-xp: fix writing past the end of kzalloc()'d space
authorDean Nelson <dcn@sgi.com>
Wed, 4 Feb 2009 23:12:24 +0000 (15:12 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 5 Feb 2009 20:56:49 +0000 (12:56 -0800)
commit432d601d52c9af89c94e76c308525151eccedec1
treee9b30d230248baa4dd3e9718b683e4aa74830f43
parentf6ca642be8a858c9f801ac33e13698d8533e1acc
sgi-xp: fix writing past the end of kzalloc()'d space

A missing type cast results in writing way beyond the end of a kzalloc()'d
memory segment resulting in slab corruption. But it seems like the better
solution is to define ->recv_msg_slots as a 'void *' rather than a
'struct xpc_notify_mq_msg_uv *' and add the type cast.

Signed-off-by: Dean Nelson <dcn@sgi.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/sgi-xp/xpc.h
drivers/misc/sgi-xp/xpc_uv.c