Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752991AbaGQTQF (ORCPT ); Thu, 17 Jul 2014 15:16:05 -0400 Received: from mail-la0-f46.google.com ([209.85.215.46]:42104 "EHLO mail-la0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751965AbaGQTQD (ORCPT ); Thu, 17 Jul 2014 15:16:03 -0400 MIME-Version: 1.0 In-Reply-To: <1405622543.23772.142820021.13876840@webmail.messagingengine.com> References: <5778e65d5ca52bebbaa023e177d863e44f098e96.1405546879.git.luto@amacapital.net> <53C6F5A9.80400@zytor.com> <53C703ED.2010605@zytor.com> <53C75733.8060507@zytor.com> <20140717103324.GJ1491@thunk.org> <53C7FC32.7030704@zytor.com> <20140717173230.GP1491@thunk.org> <1405622543.23772.142820021.13876840@webmail.messagingengine.com> From: Andy Lutomirski Date: Thu, 17 Jul 2014 12:15:41 -0700 Message-ID: Subject: Re: [PATCH v3 2/5] random,x86: Add arch_get_slow_rng_u64 To: Hannes Frederic Sowa Cc: "Theodore Ts'o" , "H. Peter Anvin" , Raghavendra K T , Paolo Bonzini , X86 ML , Bandan Das , Gleb Natapov , kvm list , Srivatsa Vaddagiri , Daniel Borkmann , "linux-kernel@vger.kernel.org" , Kees Cook Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 17, 2014 at 11:42 AM, Hannes Frederic Sowa wrote: > > > On Thu, Jul 17, 2014, at 19:34, Andy Lutomirski wrote: >> On Thu, Jul 17, 2014 at 10:32 AM, Theodore Ts'o wrote: >> > On Thu, Jul 17, 2014 at 10:12:27AM -0700, Andy Lutomirski wrote: >> >> >> >> Unless I'm reading the code wrong, the prandom_reseed_late call can >> >> happen after userspace is running. >> > >> > But there is also the prandom_reseed() call, which happens early. >> > >> >> Right -- I missed that. > > prandom_init is a core_initcall, prandom_reseed is a late_initcall. > During initialization of the network stack we have calls to prandom_u32 > before the late_initcall happens. That said, I think it is not that > important to seed prandom with rdseed/rdrand as security relevant > entropy extraction should always use get_random_bytes(), but we should > do it nonetheless. > Regardless, I don't want to do this as part of this patch series. One thing at a time... --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/