arm64: compat: Clear the IT state independent of the 32-bit ARM or Thumb-2 mode
authorT.J. Purtell <tj@mobisocial.us>
Tue, 5 Nov 2013 17:07:18 +0000 (17:07 +0000)
committerMark Brown <broonie@linaro.org>
Thu, 15 May 2014 19:00:56 +0000 (20:00 +0100)
commit3cf0e16070078af9afdd9a067af9ab64f322ebb8
tree74ef41f7247ef1ca6fcc2de4da0d48d6b01ad213
parent4b905a8fdae8797cebe274d0150b4a1799b98a3e
arm64: compat: Clear the IT state independent of the 32-bit ARM or Thumb-2 mode

The ARM architecture reference specifies that the IT state bits in the
PSR must be all zeros in ARM mode or behavior is unspecified. If an ARM
function is registered as a signal handler, and that signal is delivered
inside a block of instructions following an IT instruction, some of the
instructions at the beginning of the signal handler may be skipped if
the IT state bits of the Program Status Register are not cleared by the
kernel.

Signed-off-by: T.J. Purtell <tj@mobisocial.us>
[catalin.marinas@arm.com: code comment and commit log updated]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit aa62c2091129af81a172350b718eb35d5448cebc)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/kernel/signal32.c