Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1927800rwr; Fri, 28 Apr 2023 03:59:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6b/UiR12AolXkXghBr50idlEk25XHFlWtDP+J/AGg8Y89R4bdalX3D8k4iMpu2zYaP5QOf X-Received: by 2002:a05:6a20:9151:b0:ee:a720:c707 with SMTP id x17-20020a056a20915100b000eea720c707mr6599618pzc.18.1682679581228; Fri, 28 Apr 2023 03:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682679581; cv=none; d=google.com; s=arc-20160816; b=GI6Qe6nC+G3oCx3UPjy4bu9bGzpaL4yMS9sb6i7ZWdN3NWOHmogMOPN0EnT7/tyqml rKfsdFAecStceHHX2yfUoRPX7qd53D+HEh6I7HxzNdT3JTeIl3dUNmliBUSut8kSGLTv VBnTQbykrd/LFIfKmKtz2XXNUA1kjER89vG5k5As3+kAjgRyWiQ561mHQu7xWhKKuEBU wsosygvHOOzC3M0uGbPx76AUwG1YJaPGF8CwCee+jokd3tXoK8KotBpvjDqqZx1NvlMo Lpt/osF7p+u1xNnLxE77e+PI6gvUOagLCNZI4A67M3OHtXTZGL3DiGc3uksMIIfcvs2n YbfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aS30DvrsbbI97fb4uPz55dG3Gtly2aNfa7KnyEdltTg=; b=0xfUf9LTFvpZOOcmNjUu/Z94kpK5vO5/fHEa4l2JJqnOgKakWmiWt7wruFwwJoHRTy miaheTIhf5Gq3QnM+skBz8PFkmEpXmjRvG5pmp+DO+7Q4Ae4Ie8hj2JV10Q+vcdj3aYb mwcSL7f8IK/VHmbI1aPfoJjJOG9XI8d2VMcPMQ2S2IxrLiE7A2mCqQz1MNm79oMOtEEV hNfb6mrxh+h0wv/BUHcMpjrDa91s5PGuIXE09VVB5EhHgPsB6IMcvBupolZ0VAkFJEvI oSXLp8XT8obqbEB9T2aqj/Wo+UPHqX+oW3wU9WOEHdYmnMIkusOMJo8ai2uylUqS1j9Q 2EWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oOGr3tDB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r20-20020a63fc54000000b0051b8ec45689si20544586pgk.520.2023.04.28.03.59.28; Fri, 28 Apr 2023 03:59:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oOGr3tDB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345595AbjD1Kyd (ORCPT + 99 others); Fri, 28 Apr 2023 06:54:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbjD1Kyb (ORCPT ); Fri, 28 Apr 2023 06:54:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4444F2112 for ; Fri, 28 Apr 2023 03:54:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B7FEF642CD for ; Fri, 28 Apr 2023 10:54:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27736C433EF for ; Fri, 28 Apr 2023 10:54:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682679270; bh=aS30DvrsbbI97fb4uPz55dG3Gtly2aNfa7KnyEdltTg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=oOGr3tDB+20C8Js7poMaw+oKtk/uc7lGPErg2ro3jxSP+x1T/8e8eO8U8Orw2npwj HGFObHqjDBnRe4iZezd5lEXOC+V3JUFRYuI/KdLoDlleCaw47gX7SD2MZgnLiCshge ZCt/aq8H63UWLz3nMYQLd/NPeCIBq5LyZjEPTt7ELI+6T8zhb+EixSInR/Y7A4qZgg 8LIv8t6yA7sulf7VTfXWQcExOkZo56ZyUcloZHmDyD5vnpSiyQeEmdsatBeKUvcrni elPqfi/zj7GGekd6TamyexARSle0D80+qH6N1kzFbZSMvH4l361bHQ4LrpnvS/uhEW fYjCIf7Vj4Z6w== Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-4f00d3f98deso9226276e87.0 for ; Fri, 28 Apr 2023 03:54:30 -0700 (PDT) X-Gm-Message-State: AC+VfDwNgb++b+Hs87F/9iVNbgj3NULFBU/5vxPih3A37vhoNGBqaob1 0pfcCXF51WyifArnhmSrHe20TkPvUX0WAMUCWxM= X-Received: by 2002:a19:f617:0:b0:4ef:ebbb:2cf5 with SMTP id x23-20020a19f617000000b004efebbb2cf5mr1427188lfe.17.1682679268146; Fri, 28 Apr 2023 03:54:28 -0700 (PDT) MIME-Version: 1.0 References: <20230307140522.2311461-1-ardb@kernel.org> <20230307140522.2311461-2-ardb@kernel.org> In-Reply-To: From: Ard Biesheuvel Date: Fri, 28 Apr 2023 11:54:16 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 01/60] arm64: kernel: Disable latent_entropy GCC plugin in early C runtime To: Mark Rutland Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , Marc Zyngier , Ryan Roberts , Anshuman Khandual , Kees Cook Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 28 Apr 2023 at 11:38, Mark Rutland wrote: > > On Tue, Mar 07, 2023 at 03:04:23PM +0100, Ard Biesheuvel wrote: > > Avoid build issues in the early C code related to the latent_entropy GCC > > plugin, by incorporating the C flags fragment that disables it. > > > > Signed-off-by: Ard Biesheuvel > > Just to check, are you seeing issues today? IIUC the plugin only instruments > functions which are explicitly marked with __latent_entropy, and if we're > seeing that happen unexpectedly (or due to that being applying to __meminit / > __init), we might need to do likewise for other noinstr code. > I don't quite remember, tbh, but it is unlikely that I would have written or included this patch without having run into some actual issue. > Regardless, for this patch: > > Acked-by: Mark Rutland > Thanks,