]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:44:19 +0000 (12:44 -0700)
commit5faf7d928cf005ec7e6effa0e006b013f1ec3946
tree175ba7d1f215ac67682514dc8ad4d182cd66aa6e
parentd7a777500e5c2d0478bed0f5d81625ff69deea9e
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