Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1306667pxp; Thu, 17 Mar 2022 07:03:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt3RnXDvjRwFQD4TUY96AF6J737hsAPZvWjgVr0Z1io/VlLPq+sbL594XBRUG8JQFbHThf X-Received: by 2002:a05:6e02:1a2c:b0:2c7:89cb:6bc8 with SMTP id g12-20020a056e021a2c00b002c789cb6bc8mr2115327ile.236.1647525783075; Thu, 17 Mar 2022 07:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647525783; cv=none; d=google.com; s=arc-20160816; b=NAfLSgdf0GQfJ1DWD6t/10CF5rgNF3c5SVzKWw1DrnPPOjNIyvEw76wbYzAr+x0Twc YHCg7q53HT1n4WRDox1SCpth/A5WvsXdrXc14QucMQ1g1p5L8/HxujTHFR0WbAzSuvF0 uGaJPQ9YoSu+2N6i0yntnyiTFKwb6pj+bbEkZfkTp7+9zUtxIWPyYZSrykf3KRRkVRPE PSKOqaikBakmncOkG07DPCPh9P4pvXLMAmhq7tnxejZNZhnj5w6cRI2beg1afvFhx4wq 20/woQY7Twcq2K85T78qJ6LqOVoqFkl9Xk8WabcAYu11fu9ooVO6iW4aeV9GWB9ke9fd t6zg== 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:dkim-signature; bh=r0jOVVu3BPrzKXrav+3Qu9hBQtOTdV5zgjACHyXEBwc=; b=czwWKfXXtDy5alYMrL4pwjBF8yu3q6FLoNEioD2VHi8JdlbtBTl+UHoUWbyXyTp688 /Pva7A1GvL/XK65MWJ8fdqujrH8LbO77ClXy0kPoT4syvZm2CCscSyaETxLNRy+ff9m6 AGN0Yjdpy7LmxPwtwq7exEYDd9+x8tLvaVY+Uen35yP9y6LtLEnKaksaxOLnJ6YBwrUg Sef59KDnZgQtgsQR+spfjGXHbU3Yf9hSRzqJcaMHUMhq+bcmj+aaBaOTRNvS8hY388dX VZx7oe2fHNyTfQre6MxyShbd0stYcWbL46ErqwQteJ96gPY2nKC5gyL0Ukgp6IV1tS4T 8TrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=k1S7FS2c; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g26-20020a5d8c9a000000b0060b12cabc1dsi1873866ion.74.2022.03.17.07.02.47; Thu, 17 Mar 2022 07:03:03 -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=@linuxfoundation.org header.s=korg header.b=k1S7FS2c; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232163AbiCQKFB (ORCPT + 99 others); Thu, 17 Mar 2022 06:05:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230027AbiCQKFA (ORCPT ); Thu, 17 Mar 2022 06:05:00 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5E1EBF52F; Thu, 17 Mar 2022 03:03:44 -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 sin.source.kernel.org (Postfix) with ESMTPS id F0CB1CE2259; Thu, 17 Mar 2022 10:03:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC5AFC340E9; Thu, 17 Mar 2022 10:03:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647511421; bh=GXCQ54BJM97k7KKyXZtBG5FGnu1uCHY2JbllZ5NIchg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k1S7FS2cEFIA602M9SKdyjbIIDZkJkGEkz60gEq/YUnfDXz/hh/D4b53B7Arv3ZzW ZYkwMaDmQ5W6NmHJeUfVamZNZU4m0KxOUWS8L0XogppEl9P5GO9Ko82bBv1K/GwL+g FJ+BSsH3UNLy2LCxqfkudqSplEgxdnb2J8FW1x8I= Date: Thu, 17 Mar 2022 11:03:37 +0100 From: Greg KH To: James Morse Cc: stable@vger.kernel.org, pavel@denx.de, catalin.marinas@arm.com, linux-kernel@vger.kernel.org Subject: Re: [stable:PATCH v5.10.105] arm64: kvm: Fix copy-and-paste error in bhb templates for v5.10 stable Message-ID: References: <20220315135720.1302143-1-james.morse@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220315135720.1302143-1-james.morse@arm.com> X-Spam-Status: No, score=-8.6 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 Tue, Mar 15, 2022 at 01:57:20PM +0000, James Morse wrote: > KVM's infrastructure for spectre mitigations in the vectors in v5.10 and > earlier is different, it uses templates which are used to build a set of > vectors at runtime. > > There are two copy-and-paste errors in the templates: __spectre_bhb_loop_k24 > should loop 24 times and __spectre_bhb_loop_k32 32. > > Fix these. > > Reported-by: Pavel Machek > Link: https://lore.kernel.org/all/20220310234858.GB16308@amd/ > Signed-off-by: James Morse > --- > arch/arm64/kvm/hyp/smccc_wa.S | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/kvm/hyp/smccc_wa.S b/arch/arm64/kvm/hyp/smccc_wa.S > index 24b281912463..533b0aa73256 100644 > --- a/arch/arm64/kvm/hyp/smccc_wa.S > +++ b/arch/arm64/kvm/hyp/smccc_wa.S > @@ -68,7 +68,7 @@ SYM_DATA_START(__spectre_bhb_loop_k24) > esb > sub sp, sp, #(8 * 2) > stp x0, x1, [sp, #(8 * 0)] > - mov x0, #8 > + mov x0, #24 > 2: b . + 4 > subs x0, x0, #1 > b.ne 2b > @@ -85,7 +85,7 @@ SYM_DATA_START(__spectre_bhb_loop_k32) > esb > sub sp, sp, #(8 * 2) > stp x0, x1, [sp, #(8 * 0)] > - mov x0, #8 > + mov x0, #32 > 2: b . + 4 > subs x0, x0, #1 > b.ne 2b > -- > 2.30.2 > Thanks, now queued up! greg k-h