Re: [PATCH] mm: Add the ram_latent_entropy kernel parameter

2016-08-11 Thread Balbir Singh
On 11/08/16 08:28, Kees Cook wrote: > From: Emese Revfy > > When "ram_latent_entropy" is passed on the kernel command line, entropy > will be extracted from up to the first 4GB of RAM while the runtime memory > allocator is being initialized. This entropy isn't

Re: [PATCH] mm: Add the ram_latent_entropy kernel parameter

2016-08-11 Thread Dave Hansen
On 08/10/2016 03:28 PM, Kees Cook wrote: > + if (ram_latent_entropy && !PageHighMem(page) && > + page_to_pfn(page) < 0x10) { > + u64 hash = 0; > + size_t index, end = PAGE_SIZE * nr_pages / sizeof(hash); > + const u64 *data =

[PATCH] mm: Add the ram_latent_entropy kernel parameter

2016-08-10 Thread Kees Cook
From: Emese Revfy When "ram_latent_entropy" is passed on the kernel command line, entropy will be extracted from up to the first 4GB of RAM while the runtime memory allocator is being initialized. This entropy isn't cryptographically secure, but does help provide additional