Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755088AbaDNQKR (ORCPT ); Mon, 14 Apr 2014 12:10:17 -0400 Received: from terminus.zytor.com ([198.137.202.10]:47571 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754700AbaDNQKP (ORCPT ); Mon, 14 Apr 2014 12:10:15 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <20140414160211.GE711@lst.de> References: <20140321142950.GI1763@lst.de> <20140321143342.GK1763@lst.de> <533375C1.5060904@mit.edu> <158d2776-1ea4-4f32-a9e9-0488047e6b70@email.android.com> <20140414160211.GE711@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [PATCH v3 00/03]: hwrng: an in-kernel rngd From: "H. Peter Anvin" Date: Mon, 14 Apr 2014 09:09:14 -0700 To: Torsten Duwe CC: Andy Lutomirski , "Theodore Ts'o" , Greg Kroah-Hartman , Andrew Morton , Matt Mackall , Herbert Xu , Arnd Bergmann , Rusty Russell , Satoru Takeuchi , ingo.tuchscherer@de.ibm.com, linux-kernel@vger.kernel.org, Hans-Georg Markgraf , Gerald Schaefer , Martin Schwidefsky , Heiko Carstens , Joe Perches Message-ID: <7b22b881-9359-42c9-a632-6a8cbdb13b71@email.android.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I think the default should be zero, so each hwrng driver maintainer would have to consider what guarantees that particular driver can give. If anything 50% ought to be the maximum. On April 14, 2014 9:02:11 AM PDT, Torsten Duwe wrote: >More or less a resend of v2. > >On Wed, Mar 26, 2014 at 06:03:37PM -0700, H. Peter Anvin wrote: >> I'm wondering more about the default. We default to 50% for >arch_get_random_seed, and this is supposed to be the default for in >effect unverified hwrngs... > >Done. 50% is now the default, that's the only change from v2. > >Andy: the printk you pointed out already limits itself to 1/10s, >which is half the default rate limit. Also, as Peter already >wrote, we're dealing with true HWRNGs here; if such a device >does not produce a single byte within 10 seconds something _is_ >severely broken and, like a dying disk, worth to be logged. >Here's one of the better circuits I found: >http://www.maximintegrated.com/app-notes/index.mvp/id/3469 >or offline: >http://pdfserv.maximintegrated.com/en/an/AN3469.pdf >Disclaimer: I'm not endorsing Maxim, it's just that paper >that hits the spot IMHO. > >Anything wrong with feeding those bits into the input pool? >Any other comments on the code? > > Torsten -- Sent from my mobile phone. Please pardon brevity and lack of formatting. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/