Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp999219ybt; Fri, 19 Jun 2020 21:06:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzgyikolP90vyNaRFD9AeMh1NHJP/n8EFvj1+IwgDrqi3FLbhRq/wqxxqDfpYxBIiB2zFg X-Received: by 2002:a05:6402:17ce:: with SMTP id s14mr6402993edy.53.1592626013415; Fri, 19 Jun 2020 21:06:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592626013; cv=none; d=google.com; s=arc-20160816; b=ZCsTwkevhp5oZe11xN7NXxvlciKk6ef2mCPUgTivq0kT276f+KGaVTNqEtoRESA0fb a9S9po+KOez3HgmCRQtYSlTOk0p6whm76xUujV9jaqubWhBTvq6hwdYYy0k2kUxBW7cL ct2XebEhScMgHyM56vNxbB1blUB8DS2xu+7EDG2rZuMP9bY75RS3QgLAeA9m2VQ88YnO VD08w5w2eYqyc4cDyR7LZlVXqDn8hVJgk2u26iTDSuK7Mc2fBAPHA+dRTWsQrW5zLqEf yDx0hZpNrlgIfS8B49gy7CvR7ytF40xWWysOX3VfNPITRXzeZARPV4ySWVDx4pPQW1Co CJRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9p1mdpQe85pyXk7XARg2IzSJLh2k49m4uY5w1sWPXog=; b=AL15jHfG/fiQoEPRXpnXpjAwd17LjyunsOsDlvPIE8r5+ToV9Ahs6/bzCV+fXbNsOb VcWtpuR/EZgUqYZGkNuhvXdlNUDgDut1gpUq+V8WjbqJZ+tdHmtnKiIVhdH1z08/8ffM VvmrYt+iVqKAN7mRgjZNNlnUT92/pu5OnHymBSK1lXtP+WVv7yd8nf2bLP+1bF93xRjA MU4jxR3dhWLRqfoWGM6R0JepcUtCzP6OFSpd23HqNqQT8U39/rlGuXVdlTQgPNE25In/ svSEBxcaLqciihYHoG75Huicp2o/oFc8tWgBfBtO7wIQDOYg2dlNtLRP6aW4hzBhvkBh 6fmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=z9+ciDKz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si5251689edt.28.2020.06.19.21.06.31; Fri, 19 Jun 2020 21:06:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=z9+ciDKz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404346AbgFSQqP (ORCPT + 99 others); Fri, 19 Jun 2020 12:46:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:60264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388278AbgFSOli (ORCPT ); Fri, 19 Jun 2020 10:41:38 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 539D320A8B; Fri, 19 Jun 2020 14:41:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592577697; bh=nf6WbXus/fRJsbsMaoNzI2UGOISYEAtpLYyvozpfqfY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z9+ciDKziNgZa/IkZug6IKeIxQoUTkeQholgIknAek2KS0ggzqi+TGkNmsaLlOTy6 CZFgttQFK/TH+kYVIQYxSyqwAoLIIlfAUb2a7YFg0SzBDUG6g63HTiyduXzmoeSUaI R7xyA4kQ0FlVCadI5BiYAKJxRJLwlUcnFhARGpKU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Waiman Long , Borislav Petkov , "H. Peter Anvin" , Andi Kleen , David Woodhouse , Ingo Molnar , Jiri Kosina , Josh Poimboeuf , KarimAllah Ahmed , Konrad Rzeszutek Wilk , Peter Zijlstra , Thomas Gleixner , Tim Chen , x86-ml , Sasha Levin Subject: [PATCH 4.9 025/128] x86/speculation: Change misspelled STIPB to STIBP Date: Fri, 19 Jun 2020 16:31:59 +0200 Message-Id: <20200619141621.505130315@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619141620.148019466@linuxfoundation.org> References: <20200619141620.148019466@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Waiman Long [ Upstream commit aa77bfb354c495fc4361199e63fc5765b9e1e783 ] STIBP stands for Single Thread Indirect Branch Predictors. The acronym, however, can be easily mis-spelled as STIPB. It is perhaps due to the presence of another related term - IBPB (Indirect Branch Predictor Barrier). Fix the mis-spelling in the code. Signed-off-by: Waiman Long Signed-off-by: Borislav Petkov Cc: "H. Peter Anvin" Cc: Andi Kleen Cc: David Woodhouse Cc: Ingo Molnar Cc: Jiri Kosina Cc: Josh Poimboeuf Cc: KarimAllah Ahmed Cc: Konrad Rzeszutek Wilk Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Tim Chen Cc: x86-ml Link: https://lkml.kernel.org/r/1544039368-9009-1-git-send-email-longman@redhat.com Signed-off-by: Sasha Levin --- arch/x86/kernel/cpu/bugs.c | 6 +++--- arch/x86/kernel/process.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 5ef0a2b34261..704ffc01a226 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -60,7 +60,7 @@ static u64 __ro_after_init x86_spec_ctrl_mask = SPEC_CTRL_IBRS; u64 __ro_after_init x86_amd_ls_cfg_base; u64 __ro_after_init x86_amd_ls_cfg_ssbd_mask; -/* Control conditional STIPB in switch_to() */ +/* Control conditional STIBP in switch_to() */ DEFINE_STATIC_KEY_FALSE(switch_to_cond_stibp); /* Control conditional IBPB in switch_mm() */ DEFINE_STATIC_KEY_FALSE(switch_mm_cond_ibpb); @@ -749,12 +749,12 @@ spectre_v2_user_select_mitigation(enum spectre_v2_mitigation_cmd v2_cmd) "always-on" : "conditional"); } - /* If enhanced IBRS is enabled no STIPB required */ + /* If enhanced IBRS is enabled no STIBP required */ if (spectre_v2_enabled == SPECTRE_V2_IBRS_ENHANCED) return; /* - * If SMT is not possible or STIBP is not available clear the STIPB + * If SMT is not possible or STIBP is not available clear the STIBP * mode. */ if (!smt_possible || !boot_cpu_has(X86_FEATURE_STIBP)) diff --git a/arch/x86/kernel/process.h b/arch/x86/kernel/process.h index 898e97cf6629..320ab978fb1f 100644 --- a/arch/x86/kernel/process.h +++ b/arch/x86/kernel/process.h @@ -19,7 +19,7 @@ static inline void switch_to_extra(struct task_struct *prev, if (IS_ENABLED(CONFIG_SMP)) { /* * Avoid __switch_to_xtra() invocation when conditional - * STIPB is disabled and the only different bit is + * STIBP is disabled and the only different bit is * TIF_SPEC_IB. For CONFIG_SMP=n TIF_SPEC_IB is not * in the TIF_WORK_CTXSW masks. */ -- 2.25.1