Message ID | 20200226155714.43937-10-broonie@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v7,01/11] ELF: UAPI and Kconfig additions for ELF program properties | expand |
diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c index 3c07a7074145..52ed261e7739 100644 --- a/arch/arm64/kernel/traps.c +++ b/arch/arm64/kernel/traps.c @@ -335,6 +335,8 @@ void arm64_skip_faulting_instruction(struct pt_regs *regs, unsigned long size) if (compat_user_mode(regs)) advance_itstate(regs); + else + regs->pstate &= ~PSR_BTYPE_MASK; } static LIST_HEAD(undef_hook);