sgi-xp: incoming XPC channel messages can come in after the channel's partition struc...
commit9439dc94c9eb38c0b4f4c28059ec1ab24075772a
authorRobin Holt <holt@sgi.com>
Tue, 26 Oct 2010 21:21:15 +0000 (26 14:21 -0700)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:08:27 +0000 (6 18:08 -0500)
tree4cc77ca0d4a266b0f2078602fcf9a4cd6c3028f9
parent4121a3dd50cb59ef66840e7ca58180fc9c124fa4
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: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/misc/sgi-xp/xpc_uv.c