LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@www.linux.org.uk>
To: torvalds@osdl.org
Cc: linuxppc-dev@ozlabs.org
Subject: [PATCH] ppc user annotations: sigcontext
Date: Mon, 25 Apr 2005 07:04:10 +0100	[thread overview]
Message-ID: <E1DPwhW-0007RQ-Tn@parcelfarce.linux.theplanet.co.uk> (raw)

	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

                 reply	other threads:[~2005-04-25  6:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1DPwhW-0007RQ-Tn@parcelfarce.linux.theplanet.co.uk \
    --to=viro@www.linux.org.uk \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox