]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - fs/signalfd.c
signal/signalfd: Remove __put_user from signalfd_copyinfo
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 25 Apr 2018 01:39:16 +0000 (20:39 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 27 Apr 2018 00:51:12 +0000 (19:51 -0500)
commit5611f55ee4df70d947bf239c587e742efdab028b
tree8d1210f0eed27ea304e1ec1e88b900a4061848fc
parent9181010565903a2e4952a073ff29e0990b760f2e
signal/signalfd: Remove __put_user from signalfd_copyinfo

Put a signalfd_siginfo structure on the stack fully initializae
it and then copy it to userspace.

The code is a little less wordy, and this avoids a long series
of the somewhat costly __put_user calls.

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