]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: 7526/1: traps: send SIGILL if get_user fails on undef handling path
authorWill Deacon <will.deacon@arm.com>
Fri, 7 Sep 2012 17:21:44 +0000 (18:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:38:59 +0000 (10:38 -0700)
commitc11bc85ae982aba3e1cb85a7e9ff6c4a53d5ea2c
tree518941a467a96a56ed8f1a3677bd5d6e1902a754
parentc8dcc7a99a88d7e5249cd20ff0532098738d7a27
ARM: 7526/1: traps: send SIGILL if get_user fails on undef handling path

commit 2b2040af0b64cd93e5d4df2494c4486cf604090d upstream.

get_user may fail to load from the provided __user address due to an
unhandled fault generated by the access.

In the case of the undefined instruction trap, this results in failure
to load the faulting instruction, in which case we should send SIGILL to
the task rather than continue with potentially uninitialised data.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kernel/traps.c