]> git.baikalelectronics.ru Git - kernel.git/commit
signal: Introduce copy_siginfo_from_user and use it's return value
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 18 Apr 2018 22:30:19 +0000 (17:30 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 3 Oct 2018 14:47:15 +0000 (16:47 +0200)
commit423984f2f468b60b173cb9eec31fbb7da642881a
tree55e54fb3ca4ea687448ffaddd34e8cb4366466d7
parent71bb93030fbd253e9eee0cebccf0d8ca7681eb18
signal: Introduce copy_siginfo_from_user and use it's return value

In preparation for using a smaller version of siginfo in the kernel
introduce copy_siginfo_from_user and use it when siginfo is copied from
userspace.

Make the pattern for using copy_siginfo_from_user and
copy_siginfo_from_user32 to capture the return value and return that
value on error.

This is a necessary prerequisite for using a smaller siginfo
in the kernel than the kernel exports to userspace.

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