]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Feb 2009 17:50:22 +0000 (09:50 -0800)
commit3bb90b5b5c86949bc3be417eea1eb85f10263098
tree52e5df123ca8b1d4a3dfd5834286675daafeed4d
parent113a7025cd8dec02fe9b474d28da831ea64d8a26
sgi-xp: fix writing past the end of kzalloc()'d space

commit 361916a943cd9dbda1c0b00879d0225cc919d868 upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/misc/sgi-xp/xpc.h
drivers/misc/sgi-xp/xpc_uv.c