]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] POWERPC: Make alignment exception always check exception table
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 1 Nov 2006 04:11:39 +0000 (15:11 +1100)
committerChris Wright <chrisw@sous-sol.org>
Sun, 19 Nov 2006 03:27:58 +0000 (19:27 -0800)
commit413f83a2b9826449d1b70961e55c482ec8309b49
tree580f6056cc666c35f6cfa3e762226cd776afe048
parent6d2654aef9d0af26ac75e1f13bf27d7c0a2c8a5a
[PATCH] POWERPC: Make alignment exception always check exception table

The alignment exception used to only check the exception table for
-EFAULT, not for other errors. That opens an oops window if we can
coerce the kernel into getting an alignment exception for other reasons
in what would normally be a user-protected accessor, which can be done
via some of the futex ops. This fixes it by always checking the
exception tables.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/powerpc/kernel/traps.c
arch/ppc/kernel/traps.c