Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp666105imw; Fri, 15 Jul 2022 10:30:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u1mIyKnFOTVny8hW9PN9fx3+a3smDxxBVFrezjm6wZ0KNiBoOhSLm1usgjXyhtmZaSB5DD X-Received: by 2002:a17:90b:4c0b:b0:1ef:f525:97ba with SMTP id na11-20020a17090b4c0b00b001eff52597bamr17278712pjb.44.1657906247270; Fri, 15 Jul 2022 10:30:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657906247; cv=none; d=google.com; s=arc-20160816; b=Np4z5y17U6Pz6/oNfsIb+AvjibdLSA7IoIedkjmuU+2masUURItung0QxSACvaxigs yPUjLKy7j28pBnuugzwCxusYij3boUEX5VFRMMfDyraoTxe2aoW054iqmwY8JJPWlmH/ mF0iel0uvtQwtX4uKwDNw4FQbKAKHFeGIMZ2d0TYznJEXXlmGtySFISzWJM2OZnAD3V4 MKI/uJRyi45fTlZMHr9v3Dsoumqv8SRIs4rZhmb5xPgly8h2O7URPDGQB0UARJlZigc0 jcwrfKqGCPeBkvSNuz621T5u89zBJVTan0Nuh2Xm/7Xy8VZhJk/5Pd2ECn1TSg+tLIhZ edtQ== 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=hDJH7AWFDLKdYunZdT+JRRqjMq4F1GJhRzXkJaYcFZM=; b=jXlTMA0CiNqNX4r4U25S6pvd3BM+zAZykCKpe4J2pdWgajP1QnArE2tLwftzO2lNyk VrI65u+jcM/9rgWoSYJtq+uZHz+Vdrj+govxDzWcw7lzcBXD9V5YY8lVfKuCrg4d9Fud Q8lTEi3/TRG4o5qXlwIH5ypsKBoayqssDFt40BjzDCUuQnn5R7xFBxew0fLiMZzeOVhv Cpgez4QkObIKGRt1BV1NcAj4e7jkX6aR+gUbFXouugecEWpSx8mUuhUlqVRNapYlG4K+ rqWNzcREtp7SvjIQlTqE8uAwC9x6+DJj331ts/nSdeztW2N5OOQquyHHiKKgnmcKj3rj l9tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Bykx2U1u; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k25-20020aa790d9000000b0052b13cffc96si5489573pfk.358.2022.07.15.10.30.30; Fri, 15 Jul 2022 10:30:47 -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=@intel.com header.s=Intel header.b=Bykx2U1u; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235729AbiGORVT (ORCPT + 99 others); Fri, 15 Jul 2022 13:21:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235688AbiGORVR (ORCPT ); Fri, 15 Jul 2022 13:21:17 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E2BD7C187 for ; Fri, 15 Jul 2022 10:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657905676; x=1689441676; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=hUJ/HOMYhff+1zyQR004AphFyjB6ihhUjjIgPU7Cmy8=; b=Bykx2U1uHF10w+0Ake/xDe7+NE64PxrkxPOHxiLrcTyLXXuSxJ+iQqhs VwFQmzUATeHKsr8y0eshLrcqxe5qc8BeDWGqErSpZXdZSXhDqnCGWApt/ h3bNqqWsDDkJKUvJP+giIIC2PSPLGsREhNHaKY6hmP2teGwIUsLskmanU Kr6jz6p+mew9ILUwE9q4g/e1tcFXSKT530OMjz98BqgZg0nKWgXVFxHJa Wu4N0qnEP81bfmcQnXF3aTbvwWMS61plwQORH4++8Wg6WXEErcS3oE2T4 fq3LDMSDR1u+PPia5ertNtX2n9cBS12CbE7A03GggSbHdmByphopjLkhZ A==; X-IronPort-AV: E=McAfee;i="6400,9594,10409"; a="349810574" X-IronPort-AV: E=Sophos;i="5.92,274,1650956400"; d="scan'208";a="349810574" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2022 10:21:15 -0700 X-IronPort-AV: E=Sophos;i="5.92,274,1650956400"; d="scan'208";a="600565028" Received: from kjhoig-mobl.amr.corp.intel.com (HELO desk) ([10.209.99.4]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2022 10:21:14 -0700 Date: Fri, 15 Jul 2022 10:21:13 -0700 From: Pawan Gupta To: Greg KH Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, Daniel Sneddon , antonio.gomez.iglesias@linux.intel.com, Josh Poimboeuf Subject: Re: [PATCH v2] x86/bugs: Warn when "ibrs" mitigation is selected on Enhanced IBRS parts Message-ID: <20220715172113.74t65hgxi2o32wv6@desk> References: <0456b35fb9ef957d9a9138e0913fb1a3fd445dff.1657747493.git.pawan.kumar.gupta@linux.intel.com> <2a5eaf54583c2bfe0edc4fea64006656256cca17.1657814857.git.pawan.kumar.gupta@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Fri, Jul 15, 2022 at 07:25:43AM +0200, Greg KH wrote: > On Thu, Jul 14, 2022 at 04:15:35PM -0700, Pawan Gupta wrote: > > IBRS mitigation for spectre_v2 forces write to MSR_IA32_SPEC_CTRL at > > every kernel entry/exit. On Enhanced IBRS parts setting > > MSR_IA32_SPEC_CTRL[IBRS] only once at boot is sufficient. MSR writes at > > every kernel entry/exit incur unnecessary performance loss. > > > > When Enhanced IBRS feature is present, print a warning about this > > unnecessary performance loss. > > > > Signed-off-by: Pawan Gupta > > --- > > v1->v2: Instead of changing the mitigation, print a warning about the > > perf loss. > > > > v1: https://lore.kernel.org/lkml/0456b35fb9ef957d9a9138e0913fb1a3fd445dff.1657747493.git.pawan.kumar.gupta@linux.intel.com/ > > > > arch/x86/kernel/cpu/bugs.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > This is not the correct way to submit patches for inclusion in the > stable kernel tree. Please read: > https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html > for how to do this properly. > > Sorry, I CCed stable@ by mistake. This version just adds a warning, it is not intended to be backported. Thanks, Pawan