summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2016-05-10 14:15:57 +0000
committermikeb <mikeb@openbsd.org>2016-05-10 14:15:57 +0000
commit80feb1eca61ec1931cc142275cada5737498bccb (patch)
treeed37950f5bf296057cdb935071417379b3f79b1b
parentEnable separate compilation while keeping internal interfaces hidden. (diff)
downloadwireguard-openbsd-80feb1eca61ec1931cc142275cada5737498bccb.tar.xz
wireguard-openbsd-80feb1eca61ec1931cc142275cada5737498bccb.zip
Fill Xen hypercall page with int3's like the hypervisor does.
Idea from deraadt@ and mlarkin@.
-rw-r--r--sys/arch/amd64/amd64/locore.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/locore.S b/sys/arch/amd64/amd64/locore.S
index a384ec9d4e0..f66dc562df8 100644
--- a/sys/arch/amd64/amd64/locore.S
+++ b/sys/arch/amd64/amd64/locore.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.S,v 1.76 2016/02/26 02:23:07 mlarkin Exp $ */
+/* $OpenBSD: locore.S,v 1.77 2016/05/10 14:15:57 mikeb Exp $ */
/* $NetBSD: locore.S,v 1.13 2004/03/25 18:33:17 drochner Exp $ */
/*
@@ -1180,5 +1180,5 @@ _C_LABEL(codepatch_end):
.align NBPG
.globl _C_LABEL(xen_hypercall_page)
_C_LABEL(xen_hypercall_page):
- .skip 0x1000, 0x90 /* Fill with NOPs */
+ .skip 0x1000, 0xcc /* Fill with int3 */
#endif /* NXEN > 0 */