aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fcntl.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2017-07-19 21:30:42 -0500
committerEric W. Biederman <ebiederm@xmission.com>2018-01-12 14:21:06 -0600
commit8c36fdf5ed48cc17a257e71e168883307ce89b0e (patch)
treeb4b75b61fc82ae53e94e948902bc45a85ca21dca /fs/fcntl.c
parentsignal/arm: Document conflicts with SI_USER and SIGFPE (diff)
downloadlinux-dev-8c36fdf5ed48cc17a257e71e168883307ce89b0e.tar.xz
linux-dev-8c36fdf5ed48cc17a257e71e168883307ce89b0e.zip
signal: Reduce copy_siginfo to just a memcpy
The savings for copying just part of struct siginfo appears to be in the noise on modern machines. So remove this ``optimization'' and simplify the code. At the same time mark the second parameter as constant so there is no confusion as to which direction the copy will go. This ensures that a fully initialized siginfo that is sent ends up as a fully initialized siginfo on the signal queue. This full initialization ensures even confused code won't copy unitialized data to userspace, and it prepares for turning copy_siginfo_to_user into a simple copy_to_user. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/fcntl.c')
0 files changed, 0 insertions, 0 deletions