Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2754603rdb; Mon, 12 Feb 2024 16:02:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUsZxOZW8hwaAHjjNQKWLvys3bo332CX8YPaTx7kkGTT/it4n7PzWbvAF7EXzyJ4gTVVqUaGu8L03GK37xEppLLqFNKSmyRobhIEA4fLg== X-Google-Smtp-Source: AGHT+IFJQNCHhLU2QCNEZn2oHqFTYbABqG87tXiuniD0STqVnaFv5n+Y1UkSBUlXmKjBDpI7OFaJ X-Received: by 2002:a05:6512:6d5:b0:511:5026:abac with SMTP id u21-20020a05651206d500b005115026abacmr6436928lff.52.1707782539143; Mon, 12 Feb 2024 16:02:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707782539; cv=pass; d=google.com; s=arc-20160816; b=QeO4szVcprxA0My4Z+8t+NWoMBUVD+/4hTonWMQuycF/E8QGIPPlh5a+4tA9+UUxDy yPrlO0wKpOrl8m2M/KW7ivnmmFvuI0udi6oyTQssYk6JRIWQINhbxCcM5LnHLblZZEig zx4B/wZ40L5neTRLzcHYsEMM+TohWhgoV4voaiZZWZmQScFCVO/8H0slT7B1WxektDJ0 /1rSqFs6YzygQbRcZ9CeNMRhKHTUHYNVQ06AU+HnWcM5Y84WmKcobt7YCNMcTWC0abu0 yMLM3DD4aykz1XkTIH14uT4Hv4NUEuDEj5xXOeOO39ufebvH29KBgbNqtXAjQ9E1UjSe VVLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=v8QGzFHpPl2nn5nOea73mvjruwHEBs6hDrxLexAB54Q=; fh=xcQs5ErJPfZ5vuLq/VAHPI8vVLSqIWhYhJ4568RghEI=; b=LX96Lqhz/X9M4dcM3B9HRSzj/o4EqP8w7wnHL1KNDgeCKUUmoJelH8UkUiduYadEfK YhvE6L7iNJL4nWRqOFeJFmLutbcsrSm+EJ5CUmev40GJ0tfE3n7ihSNmhtmYKHpDsfbh zrFFsMwbaaXMeLXVpCz3OZQMR9WpXRKdwlNNqvZVCn5V4iv4d6CGr0nccmIahOMMzQtl a+ALwa9D2wSiUIQD8XbsvovO47O2DlDqAn5TU9y2bze5Zu4G9N0EXkOAVlcFGli4liJi BL1vqbYvf6HXfW9a912ieKGxxcB57cMJvkCVyumId+pKFmwD/DokCTK2NI8e/3cSLiUo mzBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Gd4M4ax6; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-62557-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCVk1GqBhRnMwf9FkmeCj6febgHEFwyKCKaQdTwr4HRbcAIip7QLKgoDPaOImW42HId2vAXxlJbt6wICgCZvfM5tPrHAcE9Qwwj+AvitFw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lu18-20020a170906fad200b00a3c091e2f7esi647445ejb.562.2024.02.12.16.02.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 16:02:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62557-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Gd4M4ax6; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-62557-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DA5FD1F238AA for ; Tue, 13 Feb 2024 00:02:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A8FE621; Tue, 13 Feb 2024 00:02:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Gd4M4ax6" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02CF417E for ; Tue, 13 Feb 2024 00:02:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707782530; cv=none; b=VChmr/tCTL9RQC8vMIuPl+XGqsA9wE8zte96tONb9JXTWfC3+Q0+So0vUMeKu868YOxBvI9w9WVFFc+SIcF+el8QjFT5MnkT8b/eBNqFPPO181woqDWJeCIvuNSkCWhYwf/K6aiHsGDjgS765svWuJeBU9g3yh/WprGh+rq9DUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707782530; c=relaxed/simple; bh=L9LcqahDRz0VRwbvbqgcXymgClOX4tSh6GkWiJOqMJs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E41EPeNr+8TiUAwWSPifQp8C72EIy2g6Yws30A3IV6bte6crQoDz+GSyacgQyd0L5p6o/LZb0tv5f3q+FWYBBXIrWATpmviWJQ372UKxkW7rpxQBFF6grfANphICuY4TLdnunjn0q9Nq3k9FqDYtzNO4HRDcRJ9iWzWN0Ddheos= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Gd4M4ax6; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707782528; x=1739318528; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=L9LcqahDRz0VRwbvbqgcXymgClOX4tSh6GkWiJOqMJs=; b=Gd4M4ax6ip3AQ1/lF8w/OIQfkYytI1VPp2xPR0x5NKx42hpH1qXzSHlQ yOIsAymWyLwGCmt95MJxLRCoTtfbF61diEHMPADS/YCqgcr3okRxTuIvO 9IOP/592Gtu5feiesmpFgH5347/V2ZAHf2NgCcJb+jhbXb/mGbPN7mJ8Y pdPO3L/1WelkFRvjLZ9u+pUlK9wDyUl3vA5B7EE5Zsqww0dAMZ/pACyfz KadEsOS3C/BpHLp8ZzOL/gBqzmybMq1PsWPP0oWiBtpLRCisxkN3jCfSQ FVGauxWUQw1VK0hN9YtwSlWGxY0qcciV32zCGNM51B5e27Ixv499L2GkR w==; X-IronPort-AV: E=McAfee;i="6600,9927,10982"; a="1658248" X-IronPort-AV: E=Sophos;i="6.06,155,1705392000"; d="scan'208";a="1658248" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2024 16:02:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,155,1705392000"; d="scan'208";a="33528040" Received: from mpai-mobl1.amr.corp.intel.com (HELO desk) ([10.209.55.176]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2024 16:02:07 -0800 Date: Mon, 12 Feb 2024 16:02:06 -0800 From: Pawan Gupta To: Josh Poimboeuf Cc: Thomas Gleixner , Borislav Petkov , Peter Zijlstra , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Daniel Sneddon , antonio.gomez.iglesias@linux.intel.com, alyssa.milburn@linux.intel.com, andrew.cooper3@citrix.com, linux-kernel@vger.kernel.org, Alyssa Milburn Subject: Re: [PATCH] x86/bugs: Default retbleed to =stuff when retpoline is auto enabled Message-ID: <20240213000206.ctuf4hrcplwg5him@desk> References: <20240208-retbleed-auto-stuff-v1-1-6f12e513868f@linux.intel.com> <20240209185625.hca6lts6dv4cd3fu@treble> <20240209203346.gwbfyx3huiaozg4s@desk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240209203346.gwbfyx3huiaozg4s@desk> On Fri, Feb 09, 2024 at 12:33:46PM -0800, Pawan Gupta wrote: > > And what's the point of checking spectre_v2= anyway? Shouldn't retbleed > > be mitigated by default, independently of whatever the user may have > > specified for Spectre v2? > > @Borislav, what do you think about this approach? Looks like there is no objection. I will send the next version with retbleed mitigation enabled by default.