Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1910327rwr; Fri, 28 Apr 2023 03:40:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Xeg8DX+qB9Uy/wbcI9j9Wkt/Hoy7FGLTt3EOgx1F4kxYmQ2+cayaVDhGLTZ/ZifGFkJc7 X-Received: by 2002:a05:6a00:23c8:b0:641:23df:e92a with SMTP id g8-20020a056a0023c800b0064123dfe92amr5452400pfc.12.1682678404070; Fri, 28 Apr 2023 03:40:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682678404; cv=none; d=google.com; s=arc-20160816; b=uswoxvkvh3dkyJZ1FRvRUfzrqkXQMrVGhd+5NrqW7oyhfERzSg3DmR7MrSQI5cKfUz 1iRS3JENTFB0J62m1pNilWV/lPIjGrROCz44u0Yk3Mfrop3DH5+Ke7UmCvlpgIRPhyaz oY5f1PKj81pHRiID/z8r2HWQ+frnn0xICMealOOZ1xuB2nA2CENlj+jpQRND4vhJXs2m frAWB4lkHkFSRwdjdGHj0ag4+8Au7XzonQNN7DRh7XU9EtAumh3QdVeck1TAwDbaCAyl 0tfeFFrJPDnGroMacT1Xux6n2/qVpXbVYHt/z2e4UOygTaO+gLUPWSdW8zIyPU0KsTvk lRkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=FLMPTgMkvu+1tOnKqAzAYlZJGsgeKNLcJLvOUf40TMo=; b=PIZWP4oJ1OgMHwfNwrey6RO1HzxQHM++rTwDgX1Ss+ADHuYuaoLgssKQYQjek79NEx PsqIeB3Pdx/0Dzw3UR/5QveTmhn41KD07sPBzzX5gWkIHg9OCzjIYakD1qEVhhsA/ov7 vRy9RVwlXdAALeG41gvBrBo54i2XX7kkEsDUFl+/Oncu1RKbkSg/yBNLR1tZvAdRA+GP Y37a6bt6AeJHH6XREz7M5IxlTyhpskbcsJqWhoVeBYJxVnEu24mtj3ArWIh5X42XDd4j a586RH2bPIJNzG8Gvateo+W3hxIfY/rRxDZGOGkevRgeMDz32dhGX2R7bC8GpYEdxNyB K6ug== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a6540cb000000b0051b5c9dd1fdsi19848934pgp.685.2023.04.28.03.39.51; Fri, 28 Apr 2023 03:40:04 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345901AbjD1Kjt (ORCPT + 99 others); Fri, 28 Apr 2023 06:39:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345929AbjD1Kj1 (ORCPT ); Fri, 28 Apr 2023 06:39:27 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 31F335FC1 for ; Fri, 28 Apr 2023 03:38:44 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A6F0BC14; Fri, 28 Apr 2023 03:38:40 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.21.9]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4BE0C3F64C; Fri, 28 Apr 2023 03:37:55 -0700 (PDT) Date: Fri, 28 Apr 2023 11:37:49 +0100 From: Mark Rutland To: Ard Biesheuvel Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , Marc Zyngier , Ryan Roberts , Anshuman Khandual , Kees Cook Subject: Re: [PATCH v3 01/60] arm64: kernel: Disable latent_entropy GCC plugin in early C runtime Message-ID: References: <20230307140522.2311461-1-ardb@kernel.org> <20230307140522.2311461-2-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230307140522.2311461-2-ardb@kernel.org> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 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. Regardless, for this patch: Acked-by: Mark Rutland Mark. > --- > arch/arm64/kernel/pi/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/kernel/pi/Makefile b/arch/arm64/kernel/pi/Makefile > index 4c0ea3cd4ea406b6..c844a0546d7f0e62 100644 > --- a/arch/arm64/kernel/pi/Makefile > +++ b/arch/arm64/kernel/pi/Makefile > @@ -3,6 +3,7 @@ > > KBUILD_CFLAGS := $(subst $(CC_FLAGS_FTRACE),,$(KBUILD_CFLAGS)) -fpie \ > -Os -DDISABLE_BRANCH_PROFILING $(DISABLE_STACKLEAK_PLUGIN) \ > + $(DISABLE_LATENT_ENTROPY_PLUGIN) \ > $(call cc-option,-mbranch-protection=none) \ > -I$(srctree)/scripts/dtc/libfdt -fno-stack-protector \ > -include $(srctree)/include/linux/hidden.h \ > -- > 2.39.2 > >