Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp997518ybt; Fri, 19 Jun 2020 21:03:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj1wWb2p3Ev1SFHn+Fgl6IdiDMfwfhRzRdya5b8bnDjj7f0IT83kRTDvPxdWAMVIn7xNXD X-Received: by 2002:a17:906:74dc:: with SMTP id z28mr2196921ejl.402.1592625814759; Fri, 19 Jun 2020 21:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592625814; cv=none; d=google.com; s=arc-20160816; b=I7mpaQ1bvWsCB5IGa29uzU9GZ5UOcGEiKo2piG4m3GxspLhyhfY/urTqSuZAFDvPKx 7jqip+dhJaM8kAcso7YC/d1F2RocpQqZtPOpstXThJMcpPl68cvAQTEbUObnly5fPXaX moMk/XqzJb+G2JC2nBU/XBrUmDOo7+brQA3XzPaOpVvWQhe47H1ipn0q6Y6UdCOG/jHC FvheuuRS4A4I3iT9JwidyTNKZJmlom+wvcY4tVsch/jpPpZBeZVfPq8UKr6RBp1zOn2n jOswMvvmZHafqnHzSP+F07vXdrIZUQmgpoPNGUgIs5geWNQfm6ACbBW5sDjrPSIxEMhN hksA== 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=4BqrxlRRrsSzh46WGgLSopKaZu3VBY8mK8JuzaoT+9w=; b=luvE0zT2TfqSf6SBfCKxddaX8YHYQVdILVRiMM+d6YL4OoLrf4n9MlGPwItYd7An8W Y6Bu3b+7+dE7IFHRtnJmtKqRGvrHC+KkCCitIJ4WjFYnT1rCz0HZtQSggTm2HflqNq2N FsOJGv1PBssWBjSGSUWqlymCxCHHhtoYrWkrIXRbgJwUKgbuLw71bOzuTGiFhgy14Hrh WcOL0fdz9NfMtI2basuuP7XBWx1xWfXBX+gDd6/Fub8DozQxglnYoA5B7ugGHGQsIAcY n7Rdw9MMRYb6d0bS1aIeD5ewrA7OYMlLskRKPsmi2RwBQv88vPc/ROa58pwWatnXzWZT DuPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="UHw/5NOg"; 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 e5si5271049edk.409.2020.06.19.21.03.13; Fri, 19 Jun 2020 21:03:34 -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="UHw/5NOg"; 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 S2395340AbgFSQjf (ORCPT + 99 others); Fri, 19 Jun 2020 12:39:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:38214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387887AbgFSOq1 (ORCPT ); Fri, 19 Jun 2020 10:46:27 -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 3938221556; Fri, 19 Jun 2020 14:46:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592577987; bh=9t8nNr8DviJl2ioTT/69aMYI784JuhggJjQlH+cGemM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UHw/5NOgy+IMOuk+plT/mDr8lfIpgMAXwNssXBlOx9rVtb+Z/udYLwl+NkkLg7n/X YF8o7y+O1jfOCjZeBpMl+tqw0gByemCfzAE0DzSsr7tGAFz8x/hdTIJLRCCgz/z27y klcxJDdbsdbaGXWVJUS+VpTrwqxUFRsTaN71r7os= 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.14 039/190] x86/speculation: Change misspelled STIPB to STIBP Date: Fri, 19 Jun 2020 16:31:24 +0200 Message-Id: <20200619141635.535158976@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619141633.446429600@linuxfoundation.org> References: <20200619141633.446429600@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 1de9a3c404af..3c3406a36812 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -61,7 +61,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); @@ -750,12 +750,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