lkml.org 
[lkml]   [2008]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectSPARC64: 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;

    --


    \
     
     \ /
      Last update: 2008-04-17 03:31    [W:3.592 / U:0.564 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site