]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - fs/signalfd.c
signal: Extend siginfo_layout with SIL_FAULT_{MCEERR|BNDERR|PKUERR}
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 25 Apr 2018 01:59:47 +0000 (20:59 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 27 Apr 2018 00:51:14 +0000 (19:51 -0500)
commit31931c93dfe05a76385a443ed28244a50e915a46
tree775adc3dc17cc2006a6106f2a783d6deb32cce64
parent36a4ca3d9b5205819e4c47686cafb4e9b7ae76d3
signal: Extend siginfo_layout with SIL_FAULT_{MCEERR|BNDERR|PKUERR}

Update the siginfo_layout function and enum siginfo_layout to represent
all of the possible field layouts of struct siginfo.

This allows the uses of siginfo_layout in um and arm64 where they are testing
for SIL_FAULT to be more accurate as this rules out the other cases.

Further this allows the switch statements on siginfo_layout to be simpler
if perhaps a little more wordy.  Making it easier to understand what is
actually going on.

As SIL_FAULT_BNDERR and SIL_FAULT_PKUERR are never expected to appear
in signalfd just treat them as SIL_FAULT.  To include them would take
20 extra bytes an pretty much fill up what is left of
signalfd_siginfo.

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