Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 27 Oct 2016 16:32:01 -0700
From: "Leibowitz, Michael" <michael.leibowitz@...el.com>
To: Kees Cook <keescook@...omium.org>
Cc: Brad Spengler <spender@...ecurity.net>, 
	"kernel-hardening@...ts.openwall.com" <kernel-hardening@...ts.openwall.com>, Emese Revfy <re.emese@...il.com>, 
	PaX Team <pageexec@...email.hu>, "Schaufler, Casey" <casey.schaufler@...el.com>, 
	"Reshetova, Elena" <elena.reshetova@...el.com>
Subject: Re: [PATCH] Add the randstruct gcc plugin

On Thu, Oct 27, 2016 at 4:15 PM, Kees Cook <keescook@...omium.org> wrote:
> On Fri, Oct 21, 2016 at 10:37 AM, Michael Leibowitz
> <michael.leibowitz@...el.com> wrote:
>> This plugin randomizes the layout of certain structures at compile
>> time.  This introduces two defines __randomize_layout and
>> __no_randomize_layout.  Which, in turn, tell the compiler to either
>> try to randomize or not to randomize the struct in question.
>
> How are you testing this, btw? I manually marked struct cred with
> __randomize_layout, and "pahole vmlinux" shows it is not randomized...

I made a module that defined several fields and printed their layout
in memory.  It was out of order with it marked.  I haven't tried it on
the cred struct.  I will do so.

Cheers

>
> -Kees
>
> --
> Kees Cook
> Nexus Security



-- 
Michael Leibowitz

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.