Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp90192rdb; Mon, 22 Jan 2024 12:58:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXq2qUyDXO0QWdET90acQ9JPlYhv/N1qJ4K1gNYnqlcrJKD6yplaInoig5XcDm14pc1E0p X-Received: by 2002:a05:6512:1096:b0:50e:dc80:46fa with SMTP id j22-20020a056512109600b0050edc8046famr1518815lfg.101.1705957132675; Mon, 22 Jan 2024 12:58:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705957132; cv=pass; d=google.com; s=arc-20160816; b=dDFg/h4qa2JbvbKqSmpwl7oVD+WxRAPmfhXYqFVYfodhKBAq03Psi/dX+5EVAR87QM Wy+tCiIv8yooXj+hIRi2d1X1CyRrQc5QJNfq+fL/Lw2XAb6IhtjtAmODDc6CB1ARrN0P +pd8ofzj0gajlRo3j7gsVEf8ckB/+UDHcaLfqZz8mt+l/qUF1b846mpd0JLM3lShQ8+o 6dHap5PkhyZ17jVosAE+jIG/k+lns+aB3Ae+zJ//lxQ+ZhbMY7tULgGxhS7BiN1j7FwA gybyOBpD9Xc20TVytw4lv84nVHgb1MfnbQ0xaX7vPYOM5RqIQriyyFHKHilp+IzAmiAz 6Cdg== 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=uU3lQ381wkfQffkLJ3ILuBq2Fi2Ci2rM4sgAdjQDiVo=; fh=7guyv4NcmkCqU+xflV4V4VCTIXr/hfm8K/KXNy4164E=; b=kSrfQktg4KbobD0aOqyBqw1+8ClAV6OPcCdIxW/6dcm7Sf7URovYqNgxBO75uxn3fG uX3Lk5Ytdj1YSs4gcl5k8P7HgO1hECBxw2frto+fEtT4u6hKgSzpny12fPJYGVBFi1gn p2475Bjk9cKiZEC1aDOv1Ojh4B6sfOxwRUrcWF1y1BDdQeXuyr+/fNbN3tqovwdqvR+I Wc/FdY+AESzqTTofG+bNhVq5LC93hSNToHtPrXsaBA5O/4dcXz8hZMw5uvuP26qjOE/A jpNPQrttQhe/Wz+oGi3AUrYxfRiwUTBVjk9D5WJVat77T9UhT7tvw2SBMUAnbyqm43N1 tVkQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QhL7SsUR; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-34161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id pw6-20020a17090720a600b00a236e119480si11009732ejb.644.2024.01.22.12.58.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 12:58:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QhL7SsUR; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-34161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34161-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 2DA5A1F27F33 for ; Mon, 22 Jan 2024 20:58:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 750DE47F44; Mon, 22 Jan 2024 20:58:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QhL7SsUR" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 034C72CA8 for ; Mon, 22 Jan 2024 20:58:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705957123; cv=none; b=k4eBVWC4Xt52Ng7YrIvRbLD77aQTWnizvreZf/g8i/1xhoAz9hNKYSjXQ2U2Yic8vD7ZlZHfg5nngMvYhEK5AJsOtWd//wJ0bMMCR+z2DKIAfRF6H8qvgcBb4/Q3xJbjbHtokzd+rY7E1xpCLrxbAuLywSWz6VBkUth9ZJjuaEc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705957123; c=relaxed/simple; bh=R9UEuJp8ppdupIv3IX2iBOopSRv/ljd+c4NPmx/9vbE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UCB44YB6R0sf/q6a+N4PelRqEM7CblhvFpEu5kltkJm2mEPvAYwWVtx779mZNJN5qcMw+4+f4R6MdnvVFbbhvC57N/jrMdHRg9nUW0+C5rCBxSgNu2tGQ6DUzSIiFkHjNMns2WCs7BWEGCaA9qcOkOT4MeficHFAY5zPAZnGSBQ= 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=QhL7SsUR; arc=none smtp.client-ip=192.198.163.7 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=1705957122; x=1737493122; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=R9UEuJp8ppdupIv3IX2iBOopSRv/ljd+c4NPmx/9vbE=; b=QhL7SsURWbSstoQy5zHCfhQYe1cN5OV2LPRrBG2r1Co4HwE4cqLq6tU1 dNzmtOup3HHa4P3sOLk7Ad43kgUpmpEOs8kaOwjVEkS7H0lyYAnGHszwZ 5KCby6axpR/gfMZdHdHsMdRnMM7MS0NosYkp5yppaxIBtl2bnpB2w2DMb hHNOx6byJKE1XqDWArO81blZ43/ChxGShuyi8it+N7tOpzTfhT+UOy5F2 Ktu3yv/eQte6Od0Pa3xV79pHoWHYQLHnnr/p8qnA1WzFo14pgDIz7EEMn M1oqqDbWg49iqExB0HnU7WnaMuotBmMRGoKTauXwMvmrE0M2mUvr2TZnl A==; X-IronPort-AV: E=McAfee;i="6600,9927,10961"; a="22802474" X-IronPort-AV: E=Sophos;i="6.05,212,1701158400"; d="scan'208";a="22802474" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 12:58:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10961"; a="1117002086" X-IronPort-AV: E=Sophos;i="6.05,212,1701158400"; d="scan'208";a="1117002086" Received: from thalethi-mobl2.amr.corp.intel.com (HELO desk) ([10.209.98.31]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 12:58:38 -0800 Date: Mon, 22 Jan 2024 12:58:21 -0800 From: Pawan Gupta To: Breno Leitao Cc: mingo@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Josh Poimboeuf , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] x86/bugs: Add a separate config for missing mitigation Message-ID: <20240122205821.m5dsyi4sc2ghoavd@desk> References: <20240118173213.2008115-1-leitao@debian.org> <20240118173213.2008115-3-leitao@debian.org> 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: <20240118173213.2008115-3-leitao@debian.org> On Thu, Jan 18, 2024 at 09:32:12AM -0800, Breno Leitao wrote: > +config MITIGATION_RETBLEED > + bool "Mitigate RETBleed hardware bug" > + depends on CPU_SUP_INTEL || (CPU_SUP_AMD && MITIGATION_UNRET_ENTRY) Atleast on Intel CPUs, Retbleed mitigation is meaningless without spectre-v2 being mitigated, shouldn't this depend on MITIGATION_SPECTRE_V2?