From: Alexey Dobriyan Date: Tue, 10 Apr 2018 23:31:05 +0000 (-0700) Subject: proc: randomize "struct pde_opener" X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a9fabc3df4c68e05f023c6a5189f0104e200beca;p=openwrt%2Fstaging%2Fblogic.git proc: randomize "struct pde_opener" The more the merrier. Link: http://lkml.kernel.org/r/20180214081935.GA17157@avx2 Signed-off-by: Alexey Dobriyan Cc: Al Viro Cc: Kees Cook Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;