diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/alpha/alpha/machdep.c | 10 | ||||
-rw-r--r-- | sys/arch/m88k/m88k/sig_machdep.c | 10 | ||||
-rw-r--r-- | sys/arch/mips64/mips64/sendsig.c | 10 |
3 files changed, 6 insertions, 24 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, diff --git a/sys/arch/m88k/m88k/sig_machdep.c b/sys/arch/m88k/m88k/sig_machdep.c index 1bbe245cd56..d1bab73ab1f 100644 --- a/sys/arch/m88k/m88k/sig_machdep.c +++ b/sys/arch/m88k/m88k/sig_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sig_machdep.c,v 1.22 2014/06/05 21:57:12 miod Exp $ */ +/* $OpenBSD: sig_machdep.c,v 1.23 2015/02/09 08:48:23 miod Exp $ */ /* * Copyright (c) 2014 Miodrag Vallat. * @@ -123,10 +123,7 @@ sendsig(sig_t catcher, int sig, int mask, unsigned long code, int type, fsize = offsetof(struct sigframe, sf_si); /* - * Allocate and validate space for the signal handler context. - * Note that if the stack is in data space, the call to grow() - * will be a nop, and the copyout() will fail if the process has - * not already allocated the space. + * Allocate space for the signal handler context. */ if ((p->p_sigstk.ss_flags & SS_DISABLE) == 0 && !sigonstack(tf->tf_r[31]) && (psp->ps_sigonstack & sigmask(sig))) { @@ -135,9 +132,6 @@ sendsig(sig_t catcher, int sig, int mask, unsigned long code, int type, } else addr = local_stack_frame(tf, tf->tf_r[31], fsize); - if (addr <= USRSTACK - ptoa(p->p_vmspace->vm_ssize)) - (void)uvm_grow(p, addr); - fp = (struct sigframe *)addr; #ifdef DEBUG diff --git a/sys/arch/mips64/mips64/sendsig.c b/sys/arch/mips64/mips64/sendsig.c index 118512bbcbd..8376975ae41 100644 --- a/sys/arch/mips64/mips64/sendsig.c +++ b/sys/arch/mips64/mips64/sendsig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sendsig.c,v 1.23 2015/01/02 22:38:46 sebastia Exp $ */ +/* $OpenBSD: sendsig.c,v 1.24 2015/02/09 08:48:23 miod Exp $ */ /* * Copyright (c) 1990 The Regents of the University of California. @@ -118,11 +118,7 @@ sendsig(catcher, sig, mask, code, type, val) regs = p->p_md.md_regs; /* - * Allocate and validate space for the signal handler - * context. Note that if the stack is in data space, the - * call to grow() is a nop, and the copyout() - * will fail if the process has not already allocated - * the space with a `brk'. + * Allocate space for the signal handler context. */ fsize = sizeof(struct sigframe); if (!(psp->ps_siginfo & sigmask(sig))) @@ -133,8 +129,6 @@ sendsig(catcher, sig, mask, code, type, val) p->p_sigstk.ss_size - fsize); else fp = (struct sigframe *)(regs->sp - fsize); - if ((vaddr_t)fp <= USRSTACK - ptoa(p->p_vmspace->vm_ssize)) - (void)uvm_grow(p, (vaddr_t)fp); #ifdef DEBUG if ((sigdebug & SDB_FOLLOW) || ((sigdebug & SDB_KSTACK) && (p->p_pid == sigpid))) |