diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2018-04-11 01:31:05 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-11 19:28:33 +0200 |
commit | a9fabc3df4c68e05f023c6a5189f0104e200beca (patch) | |
tree | 0d685e3b804b6ac5e2efcfbdf946ac0aca90c680 /fs | |
parent | proc: faster open/close of files without ->release hook (diff) | |
download | linux-a9fabc3df4c68e05f023c6a5189f0104e200beca.tar.xz 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')
-rw-r--r-- | fs/proc/internal.h | 2 |
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; |