sgi-xp: incoming XPC channel messages can come in after the channel's partition struc...
commit73d4907e4d42bb42307807d4929be76e6b4a92a0
authorRobin Holt <holt@sgi.com>
Tue, 26 Oct 2010 21:21:15 +0000 (26 14:21 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Nov 2010 18:47:38 +0000 (22 10:47 -0800)
treeadf28de2ab5ee21d3cb41d233eaa993384b2f81a
parentc4244895dd30ddfd20086308786e108d3c52161c
sgi-xp: incoming XPC channel messages can come in after the channel's partition structures have been torn down

commit 09358972bff5ce99de496bbba97c85d417b3c054 upstream.

Under some workloads, some channel messages have been observed being
delayed on the sending side past the point where the receiving side has
been able to tear down its partition structures.

This condition is already detected in xpc_handle_activate_IRQ_uv(), but
that information is not given to xpc_handle_activate_mq_msg_uv().  As a
result, xpc_handle_activate_mq_msg_uv() assumes the structures still exist
and references them, causing a NULL-pointer deref.

Signed-off-by: Robin Holt <holt@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_uv.c