diff options
author | Paul Mackerras <paulus@samba.org> | 2006-06-12 09:53:34 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-06-12 09:53:34 +0200 |
commit | 7a0c58d0513c246ac5438ef4a55ce8b93395ae0e (patch) | |
tree | d18f58349ced242aa62e622e381e60933f71d451 /arch/powerpc/kernel/signal_64.c | |
parent | powerpc: add context.vdso_base for 32-bit too (diff) | |
parent | [PATCH] Fix for the PPTP hangs that have been reported (diff) | |
download | linux-7a0c58d0513c246ac5438ef4a55ce8b93395ae0e.tar.xz linux-7a0c58d0513c246ac5438ef4a55ce8b93395ae0e.zip |
Merge branch 'merge'
Diffstat (limited to 'arch/powerpc/kernel/signal_64.c')
-rw-r--r-- | arch/powerpc/kernel/signal_64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/signal_64.c b/arch/powerpc/kernel/signal_64.c index 66a5fbe31989..6e75d7ab6d4d 100644 --- a/arch/powerpc/kernel/signal_64.c +++ b/arch/powerpc/kernel/signal_64.c @@ -184,6 +184,8 @@ static long restore_sigcontext(struct pt_regs *regs, sigset_t *set, int sig, err |= __get_user(v_regs, &sc->v_regs); 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, |