summaryrefslogtreecommitdiffstats
path: root/fs/fcntl.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2017-07-24 15:28:56 -0500
committerEric W. Biederman <ebiederm@xmission.com>2018-01-12 14:21:06 -0600
commit8c5dbf2ae00bb8667f61c5edc6521c1fa2bbe4d7 (patch)
tree6808128af3a23da8842a3490742000d804a8d49e /fs/fcntl.c
parent8c36fdf5ed48cc17a257e71e168883307ce89b0e (diff)
downloadlinux-8c5dbf2ae00bb8667f61c5edc6521c1fa2bbe4d7.tar.bz2
signal: Introduce clear_siginfo
Unfortunately struct siginfo has holes both in the common part of the structure, in the union members, and in the lack of padding of the union members. The result of those wholes is that the C standard does not guarantee those bits will be initialized. As struct siginfo is for communication between the kernel and userspace that is a problem. Add the helper function clear_siginfo that is guaranteed to clear all of the bits in struct siginfo so when the structure is copied there is no danger of copying old kernel data and causing a leak of information from kernel space to userspace. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/fcntl.c')
0 files changed, 0 insertions, 0 deletions