signal/x86: Include the field offsets in the build time checks
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 6 Mar 2018 06:29:17 +0000 (00:29 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 6 Mar 2018 06:29:17 +0000 (00:29 -0600)
commitf6a015498dcaee72f80283cb7873d88deb07129c
treedececdae07455a991da117bf0cbc5a7962b5af5a
parent859d880cf544dbe095ce97534ef04cd88ba2f2b4
signal/x86: Include the field offsets in the build time checks

Due to an oversight when refactoring siginfo_t si_pkey has been in the
wrong position since 4.16-rc1.  Add an explicit check of the offset of
every user space field in siginfo_t and compat_siginfo_t to make a
mistake like this hard to make in the future.

I have run this code on 4.15 and 4.16-rc1 with the position of si_pkey
fixed and all of the fields show up in the same location.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
arch/x86/kernel/signal_compat.c