summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/arm
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2020-10-18 14:28:16 +0000
committerderaadt <deraadt@openbsd.org>2020-10-18 14:28:16 +0000
commit13df69822c46036ceeeafb612b360459feebf6db (patch)
tree6a28bf76bfa5cd794a9aac4b2abf66b57bb16b42 /lib/libc/arch/arm
parentFix typo. Spotted by patrick@ (diff)
downloadwireguard-openbsd-13df69822c46036ceeeafb612b360459feebf6db.tar.xz
wireguard-openbsd-13df69822c46036ceeeafb612b360459feebf6db.zip
SYS___threxit cannot fail, but this integration looks like a gadget.
Put a hard-trap instruction after the syscall instruction. ok kettenis mortimer
Diffstat (limited to 'lib/libc/arch/arm')
-rw-r--r--lib/libc/arch/arm/sys/tfork_thread.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/arch/arm/sys/tfork_thread.S b/lib/libc/arch/arm/sys/tfork_thread.S
index 6b0a624a62d..b5714d7ac53 100644
--- a/lib/libc/arch/arm/sys/tfork_thread.S
+++ b/lib/libc/arch/arm/sys/tfork_thread.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: tfork_thread.S,v 1.4 2016/08/06 19:16:09 guenther Exp $ */
+/* $OpenBSD: tfork_thread.S,v 1.5 2020/10/18 14:28:17 deraadt Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@openbsd.org>
*
@@ -37,4 +37,5 @@ ENTRY(__tfork_thread)
mov pc, r2
nop
SYSTRAP(__threxit)
+ .word 0xa000f7f0 /* illegal on all cpus? */
END(__tfork_thread)