summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-02-09 08:48:24 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-02-09 08:48:24 +0000
commit4db5b6cd3fa687713600b08c3d7848a3da2a3df2 (patch)
treeea3b7dd6986e73d8ecaaa67d61b00d21105c6ca6 /sys/arch/alpha
parent44d8debf8b6924e184173bc7198af80b9dabb5cf (diff)
Do not even try to call uvm_grow() from sendsig. It will be invoked
automagically if copyout() of the signal frame faults.
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/alpha/machdep.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c
index 97845d63139..911f06d375d 100644
--- a/sys/arch/alpha/alpha/machdep.c
+++ b/sys/arch/alpha/alpha/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.167 2014/12/10 15:29:52 mikeb Exp $ */
+/* $OpenBSD: machdep.c,v 1.168 2015/02/09 08:48:23 miod Exp $ */
/* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */
/*-
@@ -1429,11 +1429,7 @@ sendsig(catcher, sig, mask, code, type, val)
}
/*
- * Allocate and validate space for the signal handler
- * context. Note that if the stack is in P0 space, the
- * call to uvm_grow() is a nop, and the useracc() check
- * will fail if the process has not already allocated
- * the space with a `brk'.
+ * Allocate space for the signal handler context.
*/
if ((p->p_sigstk.ss_flags & SS_DISABLE) == 0 &&
!sigonstack(oldsp) && (psp->ps_sigonstack & sigmask(sig)))
@@ -1441,8 +1437,6 @@ sendsig(catcher, sig, mask, code, type, val)
p->p_sigstk.ss_size - rndfsize);
else
scp = (struct sigcontext *)(oldsp - rndfsize);
- if ((u_long)scp <= USRSTACK - ptoa(p->p_vmspace->vm_ssize))
- (void)uvm_grow(p, (u_long)scp);
#ifdef DEBUG
if ((sigdebug & SDB_KSTACK) && p->p_pid == sigpid)
printf("sendsig(%d): sig %d ssp %p usp %p\n", p->p_pid,