Patch "csky: Fix a size determination in gpr_get()" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    csky: Fix a size determination in gpr_get()

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     csky-fix-a-size-determination-in-gpr_get.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 938559728331b02dce0df564b96213d4f9042278
Author: Zhenzhong Duan <zhenzhong.duan@xxxxxxxxx>
Date:   Tue Sep 22 17:15:05 2020 +0800

    csky: Fix a size determination in gpr_get()
    
    [ Upstream commit 8bfb676492da208bd6dde0f22dff79840dbb5051 ]
    
    "*" is missed  in size determination as we are passing register set
    rather than a pointer.
    
    Fixes: dcad7854fcce ("sky: switch to ->regset_get()")
    Signed-off-by: Zhenzhong Duan <zhenzhong.duan@xxxxxxxxx>
    Signed-off-by: Guo Ren <guoren@xxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/csky/kernel/ptrace.c b/arch/csky/kernel/ptrace.c
index d822144906ac1..a4cf2e2ac15ac 100644
--- a/arch/csky/kernel/ptrace.c
+++ b/arch/csky/kernel/ptrace.c
@@ -83,7 +83,7 @@ static int gpr_get(struct task_struct *target,
 	/* Abiv1 regs->tls is fake and we need sync here. */
 	regs->tls = task_thread_info(target)->tp_value;
 
-	return membuf_write(&to, regs, sizeof(regs));
+	return membuf_write(&to, regs, sizeof(*regs));
 }
 
 static int gpr_set(struct task_struct *target,



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux