public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] x86: signal: add __user annotation
@ 2009-02-27 18:27 Hiroshi Shimamoto
  2009-02-27 18:28 ` [PATCH 2/5] x86: signal: intrroduce get_sigframe() and replace get_sigstack() Hiroshi Shimamoto
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Hiroshi Shimamoto @ 2009-02-27 18:27 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel

From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

Impact: cleanup

Add missing __user annotation to the parameter of get_sigframe().
Also change cast type to void __user * of *fpstate.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
---
 arch/x86/kernel/signal.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c
index 4d34410..d6883b7 100644
--- a/arch/x86/kernel/signal.c
+++ b/arch/x86/kernel/signal.c
@@ -215,7 +215,7 @@ static const struct {
  */
 static inline void __user *
 get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size,
-	     void **fpstate)
+	     void __user **fpstate)
 {
 	unsigned long sp;
 
@@ -243,7 +243,7 @@ get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size,
 
 	if (used_math()) {
 		sp = sp - sig_xstate_size;
-		*fpstate = (struct _fpstate *) sp;
+		*fpstate = (void __user *) sp;
 		if (save_i387_xstate(*fpstate) < 0)
 			return (void __user *)-1L;
 	}
-- 
1.6.1.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-02-27 18:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-27 18:27 [PATCH 1/5] x86: signal: add __user annotation Hiroshi Shimamoto
2009-02-27 18:28 ` [PATCH 2/5] x86: signal: intrroduce get_sigframe() and replace get_sigstack() Hiroshi Shimamoto
2009-02-27 18:29 ` [PATCH 3/5] x86: signal: use 16 bytes boundary for rt_sigframe Hiroshi Shimamoto
2009-02-27 18:29 ` [PATCH 4/5] x86: signal: unify get_sigframe() Hiroshi Shimamoto
2009-02-27 18:30 ` [PATCH 5/5] x86: signal: introduce helper align_sigframe() Hiroshi Shimamoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox