Re: [RFC PATCH v4 01/13] ptrace: Use regset_size() for dynamic regset size.
From: Oleg Nesterov
Date: Wed May 27 2020 - 07:32:12 EST
On 05/27, Greentime Hu wrote:
>
> It seems I only needs to update this line, right?
> - kiov->iov_len = min(kiov->iov_len, (__kernel_size_t) (regset->n *
> regset->size));
> + kiov->iov_len = min(kiov->iov_len, (__kernel_size_t)
> regset_size(task, regset));
Yes, agreed.
Oleg.