* Aarch32 user space PC alignment exception
@ 2015-10-13 21:30 Mark Salyzyn
2015-10-16 14:34 ` Catalin Marinas
0 siblings, 1 reply; 2+ messages in thread
From: Mark Salyzyn @ 2015-10-13 21:30 UTC (permalink / raw)
To: linux-kernel
Cc: Mark Salyzyn, Catalin Marinas, Will Deacon, Mark Rutland,
Marc Zyngier, AKASHI Takahiro, Daniel Thompson, linux-arm-kernel
armv7 does not have a PC alignment exception. armv8 Aarch32
user space however can produce a PC alignment exception. Add
handler so the we do not dump an unexpected stack trace in
the logs.
Signed-off-by: Mark Salyzyn <salyzyn@android.com>
---
arch/arm64/kernel/entry.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S
index 4306c93..7ed3d75 100644
--- a/arch/arm64/kernel/entry.S
+++ b/arch/arm64/kernel/entry.S
@@ -430,6 +430,8 @@ el0_sync_compat:
b.eq el0_fpsimd_acc
cmp x24, #ESR_ELx_EC_FP_EXC32 // FP/ASIMD exception
b.eq el0_fpsimd_exc
+ cmp x24, #ESR_ELx_EC_PC_ALIGN // pc alignment exception
+ b.eq el0_sp_pc
cmp x24, #ESR_ELx_EC_UNKNOWN // unknown exception in EL0
b.eq el0_undef
cmp x24, #ESR_ELx_EC_CP15_32 // CP15 MRC/MCR trap
--
2.6.0.rc2.230.g3dd15c0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Aarch32 user space PC alignment exception
2015-10-13 21:30 Aarch32 user space PC alignment exception Mark Salyzyn
@ 2015-10-16 14:34 ` Catalin Marinas
0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2015-10-16 14:34 UTC (permalink / raw)
To: Mark Salyzyn
Cc: linux-kernel, Mark Rutland, Daniel Thompson, Marc Zyngier,
Will Deacon, AKASHI Takahiro, linux-arm-kernel
On Tue, Oct 13, 2015 at 02:30:51PM -0700, Mark Salyzyn wrote:
> armv7 does not have a PC alignment exception. armv8 Aarch32
> user space however can produce a PC alignment exception. Add
> handler so the we do not dump an unexpected stack trace in
> the logs.
>
> Signed-off-by: Mark Salyzyn <salyzyn@android.com>
Queued for 4.4. Thanks.
--
Catalin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-16 14:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-13 21:30 Aarch32 user space PC alignment exception Mark Salyzyn
2015-10-16 14:34 ` Catalin Marinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®