summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/sparc64
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/sparc64
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/sparc64')
-rw-r--r--lib/libc/arch/sparc64/sys/tfork_thread.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/arch/sparc64/sys/tfork_thread.S b/lib/libc/arch/sparc64/sys/tfork_thread.S
index 532fa07c0a6..c879c3e7146 100644
--- a/lib/libc/arch/sparc64/sys/tfork_thread.S
+++ b/lib/libc/arch/sparc64/sys/tfork_thread.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: tfork_thread.S,v 1.3 2015/09/05 06:22:47 guenther Exp $ */
+/* $OpenBSD: tfork_thread.S,v 1.4 2020/10/18 14:28:18 deraadt Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat
@@ -60,6 +60,7 @@ ENTRY(__tfork_thread)
mov SYS___threxit, %g1
clr %o0
t ST_SYSCALL /* will not return */
+ unimp
9:
/*