aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_bitmap.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2018-04-10 23:32:44 +0000
committerLinus Torvalds <[email protected]>2018-04-11 17:28:35 +0000
commit2cfe0d3009418a132b93d78642a8059a38fe5944 (patch)
treebe663132e62f3c0bffff1db9b13ee895b2ce6707 /lib/test_bitmap.c
parentclang-format: add configuration file (diff)
downloadkernel-2cfe0d3009418a132b93d78642a8059a38fe5944.tar.gz
kernel-2cfe0d3009418a132b93d78642a8059a38fe5944.zip
task_struct: only use anon struct under randstruct plugin
The original intent for always adding the anonymous struct in task_struct was to make sure we had compiler coverage. However, this caused pathological padding of 40 bytes at the start of task_struct. Instead, move the anonymous struct to being only used when struct layout randomization is enabled. Link: http://lkml.kernel.org/r/20180327213609.GA2964@beast Fixes: 29e48ce87f1e ("task_struct: Allow randomized") Signed-off-by: Kees Cook <[email protected]> Reported-by: Peter Zijlstra <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions