* [PATCH] ppc user annotations: sigcontext
@ 2005-04-25 6:04 Al Viro
0 siblings, 0 replies; only message in thread
From: Al Viro @ 2005-04-25 6:04 UTC (permalink / raw)
To: torvalds; +Cc: linuxppc-dev
sigcontext.regs is a userland pointer
Signed-off-by: Al Viro <viro@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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-25 6:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-25 6:04 [PATCH] ppc user annotations: sigcontext Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox