summaryrefslogtreecommitdiffstats
path: root/fs/proc/internal.h
diff options
context:
space:
mode:
authorAlexey Dobriyan2018-04-11 01:31:05 +0200
committerLinus Torvalds2018-04-11 19:28:33 +0200
commita9fabc3df4c68e05f023c6a5189f0104e200beca (patch)
tree0d685e3b804b6ac5e2efcfbdf946ac0aca90c680 /fs/proc/internal.h
parentproc: faster open/close of files without ->release hook (diff)
downloadkernel-qcow2-linux-a9fabc3df4c68e05f023c6a5189f0104e200beca.tar.gz
kernel-qcow2-linux-a9fabc3df4c68e05f023c6a5189f0104e200beca.tar.xz
kernel-qcow2-linux-a9fabc3df4c68e05f023c6a5189f0104e200beca.zip
proc: randomize "struct pde_opener"
The more the merrier. Link: http://lkml.kernel.org/r/20180214081935.GA17157@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Al Viro <viro@ZenIV.linux.org.uk> Cc: Kees Cook <keescook@chromium.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/internal.h')
-rw-r--r--fs/proc/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h
index d697c8ab0a14..713d5dfe3f05 100644
--- a/fs/proc/internal.h
+++ b/fs/proc/internal.h
@@ -177,7 +177,7 @@ struct pde_opener {
struct list_head lh;
bool closing;
struct completion *c;
-};
+} __randomize_layout;
extern const struct inode_operations proc_link_inode_operations;
extern const struct inode_operations proc_pid_link_inode_operations;