summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2019-04-23 15:37:58 +0000
committervisa <visa@openbsd.org>2019-04-23 15:37:58 +0000
commitbfa7b14bd3ce8535e5d3c383800f320748713e7a (patch)
treea735fa9ea0a2a83beef6a1d4caf25baa0e64b0fd /sys
parentXr octiic(4) (diff)
downloadwireguard-openbsd-bfa7b14bd3ce8535e5d3c383800f320748713e7a.tar.xz
wireguard-openbsd-bfa7b14bd3ce8535e5d3c383800f320748713e7a.zip
Call exit(2) if sigreturn(2) fails on mips64. This is what other
architectures do. Noticed by deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/mips64/mips64/lcore_access.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/mips64/mips64/lcore_access.S b/sys/arch/mips64/mips64/lcore_access.S
index 85d1f750010..cfe53a5bdb8 100644
--- a/sys/arch/mips64/mips64/lcore_access.S
+++ b/sys/arch/mips64/mips64/lcore_access.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: lcore_access.S,v 1.27 2017/05/19 00:50:24 visa Exp $ */
+/* $OpenBSD: lcore_access.S,v 1.28 2019/04/23 15:37:58 visa Exp $ */
/*
* Copyright (c) 2001-2003 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -79,7 +79,8 @@ sigcode:
syscall
.globl _C_LABEL(sigcoderet)
_C_LABEL(sigcoderet):
- break 0 # just in case sigreturn fails
+ LI v0, SYS_exit # just in case sigreturn fails
+ syscall
.globl esigcode
esigcode: