svn commit: r305886 - stable/11/sys/arm64/arm64
Andrew Turner
andrew at FreeBSD.org
Fri Sep 16 13:00:56 UTC 2016
Author: andrew
Date: Fri Sep 16 13:00:55 2016
New Revision: 305886
URL: https://svnweb.freebsd.org/changeset/base/305886
Log:
MFC 305607:
Trap msr/mrs instructions. These are privileged arm64 instructions and
shouldn't normally be used.
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
Modified:
stable/11/sys/arm64/arm64/trap.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/arm64/arm64/trap.c
==============================================================================
--- stable/11/sys/arm64/arm64/trap.c Fri Sep 16 12:48:58 2016 (r305885)
+++ stable/11/sys/arm64/arm64/trap.c Fri Sep 16 13:00:55 2016 (r305886)
@@ -388,6 +388,10 @@ do_el0_sync(struct trapframe *frame)
call_trapsignal(td, SIGTRAP, TRAP_BRKPT, (void *)frame->tf_elr);
userret(td, frame);
break;
+ case EXCP_MSR:
+ call_trapsignal(td, SIGILL, ILL_PRVOPC, (void *)frame->tf_elr);
+ userret(td, frame);
+ break;
case EXCP_SOFTSTP_EL0:
td->td_frame->tf_spsr &= ~PSR_SS;
td->td_pcb->pcb_flags &= ~PCB_SINGLE_STEP;
More information about the svn-src-stable-11
mailing list