Messages in this thread Patch in this message | | | Date | Wed, 16 Apr 2008 18:02:11 -0700 | From | Chris Wright <> | Subject | SPARC64: Fix FPU saving in 64-bit signal handling. |
| |
-stable review patch. If anyone has any objections, please let us know. ---------------------
From: David S. Miller <davem@davemloft.net>
Upstream commit: 7c3cce978e4f933ac13758ec5d2554fc8d0927d2
The calculation of the FPU reg save area pointer was wrong.
Based upon an OOPS report from Tom Callaway.
Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Chris Wright <chrisw@sous-sol.org> --- arch/sparc64/kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/sparc64/kernel/signal.c +++ b/arch/sparc64/kernel/signal.c @@ -354,7 +354,7 @@ static int invalid_frame_pointer(void __ static inline int save_fpu_state(struct pt_regs *regs, __siginfo_fpu_t __user *fpu) { - unsigned long *fpregs = (unsigned long *)(regs+1); + unsigned long *fpregs = current_thread_info()->fpregs; unsigned long fprs; int err = 0; --
| |