]> git.baikalelectronics.ru Git - kernel.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)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 7 Sep 2012 19:40:44 +0000 (20:40 +0100)
commite3f68be99f762aaef08b4e26e290a074ba96a13f
tree2e3a2b1cd980f978375eda1c76b1d86e17db38bf
parente2d51d5e241c537ee70767cb35139ac5d2e71e28
ARM: 7526/1: traps: send SIGILL if get_user fails on undef handling path

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>
Cc: stable@vger.kernel.org
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/traps.c