]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[PATCH] ppc user annotations: sigcontext
authorAl Viro <viro@www.linux.org.uk>
Mon, 25 Apr 2005 14:55:57 +0000 (07:55 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 25 Apr 2005 14:55:57 +0000 (07:55 -0700)
sigcontext.regs is a userland pointer

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/kernel/signal.c
include/asm-ppc/sigcontext.h

index 645eae19805cc7495904272b15e96c1751b842ac..d500f5ebc29ce9cd28f3de7c25ad8f73a2213a48 100644 (file)
@@ -632,7 +632,7 @@ handle_signal(unsigned long sig, struct k_sigaction *ka,
        if (__put_user((unsigned long) ka->sa.sa_handler, &sc->handler)
            || __put_user(oldset->sig[0], &sc->oldmask)
            || __put_user(oldset->sig[1], &sc->_unused[3])
-           || __put_user((struct pt_regs *)frame, &sc->regs)
+           || __put_user((struct pt_regs __user *)frame, &sc->regs)
            || __put_user(sig, &sc->signal))
                goto badframe;
 
index fc5e358c65f1493a71cf706dc5c3c715a23386e9..f82dcccdee1e974c770b9dfe8c7aeb20ce144872 100644 (file)
@@ -9,7 +9,7 @@ struct sigcontext {
        int             signal;
        unsigned long   handler;
        unsigned long   oldmask;
-       struct pt_regs  *regs;
+       struct pt_regs  __user *regs;
 };
 
 #endif