[PATCH] ppc user annotations: sigcontext

Al Viro viro at www.linux.org.uk
Mon Apr 25 16:04:10 EST 2005


	sigcontext.regs is a userland pointer
Signed-off-by: Al Viro <viro at parcelfarce.linux.theplanet.co.uk>
----
diff -urN RC12-rc3-sent/arch/ppc/kernel/signal.c RC12-rc3-ppc-sigcontext/arch/ppc/kernel/signal.c
--- RC12-rc3-sent/arch/ppc/kernel/signal.c	Wed Apr 20 21:25:28 2005
+++ RC12-rc3-ppc-sigcontext/arch/ppc/kernel/signal.c	Mon Apr 25 00:40:03 2005
@@ -632,7 +632,7 @@
 	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;
 
diff -urN RC12-rc3-sent/include/asm-ppc/sigcontext.h RC12-rc3-ppc-sigcontext/include/asm-ppc/sigcontext.h
--- RC12-rc3-sent/include/asm-ppc/sigcontext.h	Wed Feb  4 10:02:26 2004
+++ RC12-rc3-ppc-sigcontext/include/asm-ppc/sigcontext.h	Mon Apr 25 00:40:03 2005
@@ -9,7 +9,7 @@
 	int		signal;
 	unsigned long	handler;
 	unsigned long	oldmask;
-	struct pt_regs 	*regs;
+	struct pt_regs 	__user *regs;
 };
 
 #endif



More information about the Linuxppc-dev mailing list