Date: Wed, 25 May 2016 01:40:21 +0200 From: "PaX Team" <pageexec@...email.hu> To: Emese Revfy <re.emese@...il.com>, Kees Cook <keescook@...omium.org> CC: "kernel-hardening@...ts.openwall.com" <kernel-hardening@...ts.openwall.com>, Brad Spengler <spender@...ecurity.net>, Michal Marek <mmarek@...e.com>, LKML <linux-kernel@...r.kernel.org>, Masahiro Yamada <yamada.masahiro@...ionext.com>, linux-kbuild <linux-kbuild@...r.kernel.org>, "Theodore Ts'o" <tytso@....edu>, Andrew Morton <akpm@...ux-foundation.org>, Linux-MM <linux-mm@...ck.org>, Jens Axboe <axboe@...nel.dk>, Al Viro <viro@...iv.linux.org.uk>, Paul McKenney <paulmck@...ux.vnet.ibm.com>, Ingo Molnar <mingo@...hat.com>, Thomas Gleixner <tglx@...utronix.de>, bart.vanassche@...disk.com, "David S. Miller" <davem@...emloft.net> Subject: Re: [PATCH v1 1/3] Add the latent_entropy gcc plugin On 24 May 2016 at 10:32, Kees Cook wrote: > On Mon, May 23, 2016 at 3:15 PM, Emese Revfy <re.emese@...il.com> wrote: > > This plugin mitigates the problem of the kernel having too little entropy during > > and after boot for generating crypto keys. > > > I'm excited to see this! This looks like it'll help a lot with early > entropy, which is something that'll be a problem for some > architectures that are trying to do early randomish things (e.g. the > heap layout randomization, various canaries, etc). > > Do you have any good examples of a before/after case of early > randomness being fixed by this? unfortunately, i don't know of a way to quantify this kind of PRNG as the effective algorithm is not something simple and well-structured for which we have theories and tools to analyze already. of course this cuts both ways, an attacker faces the same barrier of non-analyzability. what can at most be observed is the state of the latent_entropy global variable after init across many boots but that'd provide a rather low and useless lower estimate only (e.g., up to 20 bits for a million reboots, or 30 bits for a billion reboots, etc). to answer your question, i'd like to believe that there's enough latent entropy in program state that can be harnessed to (re)seed the entropy pool but we'll probably never know just how well we are doing it so accounting for it and claiming 'fixed' will stay in the realm of wishful thinking i'm afraid. cheers, PaX Team
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.