From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965070AbeE2QH4 (ORCPT ); Tue, 29 May 2018 12:07:56 -0400 Received: from imap.thunk.org ([74.207.234.97]:40928 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934877AbeE2QHy (ORCPT ); Tue, 29 May 2018 12:07:54 -0400 Date: Tue, 29 May 2018 12:07:43 -0400 From: "Theodore Y. Ts'o" To: Prarit Bhargava Cc: Kees Cook , LKML , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , X86 ML , Arnd Bergmann , Greg Kroah-Hartman , Rik van Riel , Andrew Morton , Philippe Ombredanne , "Jason A. Donenfeld" , Kate Stewart Subject: Re: [PATCH] x86, random: Fix get_random_bytes() warning in x86 start_kernel Message-ID: <20180529160743.GA7381@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , Prarit Bhargava , Kees Cook , LKML , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , X86 ML , Arnd Bergmann , Greg Kroah-Hartman , Rik van Riel , Andrew Morton , Philippe Ombredanne , "Jason A. Donenfeld" , Kate Stewart References: <20180529123800.19627-1-prarit@redhat.com> <71b5df93-2e21-f3c3-fa22-4488729daeb5@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <71b5df93-2e21-f3c3-fa22-4488729daeb5@redhat.com> User-Agent: Mutt/1.10.0 (2018-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 29, 2018 at 11:01:07AM -0400, Prarit Bhargava wrote: > Kees, in early boot no pool is available so the stack canary is initialized from > the TSC. Later in boot, the stack canary will use the the crng. > > ie) in early boot only TSC is okay, and late boot (when crng_ready() is true) > the pool will be used. But that means all of the kernel threads (e.g., workqueues, et. al) would not be well protected by the stack canary. That seems.... rather unfortunate. - Ted