]> git.baikalelectronics.ru Git - kernel.git/commit
signal: Correct the offset of si_pkey in struct siginfo
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 6 Mar 2018 06:20:25 +0000 (00:20 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 6 Mar 2018 06:22:36 +0000 (00:22 -0600)
commit1d55e8860635e85cc47e1ff53d7449eaba03955f
treed4c2ff0121b6d3966518809be387538653503e63
parentf2ab44337d990af6205477c89d6d7846914b908b
signal: Correct the offset of si_pkey in struct siginfo

The change moving addr_lsb into the _sigfault union failed to take
into account that _sigfault._addr_bnd._lower being a pointer forced
the entire union to have pointer alignment.  In practice this only
mattered for the offset of si_pkey which is why this has taken so long
to discover.

To correct this change _dummy_pkey and _dummy_bnd to have pointer type.

Reported-by: kernel test robot <shun.hao@intel.com>
Fixes: cd0105ee550d ("signal: Move addr_lsb into the _sigfault union for clarity")
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/linux/compat.h
include/uapi/asm-generic/siginfo.h