]> err.no Git - linux-2.6/commitdiff
Merge branch 'merge'
authorPaul Mackerras <paulus@samba.org>
Mon, 12 Jun 2006 07:53:34 +0000 (17:53 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 12 Jun 2006 07:53:34 +0000 (17:53 +1000)
1  2 
arch/powerpc/kernel/prom_init.c
arch/powerpc/kernel/signal_32.c
arch/powerpc/kernel/signal_64.c
arch/powerpc/platforms/pseries/setup.c

Simple merge
Simple merge
index 66a5fbe31989787c26eb71ad5c90cc2cd6cdcb90,c2db642f4cdd44c32695432b9622406204fdd866..6e75d7ab6d4d4757271c9bde664f4ead13724716
@@@ -182,8 -179,11 +182,10 @@@ static long restore_sigcontext(struct p
  
  #ifdef CONFIG_ALTIVEC
        err |= __get_user(v_regs, &sc->v_regs);
 -      err |= __get_user(msr, &sc->gp_regs[PT_MSR]);
        if (err)
                return err;
+       if (v_regs && !access_ok(VERIFY_READ, v_regs, 34 * sizeof(vector128)))
+               return -EFAULT;
        /* Copy 33 vec registers (vr0..31 and vscr) from the stack */
        if (v_regs != 0 && (msr & MSR_VEC) != 0)
                err |= __copy_from_user(current->thread.vr, v_regs,