]> git.kernelconcepts.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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Sep 2012 14:05:18 +0000 (15:05 +0100)
commitad07e22ea469292fd1416175b81c88ef8646985b
treeaeaef360c54492e0fa2e53608950e6c52fbdd8a0
parent2a74f74258904ad54228779b4d9319cc3c08d557
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: Ben Hutchings <ben@decadent.org.uk>
arch/arm/kernel/traps.c