diff options
author | 2019-04-23 15:37:58 +0000 | |
---|---|---|
committer | 2019-04-23 15:37:58 +0000 | |
commit | bfa7b14bd3ce8535e5d3c383800f320748713e7a (patch) | |
tree | a735fa9ea0a2a83beef6a1d4caf25baa0e64b0fd /sys | |
parent | Xr octiic(4) (diff) | |
download | wireguard-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.S | 5 |
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: |