Re: [PATCH v4 2/4] Add the latent_entropy gcc plugin

2016-06-21 Thread Kees Cook
On Tue, Jun 21, 2016 at 5:58 AM, Christoph Hellwig wrote: > On Mon, Jun 20, 2016 at 08:41:19PM +0200, Emese Revfy wrote: >> --- /dev/null >> +++ b/scripts/gcc-plugins/latent_entropy_plugin.c >> @@ -0,0 +1,639 @@ >> +/* >> + * Copyright 2012-2016 by the PaX Team

Re: [PATCH v4 2/4] Add the latent_entropy gcc plugin

2016-06-21 Thread Kees Cook
On Tue, Jun 21, 2016 at 5:58 AM, Christoph Hellwig wrote: > On Mon, Jun 20, 2016 at 08:41:19PM +0200, Emese Revfy wrote: >> --- /dev/null >> +++ b/scripts/gcc-plugins/latent_entropy_plugin.c >> @@ -0,0 +1,639 @@ >> +/* >> + * Copyright 2012-2016 by the PaX Team >> + * Copyright 2016 by Emese

Re: [PATCH v4 2/4] Add the latent_entropy gcc plugin

2016-06-21 Thread Christoph Hellwig
On Mon, Jun 20, 2016 at 08:41:19PM +0200, Emese Revfy wrote: > --- /dev/null > +++ b/scripts/gcc-plugins/latent_entropy_plugin.c > @@ -0,0 +1,639 @@ > +/* > + * Copyright 2012-2016 by the PaX Team > + * Copyright 2016 by Emese Revfy > + * Licensed under

Re: [PATCH v4 2/4] Add the latent_entropy gcc plugin

2016-06-21 Thread Christoph Hellwig
On Mon, Jun 20, 2016 at 08:41:19PM +0200, Emese Revfy wrote: > --- /dev/null > +++ b/scripts/gcc-plugins/latent_entropy_plugin.c > @@ -0,0 +1,639 @@ > +/* > + * Copyright 2012-2016 by the PaX Team > + * Copyright 2016 by Emese Revfy > + * Licensed under the GPL v2 > + * > + * Note: the choice of

[PATCH v4 2/4] Add the latent_entropy gcc plugin

2016-06-20 Thread Emese Revfy
This plugin mitigates the problem of the kernel having too little entropy during and after boot for generating crypto keys. It creates a local variable in every marked function. The value of this variable is modified by randomly chosen operations (add, xor and rol) and random values (gcc

[PATCH v4 2/4] Add the latent_entropy gcc plugin

2016-06-20 Thread Emese Revfy
This plugin mitigates the problem of the kernel having too little entropy during and after boot for generating crypto keys. It creates a local variable in every marked function. The value of this variable is modified by randomly chosen operations (add, xor and rol) and random values (gcc