summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2020-10-20 15:26:59 +0000
committervisa <visa@openbsd.org>2020-10-20 15:26:59 +0000
commit80466dde51009dbd49580caccfb3a8784eaac483 (patch)
treea49776c8abfc1da222469125de131001131315ea /lib/libc
parentAdd handling for a trap instruction that terminates the process. (diff)
downloadwireguard-openbsd-80466dde51009dbd49580caccfb3a8784eaac483.tar.xz
wireguard-openbsd-80466dde51009dbd49580caccfb3a8784eaac483.zip
Use a trap instruction that unconditionally terminates the process.
OK deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/mips64/sys/tfork_thread.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/arch/mips64/sys/tfork_thread.S b/lib/libc/arch/mips64/sys/tfork_thread.S
index 413463fe4e5..14ef3a38b0a 100644
--- a/lib/libc/arch/mips64/sys/tfork_thread.S
+++ b/lib/libc/arch/mips64/sys/tfork_thread.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: tfork_thread.S,v 1.3 2020/10/18 14:28:18 deraadt Exp $ */
+/* $OpenBSD: tfork_thread.S,v 1.4 2020/10/20 15:26:59 visa Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat
@@ -65,7 +65,7 @@ LEAF(__tfork_thread, FRAMESZ)
move a0, zero
__DO_SYSCALL(__threxit)
- break 0
+ teq zero, zero, 0x52
9:
/*