Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07428C636D3 for ; Sun, 12 Feb 2023 23:18:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbjBLXRq (ORCPT ); Sun, 12 Feb 2023 18:17:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjBLXRo (ORCPT ); Sun, 12 Feb 2023 18:17:44 -0500 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 56184DBE7 for ; Sun, 12 Feb 2023 15:17:43 -0800 (PST) Received: by angie.orcam.me.uk (Postfix, from userid 500) id A388992009E; Mon, 13 Feb 2023 00:17:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 9DF2592009D; Sun, 12 Feb 2023 23:17:42 +0000 (GMT) Date: Sun, 12 Feb 2023 23:17:42 +0000 (GMT) From: "Maciej W. Rozycki" To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" cc: "Jason A. Donenfeld" , Kees Cook , x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PING][PATCH v3] x86: Use `get_random_u8' for kernel stack offset randomization In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 Jan 2023, Maciej W. Rozycki wrote: > For x86 kernel stack offset randomization uses the RDTSC instruction, > which according to H. Peter Anvin is not a secure source of entropy: > > "RDTSC isn't a super fast instruction either, but what is *way* more > significant is that this use of RDTSC is NOT safe: in certain power states > it may very well be that stone number of lower bits of TSC contain no > entropy at all." Ping for: . Maciej