diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-09-11 16:44:02 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2015-10-13 03:46:09 +0100 |
commit | 7aa36cdf3d1e0bf7fd00009049be139618737eb7 (patch) | |
tree | d9aedf43b18c56978b71fbea890962559b023961 /drivers/target/Makefile | |
parent | cf5fdb4aded0e6a29b8e4059cab400306c562a14 (diff) | |
download | kernel_samsung_smdk4412-7aa36cdf3d1e0bf7fd00009049be139618737eb7.zip kernel_samsung_smdk4412-7aa36cdf3d1e0bf7fd00009049be139618737eb7.tar.gz kernel_samsung_smdk4412-7aa36cdf3d1e0bf7fd00009049be139618737eb7.tar.bz2 |
ARM: fix Thumb2 signal handling when ARMv6 is enabled
commit 9b55613f42e8d40d5c9ccb8970bde6af4764b2ab upstream.
When a kernel is built covering ARMv6 to ARMv7, we omit to clear the
IT state when entering a signal handler. This can cause the first
few instructions to be conditionally executed depending on the parent
context.
In any case, the original test for >= ARMv7 is broken - ARMv6 can have
Thumb-2 support as well, and an ARMv6T2 specific build would omit this
code too.
Relax the test back to ARMv6 or greater. This results in us always
clearing the IT state bits in the PSR, even on CPUs where these bits
are reserved. However, they're reserved for the IT state, so this
should cause no harm.
Fixes: d71e1352e240 ("Clear the IT state when invoking a Thumb-2 signal handler")
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: H. Nikolaus Schaller <hns@goldelico.com>
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/target/Makefile')
0 files changed, 0 insertions, 0 deletions