From patchwork Fri Nov 11 17:11:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 13040625 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0B8CCC433FE for ; Fri, 11 Nov 2022 17:15:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8iaQcNfQ6F8raKaCWyJkXYGzQX3Zd8RXUxIQmh1b0Pc=; b=Rj2dC/8AXQm0rR M5gsa38XA0ODW1o1BKx88U9ez0di/W8ltfueNoHJrpEDDICTONebCEZNLXKPSPBjGo9C6bqmyzaoG FA/+GJYI0wBdUtj/kPVsBxuYeVa8qPqdfszsWh556qItZ7YZjcUZ9EmmYFFd/GGmdp/bAuJu3GKgW aZHGnnNTQBsalhDsXqVX5Ni1MJR+qExvJduBi+QkMh2fe+csrFyH8VWmwQ50K8GWhf/BMpSJsEidh mR4yk0UvSTic/cVRPnXkiITB0c8iZphwMYZ038rjm4BnAUjNRQzL2RdCMdZmoA8da77c62y9y7aO6 v6BAV8xF0at2MfUu0fcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1otXcH-00H8om-0C; Fri, 11 Nov 2022 17:14:57 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1otXZv-00H7YK-6l for linux-arm-kernel@lists.infradead.org; Fri, 11 Nov 2022 17:12:32 +0000 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 8F35F618C9; Fri, 11 Nov 2022 17:12:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D70DC43143; Fri, 11 Nov 2022 17:12:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668186750; bh=rZmP7BIoj1J491MBF4A3/sy3itpwJoiIMNgf5sj7MjI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HBju7epUAPaaaL5hzdtNN5stS038EvAfgde35I3WyVOJwNzOHRmMV7accMQ9ubgLr 8yxsx3os8kfAX0ptgvM3CqvEDAvPypKK7CuDdJvmBKbKVRdBPCAASB/+L/VkjCvHuk SnSNGvVILEFxYMra1vBQMjIFbzZ20CU+howeQTRNp9aKTPQXi+Fih52Qidr05GXfz8 qvBuAl1+lAuQrN1UNBX3B8CQO80lgQvn3ItOuCL6NUWPs8zn1xNMPdqmknAH7dB1Lp 5AQEB0jegSkRnzpoEXpqOFcUlnVKo0+lEdSnKiw6T9xCvvdpQvPzzV5hkNzebYlqM5 lUvNGk2uFp0RA== From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Cc: Ard Biesheuvel , Marc Zyngier , Will Deacon , Mark Rutland , Kees Cook , Catalin Marinas , Mark Brown , Anshuman Khandual Subject: [PATCH v7 05/33] arm64: kernel: Disable latent_entropy GCC plugin in early C runtime Date: Fri, 11 Nov 2022 18:11:33 +0100 Message-Id: <20221111171201.2088501-6-ardb@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221111171201.2088501-1-ardb@kernel.org> References: <20221111171201.2088501-1-ardb@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=849; i=ardb@kernel.org; h=from:subject; bh=rZmP7BIoj1J491MBF4A3/sy3itpwJoiIMNgf5sj7MjI=; b=owEB7QES/pANAwAKAcNPIjmS2Y8kAcsmYgBjboIxNlQuGKin0p0gYlZsDdmLvROOtJgb3iz1VepF WjbfNzuJAbMEAAEKAB0WIQT72WJ8QGnJQhU3VynDTyI5ktmPJAUCY26CMQAKCRDDTyI5ktmPJPaBC/ wJ9WUQBKnfYpN/76TQy7dYSwE4hUmj/KadHBfFe0ur+8+UGsD6c5ALSxWVM3NXGLb6TJcF7Sjn7Pok xlW7cf0k2Qk1JChFYK6y1jQwJHNbdRzIj+E60B8yxUtoVTnjapxHwONoT1Gv4FClwrCoEyNWRYlJEG yrPgJE/nj/BZsFb+IxYRUiQszWhEhqfHK+Z+X16U08XC7vW4eUhKBRD3Vk9eaoQRAZnebPf6SLjEdE GMy8PBqex2jFPNt6sEls+Yx5lm0CiEd+KuCfBjOreZ9xiIrY6fy9KVgN9fdTDOIvpQbxxOCVLNlmhY QrNOryhRN36nyAk0CBxsDFG9hsk2Xw6pSocte+mM9hXVpTlKnFvZHqzMWwZiJ4IJJttbQK3UBjmXdy o5kfTs7Pw71/vXRME0ZoXJJPRxe6yevUe/eOacan+gVrFysJZQgdSaAIAH3At0NR3obr6um8VrDLsO ETpcOp24vThbk4c5l+knIfHKwI/ysrgaCGl9NLbaSB2DE= X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221111_091231_334453_7E95DE70 X-CRM114-Status: GOOD ( 10.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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 \