]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[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)
committerPaul Mackerras <paulus@samba.org>
Wed, 1 Nov 2006 04:16:04 +0000 (15:16 +1100)
commit4393c4f6788cee65095dd838cfeca6edefbfeb52
treebf485a8f67b2e5860fefab58eecb77a7f0d254c5
parent0d69a052d4d7c4085706b9ac0d1bd28ff90c9fca
[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>
arch/powerpc/kernel/traps.c
arch/ppc/kernel/traps.c