]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: ptrace: map SPSR_ELx<->PSR for compat tasks
authorMark Rutland <mark.rutland@arm.com>
Thu, 5 Jul 2018 14:16:51 +0000 (15:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2020 14:34:28 +0000 (16:34 +0200)
commite5c83bb6a4213f4a134c8e8f700895c103e3653c
tree9aa79534e3904ae42aad8d44c3d7fe3ecdfd2b4f
parent45aa094b494162605b3024c8b5328faa298d0e1d
arm64: ptrace: map SPSR_ELx<->PSR for compat tasks

commit 76fc52bd07d3e9cb708f1a50b60c825c96acd606 upstream.

The SPSR_ELx format for exceptions taken from AArch32 is slightly
different to the AArch32 PSR format.

Map between the two in the compat ptrace code.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Fixes: 7206dc93a58fb764 ("arm64: Expose Arm v8.4 features")
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Suzuki Poulose <suzuki.poulose@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/ptrace.c