sgi-xp: incoming XPC channel messages can come in after the channel's partition struc...
authorRobin Holt <holt@sgi.com>
Tue, 26 Oct 2010 21:21:15 +0000 (14:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:03 +0000 (16:52 -0700)
commit09358972bff5ce99de496bbba97c85d417b3c054
treee7007ac80fc9dd6101db5c9ca07cbc0246b597e4
parent482db6df1746c4fa7d64a2441d4cb2610249c679
sgi-xp: incoming XPC channel messages can come in after the channel's partition structures have been torn down

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>
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_uv.c