[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200922162901.GA3421308@ZenIV.linux.org.uk>
Date: Tue, 22 Sep 2020 17:29:01 +0100
From: Al Viro <viro@...iv.linux.org.uk>
To: Zhenzhong Duan <zhenzhong.duan@...il.com>
Cc: linux-kernel@...r.kernel.org, linux-csky@...r.kernel.org,
oleg@...hat.com, guoren@...nel.org
Subject: Re: [PATCH] csky: Fix a size determination in gpr_get()
On Tue, Sep 22, 2020 at 05:15:05PM +0800, Zhenzhong Duan wrote:
> "*" is missed in size determination as we are passing register set
> rather than a pointer.
Ack. I can push it to Linus today, unless you want it to go through
csky tree. Preferences?
> Fixes: dcad7854fcce ("sky: switch to ->regset_get()")
> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@...il.com>
> ---
> arch/csky/kernel/ptrace.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/csky/kernel/ptrace.c b/arch/csky/kernel/ptrace.c
> index d822144906ac..a4cf2e2ac15a 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,
> --
> 2.25.1
>
Powered by blists - more mailing lists