copy_regset_to_user(): do all copyout at once.
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 17 Feb 2020 17:25:14 +0000 (12:25 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 27 Jul 2020 18:31:07 +0000 (14:31 -0400)
commitdc12d7968f9c9540494deb1285854b18ca4465ec
tree5d62016a11db4117707189853899ee466b5bcafb
parent1e56f6d28954248f01849c359b1b7210bb6c1add
copy_regset_to_user(): do all copyout at once.

Turn copy_regset_to_user() into regset_get_alloc() + copy_to_user().
Now all ->get() calls have a kernel buffer as destination.

Note that we'd already eliminated the callers of copy_regset_to_user()
with non-zero offset; now that argument is simply unused.

Uninlined, while we are at it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/regset.h
kernel/regset.c