Re: [PATCH v1 2/3] Mark functions with the latent_entropy attribute

2016-05-24 Thread Kees Cook
On Tue, May 24, 2016 at 1:45 PM, Emese Revfy wrote: > On Tue, 24 May 2016 10:16:09 -0700 > Kees Cook wrote: > >> On Mon, May 23, 2016 at 3:16 PM, Emese Revfy wrote: >> > +#ifdef CONFIG_MEMORY_HOTPLUG >> > +#define add_meminit_latent_entropy >> > +#else >> > +#define add_meminit_latent_entropy __

Re: [PATCH v1 2/3] Mark functions with the latent_entropy attribute

2016-05-24 Thread Emese Revfy
On Tue, 24 May 2016 10:16:09 -0700 Kees Cook wrote: > On Mon, May 23, 2016 at 3:16 PM, Emese Revfy wrote: > > +#ifdef CONFIG_MEMORY_HOTPLUG > > +#define add_meminit_latent_entropy > > +#else > > +#define add_meminit_latent_entropy __latent_entropy > > +#endif > > + > > /* These are for everybod

Re: [PATCH v1 2/3] Mark functions with the latent_entropy attribute

2016-05-24 Thread Kees Cook
On Mon, May 23, 2016 at 3:16 PM, Emese Revfy wrote: > These functions have been selected because they are init functions or > are called at random times or they have variable loops. > > Based on work created by the PaX Team. > > Signed-off-by: Emese Revfy > [...] > --- a/include/linux/compiler-gc

[PATCH v1 2/3] Mark functions with the latent_entropy attribute

2016-05-23 Thread Emese Revfy
These functions have been selected because they are init functions or are called at random times or they have variable loops. Based on work created by the PaX Team. Signed-off-by: Emese Revfy --- block/blk-softirq.c | 2 +- drivers/char/random.c| 6 +++--- fs/namespace.c