diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2023-12-12 07:37:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2023-12-12 07:37:22 +0000 |
commit | e844bfa2c53c6f4ad0c2d3eb7c473792a367387c (patch) | |
tree | cc6908934a7cfbe223a13ea717dba9ef16fd50bc /sys/arch/powerpc64 | |
parent | 568684ccff4377f0c3ebfeb53d963c498211bb0f (diff) |
The sigtramp was calling sigreturn(2), and upon failure exit(2), which
doesn't make sense anymore. It is better to just issue an illegal
instruction.
ok kettenis, with some misgivings about inconsistant approaches between
architectures.
In the future we could change sigreturn(2) to never return an exit code,
but always just terminate the process. We stopped this system call
from being callable ages ago with msyscall(2), and there is no stub for
it in libc.. maybe that's the next step to take?
Diffstat (limited to 'sys/arch/powerpc64')
-rw-r--r-- | sys/arch/powerpc64/powerpc64/locore.S | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/powerpc64/powerpc64/locore.S b/sys/arch/powerpc64/powerpc64/locore.S index c74b185651c..59c5cb5d2f8 100644 --- a/sys/arch/powerpc64/powerpc64/locore.S +++ b/sys/arch/powerpc64/powerpc64/locore.S @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.S,v 1.47 2023/12/10 16:56:01 deraadt Exp $ */ +/* $OpenBSD: locore.S,v 1.48 2023/12/12 07:37:21 deraadt Exp $ */ /* * Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org> @@ -42,11 +42,9 @@ sigcodecall: sc .globl sigcoderet sigcoderet: - li %r0, SYS_exit - sc .globl esigcode esigcode: - + /* FALLTHROUGH */ .globl sigfill sigfill: .long 0 |