Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4148440rwb; Tue, 16 Aug 2022 15:46:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR74IWqr137LrpggdlhI6OqL6wjOb/icH3vDRGqJ+VyJktwuiYZALSPy4DY30+f4O9kXBDDe X-Received: by 2002:a05:6a00:a82:b0:530:2f3c:ec99 with SMTP id b2-20020a056a000a8200b005302f3cec99mr23047285pfl.53.1660689962375; Tue, 16 Aug 2022 15:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660689962; cv=none; d=google.com; s=arc-20160816; b=yiEo2625+Aat5i/0EaZ9yW3r9oQUkDz7FmjtxLYsXQm59xkkpgice/P/s1/UPYJt4m /UYFKyQKgONlv/LBmnVwlbamJ0YiLCaAHm2YQDez4CkdrmTXidYQ1nt3etgk5hgAURNR MeUHUXquFXHGxcfSl9hmL6C+GSNPsrMTiJ7ewRa89m76ginvqx3bn+guJ1p96jzOnuV5 KgpcZxqvzq2KaP7x86Ri2WVx1fB9a4eUo8oKD+sZS8mVjyfbuOG8Kk7xMYV9GGgM/bpQ YbBPAE207EdvtJgc6nvtFHbngAwQWzQEFCaMx6JiC1G+flsceTp9khBWdj3rBuhFzk7c fh7w== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pSaojOZ+9Hjnulq9vPjIENJEZaIJBBjXkJ2BtVPxT0E=; b=WeehiuvMCwRSNaBBAgg9i2GChBLfNU6HQ1/sPjUBXMKyvro9Om7x6qxE59bGLDaKMy 622YuTDlzXo1XJcwbIJULTGu+ecuezDl6C0dw4eEwBsp5iYPgMvbSzqG0pYqgPbT8b/H dQGSnrbNtNLBZ/DV117f9DE5KAwbcyoUaikHsligez4JaDi0ckO+gmNro5620uHoTsr5 JiPJzdgRGV9e037x/m8sIducVhFlv4HqIAuleiducwPZkMXuh2G6boBOD2iEyYMFFLti yN3G/f7ShTpp0GB2X6iiv3Kh8RSwbi6jg9zTrXOz4YgjHnOql6KM/icXFBgFMhl7doX6 ynNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=n05bCBya; 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 h5-20020a17090ac38500b001f50b723b10si150572pjt.122.2022.08.16.15.45.51; Tue, 16 Aug 2022 15:46:02 -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=n05bCBya; 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 S237667AbiHPWez (ORCPT + 99 others); Tue, 16 Aug 2022 18:34:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233286AbiHPWex (ORCPT ); Tue, 16 Aug 2022 18:34:53 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F1CC8B983; Tue, 16 Aug 2022 15:34:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660689293; x=1692225293; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=6pfW2WXsMRsIUuCNg17XL4F8HxUNrXi8GfvszKCgQcE=; b=n05bCByahb2b7aiyRZHfALVoRqwJJHNOjfSmOc5AsrdhMcjB0+AG1Omp l2DdfUBxi9G0M2ilYaobiWD1vesSrp/yrhsSQdgRiR9ArWsuK03AUImtq hHZj5+hceJtU2/LPuzXsYCJhvyvOy1X4aYvTsis6LM5PnyGmMgEHbFsmp E+QfdyXOySwfjgWfhIttBWBpo92ugnDQ0DTRNJT2nfnYRtNg1vmH3o9Gy ElO5v1R6ANzj7t8fCdBwd08fMoksyb7MY3DzyOa3Kby3qApaJ9FkA50c0 GlNTO9dlbXfKQ9D7YBacS5lB6NBruJz7egtrLy2BIQ650yM8OyLc0br1u A==; X-IronPort-AV: E=McAfee;i="6400,9594,10441"; a="275398671" X-IronPort-AV: E=Sophos;i="5.93,242,1654585200"; d="scan'208";a="275398671" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2022 15:34:52 -0700 X-IronPort-AV: E=Sophos;i="5.93,242,1654585200"; d="scan'208";a="749480801" Received: from elgartsx-mobl1.amr.corp.intel.com (HELO desk) ([10.209.109.200]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2022 15:34:52 -0700 Date: Tue, 16 Aug 2022 15:34:50 -0700 From: Pawan Gupta To: Borislav Petkov Cc: Andrew Cooper , Peter Zijlstra , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Daniel Sneddon , Thomas Gleixner , "x86@kernel.org" , Josh Poimboeuf Subject: Re: [PATCH] x86/nospec: Unwreck the RSB stuffing Message-ID: <20220816223450.f2vpu2yobaao6jhg@desk> References: <20220809175513.345597655@linuxfoundation.org> <20220809175513.979067723@linuxfoundation.org> <82d09944-9118-e727-705d-da513eca0bf1@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,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, Aug 16, 2022 at 03:01:33PM +0200, Borislav Petkov wrote: > On Tue, Aug 16, 2022 at 12:52:58PM +0000, Andrew Cooper wrote: > > One minor point.  Stuff 32 slots. > > > > There are Intel parts out in the world with RSBs larger than 32 entries, > > and this loop does not fill the entire RSB on those. > > > > This is why the 32-entry stuffing loop is explicitly not supported on > > eIBRS hardware as a general mechanism. > > I'm guessing there will be an Intel patch forthcoming, making that > RSB_CLEAR_LOOPS more dynamic, based on the current model. This is being discussed internally, but likely Enhanced IBRS parts don't need RSB stuffing (except for the single entry stuffing for mitigating PBRSB).