Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1656428pxb; Wed, 30 Mar 2022 07:51:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+hoZvRHOjvrwNiB4EndT108+wyycAYTZ3W0GMkqfwKlD7cKBpbR5Xo9Ek0kUhwZMmMOX1 X-Received: by 2002:a05:6402:27d2:b0:419:1a3d:442b with SMTP id c18-20020a05640227d200b004191a3d442bmr10748773ede.409.1648651890930; Wed, 30 Mar 2022 07:51:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648651890; cv=none; d=google.com; s=arc-20160816; b=ELG3oAick6KjZYJT207mnLaKE2Ap8gjxKHpP0rW9HhmgG7UeyzrPZGrQ7tS8QoNUgM fYQM7lWTGzpdNpi58griqpbN9ZfJs1w+M37csFxhGqSrHKlVotQ5FyV8zfXaNumODBMz n/RKE4SfDfnDXkYGLsDjzPIaa4nTsc1HQezXugeHPEYk0jGRq3WF/knsz+YpOwihxGgP IoOXJJs0Bn0gsqMAt0NCVac8B+bbBLki2wpCU4cPSAX5Gcn1/Jiqt4HJ/kVzKswYv1NO 29nNmjX73U9DZQfeQmh3Odeieeugz1N1O1kfqic8VSrogLo1VMKlhYYdlifBEx4vCyyN LBzg== 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=ZC/fL+Y+Bp70rLmYCiAHvyOWij4/NASxsc+T61uPim4=; b=A47Y9+I4LFHPqNj90k33XtMhpnVFkZzT+bubAnvIrvEVUje2+mPy2rfApletmbVgpP 4jDMnM/cpC8gQp/AGJCx4Y31zUHjRaFy9cuqfMWwTclkx9R+LsFDxzKqWnivgdvPnMJD k7o58wLp5Ku8LcBDJYAMQ9NbigGK05RHZ0JHyihLOxCTdPor4FvBCVuNWyY686R9iOWo rNrmensXCGqWlbiacbkYW2ve6mETOcnWT0d/kMfspHT4CqZb1rts4iMNrP+gWaWZbdIu 7yLV7jJUbUWpJGQUzzyIJxQ20IhHRNhPnNPeQfqmeI6oLXcMtMAVF2BJ1OqKTL0HfcKt zd2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=B494mchk; 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 bi15-20020a170906a24f00b006df76385b7dsi21821054ejb.29.2022.03.30.07.51.05; Wed, 30 Mar 2022 07:51:30 -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=B494mchk; 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 S242976AbiC3F3U (ORCPT + 99 others); Wed, 30 Mar 2022 01:29:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236131AbiC3F3R (ORCPT ); Wed, 30 Mar 2022 01:29:17 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CF161B2C67; Tue, 29 Mar 2022 22:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648618053; x=1680154053; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sjK0Kgwyd9ij8Ko4lu7GzQVOqQuqzUpIKUJP3zs+o/k=; b=B494mchkyIfytYXCc7VAq01Itb5ZqTXiu1Be8BhYGcfPercvP6POEHMI 708Od6GOMeasEZLIR7NgBMwGLqokLjhh/mBAD3rzz3vHKvVRZ/fJ+mAUN YpjL9Dbo+GkVC7Objjt5+zTcd+G1EsQGDZ8qvNT8jo/DnWbsHE5lJXIvY CHoa/XYqNRpadyhgiw7VgNi+9r2jnJC8gg/czeJJ3YGBPuuOAX49twfQm l8FZaONuGb5UkPTE6bQeJkJ4smsQn1XdqWyk+B8Gpy7FHl+x2RTBnqHb7 v9zg+c/KShqXSt/0abd6S1nsTh83A2MpeYz+yfCKE1VMhc2UtiS/UGTs6 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10301"; a="239379515" X-IronPort-AV: E=Sophos;i="5.90,221,1643702400"; d="scan'208";a="239379515" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2022 22:27:33 -0700 X-IronPort-AV: E=Sophos;i="5.90,221,1643702400"; d="scan'208";a="618398597" Received: from jahay1-mobl1.amr.corp.intel.com (HELO guptapa-desk) ([10.209.124.134]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2022 22:27:32 -0700 Date: Tue, 29 Mar 2022 22:27:30 -0700 From: Pawan Gupta To: Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Andi Kleen , Tony Luck , linux-kernel@vger.kernel.org, antonio.gomez.iglesias@linux.intel.com, neelima.krishnan@intel.com, stable@vger.kernel.org, Andrew Cooper , Josh Poimboeuf Subject: Re: [PATCH v2 2/2] x86/tsx: Disable TSX development mode at boot Message-ID: <20220330052730.odzigmf4dkqkqfhk@guptapa-desk> References: <347bd844da3a333a9793c6687d4e4eb3b2419a3e.1646943780.git.pawan.kumar.gupta@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,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 29, 2022 at 06:24:03PM +0200, Borislav Petkov wrote: >On Thu, Mar 10, 2022 at 02:02:09PM -0800, Pawan Gupta wrote: >> A microcode update on some Intel processors causes all TSX transactions >> to always abort by default [*]. Microcode also added functionality to >> re-enable TSX for development purpose. With this microcode loaded, if >> tsx=on was passed on the cmdline, and TSX development mode was already >> enabled before the kernel boot, it may make the system vulnerable to TSX >> Asynchronous Abort (TAA). >> >> To be on safer side, unconditionally disable TSX development mode at >> boot. If needed, a user can enable it using msr-tools. >> >> [*] Intel Transactional Synchronization Extension (Intel TSX) Disable Update for Selected Processors >> https://cdrdv2.intel.com/v1/dl/getContent/643557 >> >> Suggested-by: Andrew Cooper >> Suggested-by: Borislav Petkov >> Signed-off-by: Pawan Gupta >> Cc: >> --- >> arch/x86/include/asm/msr-index.h | 4 +-- >> arch/x86/kernel/cpu/cpu.h | 1 + >> arch/x86/kernel/cpu/intel.c | 4 +++ >> arch/x86/kernel/cpu/tsx.c | 34 ++++++++++++++++++++++++++ >> tools/arch/x86/include/asm/msr-index.h | 4 +-- >> 5 files changed, 43 insertions(+), 4 deletions(-) > >Does this a lot more encapsulated version work too? Neelima is testing this patch, she will share the results tomorrow. Thanks, Pawan