lkml.org 
[lkml]   [2020]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH v5 01/13] ptrace: Use regset_size() for dynamic regset
On 05/28, Greentime Hu wrote:
>
> --- a/kernel/ptrace.c
> +++ b/kernel/ptrace.c
> @@ -888,7 +888,7 @@ static int ptrace_regset(struct task_struct *task, int req, unsigned int type,
>
> regset_no = regset - view->regsets;
> kiov->iov_len = min(kiov->iov_len,
> - (__kernel_size_t) (regset->n * regset->size));
> + (__kernel_size_t) regset_size(task, regset));

Acked-by: Oleg Nesterov <oleg@redhat.com>

\
 
 \ /
  Last update: 2020-05-28 14:39    [W:0.077 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site