]> git.karo-electronics.de Git - karo-tx-linux.git/commit
POWERPC: Make alignment exception always check exception table
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 20 Nov 2006 21:45:49 +0000 (22:45 +0100)
committerAdrian Bunk <bunk@stusta.de>
Mon, 20 Nov 2006 21:45:49 +0000 (22:45 +0100)
commit371899a77a7a4e8d7f973846d2f8c16bf0722825
treeacfa0969982f568630b21cd9960026a96f297a51
parent70c505610f4cda24c28b018db8c260c02f533a4f
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: Adrian Bunk <bunk@stusta.de>
arch/powerpc/kernel/traps.c
arch/ppc/kernel/traps.c