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 62F4DC433F5 for ; Sat, 12 Mar 2022 10:41:36 +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=IzJyCrTcZ43ebDZcbviAuaSOR16J06qd6n7lNXvxh+M=; b=ZYlKmF0h/sscck G0tcMIRe8xc102GJSFL62egcCxOEqVs+i6z4dtj0nDj1HTcdvwb3yikz7x79i//I9rWu+qU3lXpKf TUKiIytkwlU+STSLrQveOzdm86rj1S/tQGd/AvR2UXIccfMi1vqNcwjJm2xyLcOUBzsnKA7WP39jr LkPCJ4XfxtSwV5FxU+AD3GtaqSE1ULDgPaxw4SxN30nvKgmDgf0C0jhSACdi5S5+CLaoGq501EA7p bJ3Q1tC3t6UNzem5k2BSn0t9mQM8ueTiTiMR1glxv1Ye5smGotOIdqefybueocO5Gcbkm1ZW9TIK8 5ENZ4mtQpSI9KWFYO9wA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSzAi-0015ch-1S; Sat, 12 Mar 2022 10:40:28 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSzAd-0015b3-LP for linux-arm-kernel@lists.infradead.org; Sat, 12 Mar 2022 10:40:25 +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 3C32E60C53; Sat, 12 Mar 2022 10:40:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3754C340EB; Sat, 12 Mar 2022 10:40:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647081622; bh=+SPVsfqzOfHTIWrzp/NkLFNdsRW1gtfDUQnIocjZzxQ=; h=Subject:To:Cc:From:Date:From; b=QxXAk7TyAQpKsj29FwdInFpitSJ2ebdp9brD9Q4842Ic3QycZg2sP4T4bQSNHqa0u LHYtLCkkQiMxAmA8lGNtUL0saCZHJe7s8WzBVfEGHV3jqE9+1LdsSolrd65J0MpGiJ 8WcCV8woIV7fWx83U5JJBtm3ECvfplnAFW4Z0YO4= Subject: Patch "ARM: Spectre-BHB: provide empty stub for non-config" has been added to the 5.4-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:40:17 +0100 Message-ID: <164708161775181@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_024023_793085_AE043EBF X-CRM114-Status: GOOD ( 14.96 ) 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 5.4-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-5.4 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-5.4/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