]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita86aeae20ee71c04442b59b17ef1a93d190db776
treedececdae07455a991da117bf0cbc5a7962b5af5a
parent1d55e8860635e85cc47e1ff53d7449eaba03955f
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