signal: replace sigset_to_compat() with put_compat_sigset()
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 21 Aug 2017 23:16:11 +0000 (02:16 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 19 Sep 2017 21:55:54 +0000 (17:55 -0400)
commitf454322efbf6faee695f517c6b52c4dc03cacd3e
treeb1ecef65d6590d5f1421e1a4621a7e8ad3f24e6d
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
signal: replace sigset_to_compat() with put_compat_sigset()

There are 4 callers of sigset_to_compat() in the entire kernel.  One is
in sparc compat rt_sigaction(2), the rest are in kernel/signal.c itself.
All are followed by copy_to_user(), and all but the sparc one are under
"if it's big-endian..." ifdefs.

Let's transform sigset_to_compat() into put_compat_sigset() that also
calls copy_to_user().

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/sparc/kernel/sys_sparc32.c
include/linux/compat.h
kernel/compat.c
kernel/signal.c