ptrace: Use copy_siginfo in setsiginfo and getsiginfo
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 24 Jul 2017 20:08:16 +0000 (15:08 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 16 Jan 2018 18:48:30 +0000 (12:48 -0600)
commit0752d7bf626ba90c68caff8be4e5638f6679cacf
treeeaa5beac5a37bbf241b3552a9e7cb2bfe4dc0318
parentea64d5acc8f033cd586182ae31531246cdeaea73
ptrace: Use copy_siginfo in setsiginfo and getsiginfo

Now that copy_siginfo copies all of the fields this is safe, safer (as
all of the bits are guaranteed to be copied), clearer, and less error
prone than using a structure copy.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/ptrace.c