From mboxrd@z Thu Jan 1 00:00:00 1970 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 2DC97C433EF for ; Sat, 12 Mar 2022 10:40:37 +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:Message-ID:Date:From:Cc:To :Subject:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=g+OrE/7br6FDkqlDxkcwa5Ovk6bTwAT2jIz/AlAiNEg=; b=QBR0xOmsWhQ0xW zNSFISL0tGlmzOqk1sSTePLeU7UTxiAOX93/8Xo3nSx2gT70kkT9Ht0YhrWHAELK1mzWDlpRhDuk1 DFyBr6tJh+z+oKPX7eVI4J0L3FnDlupyufvVX3FJKOYoVR/eosm0BM8OGED3ii90LpvruvKL8PbxR zC/MsEHbi8CHNo1Vtgdfs3Faea2Kwlkz87Kz/SJNZ5rT12cdMu6vDR9we2Rq9hLfXIZTVBVvNziQ4 ICJSUjkDs5u9oZdN7wfO69i3XC+MADlKE534oYMZy0SutLg7Yn/0U5RSkc6KrGTyKVizQAQLh7NHZ FNYnYz2wbl1NxRn2ruWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSz9o-0015OY-7u; Sat, 12 Mar 2022 10:39:32 +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 1nSz9j-0015N6-Rk for linux-arm-kernel@lists.infradead.org; Sat, 12 Mar 2022 10:39:29 +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 BB03160C53; Sat, 12 Mar 2022 10:39:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 810E9C340EB; Sat, 12 Mar 2022 10:39:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647081566; bh=PJMXgJ/hp36btl0tQQqzxY21LnCRfVx66p22mJ7y72Y=; h=Subject:To:Cc:From:Date:From; b=aixlNhFmE7nR4Aa588j9fHIPOpuw1FaS+AN61t75vIA/gCfY69IdEckErCtuq6hk4 jQwvDmgusSoxs0in+KC0wukAkPHRqK/cMxSJA0TEh+o8/dLm0X+G54sIDoJ82vHpLZ YB+UXMCkCRAh4iVjkivrB20Sa6GmRdo1HtBUiZOY= Subject: Patch "ARM: Spectre-BHB: provide empty stub for non-config" has been added to the 4.9-stable tree To: catalin.marinas@arm.com, gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, lkp@intel.com, patches@armlinux.org.uk, rdunlap@infradead.org, rmk+kernel@armlinux.org.uk, torvalds@linux-foundation.org Cc: From: Date: Sat, 12 Mar 2022 11:39:18 +0100 Message-ID: <164708155815222@kroah.com> MIME-Version: 1.0 X-stable: commit X-Patchwork-Hint: ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220312_023927_986212_81B1DDE5 X-CRM114-Status: GOOD ( 15.12 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is a note to let you know that I've just added the patch titled ARM: Spectre-BHB: provide empty stub for non-config to the 4.9-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: arm-spectre-bhb-provide-empty-stub-for-non-config.patch and it can be found in the queue-4.9 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From 68453767131a5deec1e8f9ac92a9042f929e585d Mon Sep 17 00:00:00 2001 From: Randy Dunlap Date: Fri, 11 Mar 2022 11:49:12 -0800 Subject: ARM: Spectre-BHB: provide empty stub for non-config From: Randy Dunlap commit 68453767131a5deec1e8f9ac92a9042f929e585d upstream. When CONFIG_GENERIC_CPU_VULNERABILITIES is not set, references to spectre_v2_update_state() cause a build error, so provide an empty stub for that function when the Kconfig option is not set. Fixes this build error: arm-linux-gnueabi-ld: arch/arm/mm/proc-v7-bugs.o: in function `cpu_v7_bugs_init': proc-v7-bugs.c:(.text+0x52): undefined reference to `spectre_v2_update_state' arm-linux-gnueabi-ld: proc-v7-bugs.c:(.text+0x82): undefined reference to `spectre_v2_update_state' Fixes: b9baf5c8c5c3 ("ARM: Spectre-BHB workaround") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Russell King Cc: Catalin Marinas Cc: linux-arm-kernel@lists.infradead.org Cc: patches@armlinux.org.uk Acked-by: Russell King (Oracle) Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- arch/arm/include/asm/spectre.h | 6 ++++++ 1 file changed, 6 insertions(+) --- a/arch/arm/include/asm/spectre.h +++ b/arch/arm/include/asm/spectre.h @@ -25,7 +25,13 @@ enum { SPECTRE_V2_METHOD_LOOP8 = BIT(__SPECTRE_V2_METHOD_LOOP8), }; +#ifdef CONFIG_GENERIC_CPU_VULNERABILITIES void spectre_v2_update_state(unsigned int state, unsigned int methods); +#else +static inline void spectre_v2_update_state(unsigned int state, + unsigned int methods) +{} +#endif int spectre_bhb_update_vectors(unsigned int method); Patches currently in stable-queue which might be from rdunlap@infradead.org are queue-4.9/arm-spectre-bhb-provide-empty-stub-for-non-config.patch _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel