Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757204Ab3ILXvi (ORCPT ); Thu, 12 Sep 2013 19:51:38 -0400 Received: from mail-ve0-f172.google.com ([209.85.128.172]:64592 "EHLO mail-ve0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757072Ab3ILXvg convert rfc822-to-8bit (ORCPT ); Thu, 12 Sep 2013 19:51:36 -0400 MIME-Version: 1.0 In-Reply-To: <20130912221340.GG3809@logfs.org> References: <1378920168.26698.64.camel@localhost> <1378925224.26698.90.camel@localhost> <20130912215718.GF3809@logfs.org> <20130912221340.GG3809@logfs.org> From: Andy Lutomirski Date: Thu, 12 Sep 2013 16:51:15 -0700 Message-ID: Subject: Re: TPMs and random numbers To: =?ISO-8859-1?Q?J=F6rn_Engel?= Cc: Jeff Garzik , David Safford , "H. Peter Anvin" , Leonidas Da Silva Barbosa , Ashley Lai , Rajiv Andrade , Marcel Selhorst , Sirrix AG , Linux Kernel Mailing List , "Ted Ts'o" , Kent Yoder , David Safford , Mimi Zohar , "Johnston, DJ" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1535 Lines: 35 On Thu, Sep 12, 2013 at 3:13 PM, J?rn Engel wrote: > On Thu, 12 September 2013 19:39:47 -0400, Jeff Garzik wrote: >> On Thu, Sep 12, 2013 at 5:57 PM, J?rn Engel wrote: >> > On Wed, 11 September 2013 14:47:04 -0400, David Safford wrote: >> >> But I also think that the existing (certified) TPMs are good enough >> >> for direct use. >> >> > That is equivalent to trusting the TPM chip not to be malicious. It >> >> Indeed. While it need not be rngd or userland at all, it seems >> reasonable to require any hardware RNG to have its data pushed through >> AES mix steps (as kernel random does now IIUC). > > *shrug* > > The hardware RNG is either providing good entropy or entirely > predictable data - without us being able to tell the difference. So I > am torn between two extremes. Either we admit it to the entropy pool > and mix it will all other sources - hoping that it actually is > unpredictable to The Bad Guys(tm). Or we disregard all of it. Supposedly, the Linux entropy pool has the property that mixing in even actively malicious data is no worse than not mixing in anything at all. (This is probably not true if the so-called entropy can depend on the current (secret) state of the pool, but the TPM has no way to see that.) --Andy -- 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/