lkml.org 
[lkml]   [2018]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH -mm 1/3] proc: randomize "struct pde_opener"
On Wed, Feb 14, 2018 at 12:19 AM, Alexey Dobriyan <adobriyan@gmail.com> wrote:
> The more the merrier.

What made you choose this structure, BTW?

> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> ---
>
> fs/proc/internal.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- 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;

-Kees

--
Kees Cook
Pixel Security

\
 
 \ /
  Last update: 2018-02-16 01:53    [W:0.617 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site