Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp540774rdb; Tue, 23 Jan 2024 07:17:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwhlomO/A3mJPwQaHcBMldgnfVmxt15fj3/e12A3czlljZmrTAoqosUvQLIT0cOJP0UuKn X-Received: by 2002:a05:6a20:bb13:b0:19a:4d93:83 with SMTP id fc19-20020a056a20bb1300b0019a4d930083mr2809005pzb.29.1706023069645; Tue, 23 Jan 2024 07:17:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706023069; cv=pass; d=google.com; s=arc-20160816; b=AIsd7gHYWg3F2IP3qk8AceEv/uhu6jTuiJ9jH89RNZmCvr3F9kf8uIE5pYdCdeVwVZ bj0PnhHfHKCW3HnYo1hPDpenP11XlinZB5w7FJ6Z4nBKWAj5+FZnWh6VznouhZfNmnVq 9AmQGKvr7q/76cEMu5km/O3r3iYWCEznCD64aRA7MSG/+hFrUuTpwlOaKSVaE2RDyjCp zYDkLK2A1GIHY2KIgOzAGiCMo56CuhsCiY2c4gFbNc60TdsQJHBl87hCnuSWT2H4zP3B P8XTrRTVkdWQLSBf4dOHlTF1mc/WYcIPT3VCeK6ARBomw/dt57sVX1QgCXI+s+ebL3ZM G8rg== 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; bh=v1Hr4uS3fFpYg2vOteF+nJHwgU9ofLyiq0K2GCPAZ3U=; fh=zi+nsNj4AGoFfh0xhmA0/WwFk6v0tN3AHRNdErw0yNs=; b=oe0VJrCqQ5V4BrbX/Q2ChVgYYJ0PgznmBDcHnoZ/aFVZ8dHEc92L+7Qw+o2QoFxjfI 0udPsj+0Ziad1B8nE60z6c950XG9UTekrKqaKI5klTHpOKP4sGLgghpGTbQHDnlWNBdq O/q+WJlFCttmVrnouitAxbWSRi2Wbr959005CzVTbjUHy06hOUEQ0X9S8wyG5mNgXaBp hCmmZw7T7umSy67BPv74D0XXTpfCsYvd+/pcaVtdbb1c4gC3YnaenI4mc1vvLXCujloJ wT94f8Bk4pTnb4RB7x4RDNWPV5+4kkgKmPNFzb03VOrFqDSeWN+4MOgliY3pGktNiDb3 7gxA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-35498-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35498-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s4-20020a625e04000000b006dbdbd9623dsi4174967pfb.82.2024.01.23.07.17.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:17:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35498-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-35498-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35498-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DA70628AD05 for ; Tue, 23 Jan 2024 15:05:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 324695FB83; Tue, 23 Jan 2024 15:05:54 +0000 (UTC) Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B2BC12E5F for ; Tue, 23 Jan 2024 15:05:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706022353; cv=none; b=LdnBI7lMpm6ptWElgJClPFCrk2jrkvt0vivlLaJlmWPwwXAncDOUMAobes01Sn2xLb41taOHvKmIPciEwk7xc9cL9mMJkwtpvlF2PptzvvUnnjFmTCCNjygsSAC8IgU9e1WE8NCXi+YG9WyroxUpgEIECTWLXEpM2vJD1okqbEI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706022353; c=relaxed/simple; bh=wvGlVsQRlMzMaGWrgeHCND3JeOnNmKmCHpOURqz56Kg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=amx5Bsclhfnq1w6vqu6LpOBCs6/y3T1k74auyXiqLfp3Cp+B8vBXoToXHyRAkVQv3M24slTpiBcLi9OrQyrYc6F1U8CWf5JWH70Iq1FiXM+q2PKxdqikDWZhvtfM7RAj9QmfjmHpekzW2znv6ic+b7Pg71Uz3oo/tMHR9Sb/ONE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-55a035669d5so5178834a12.2 for ; Tue, 23 Jan 2024 07:05:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706022350; x=1706627150; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=v1Hr4uS3fFpYg2vOteF+nJHwgU9ofLyiq0K2GCPAZ3U=; b=hU44VnsXVxmS4Bqi1e1FUjqh/aOky34lVadbG7vjvlMNH8hXkQoG1xHmDFBvrdpzVe AsfT4Cen2P1zHDqsoFJQ+ZgpoN57sgBCNKIq/fM1NO0yxXY8pD0mUtvKIdidjgq+a28X veNjs7X3pTkg/b+sA5y2R6kC9si43tKr4MqPU7FLLcxKrTWzb0Ks9RkFSuFEswpzuC+S O28OqjWTCznRKC8mMWJqV2IAG6DcCu3UVRbU2U+uZ8pBddY6K6W1k+pWvCLV74jZY+71 6C8p2xNeod1sm/cUSwCWrsyQ7AqESS+nd5mqKOrAMHWjWP9+b8kBHzG3bm4X+a3sX/OO //TQ== X-Gm-Message-State: AOJu0Yy9FBI2tmsJFtsQMNFpRZ/HSauSUID6vuUnut3UunSfss2fuz24 SYWQSEeVpt9A4DTUhMMgOFDzJJONXNJffwnnpRgX/rDkJyzujqwG X-Received: by 2002:a17:906:1958:b0:a30:84aa:c2f5 with SMTP id b24-20020a170906195800b00a3084aac2f5mr7615eje.56.1706022350059; Tue, 23 Jan 2024 07:05:50 -0800 (PST) Received: from gmail.com (fwdproxy-cln-027.fbsv.net. [2a03:2880:31ff:1b::face:b00c]) by smtp.gmail.com with ESMTPSA id t15-20020a17090605cf00b00a28aa4871c7sm14338053ejt.205.2024.01.23.07.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:05:49 -0800 (PST) Date: Tue, 23 Jan 2024 07:05:47 -0800 From: Breno Leitao To: Pawan Gupta 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: References: <20240118173213.2008115-1-leitao@debian.org> <20240118173213.2008115-3-leitao@debian.org> <20240122205821.m5dsyi4sc2ghoavd@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: <20240122205821.m5dsyi4sc2ghoavd@desk> On Mon, Jan 22, 2024 at 12:58:21PM -0800, Pawan Gupta wrote: > 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? I suppose it is the same for AMD, right? So, I suppose it should be something as: depends on (MITIGATION_SPECTRE_V2 && (CPU_SUP_INTEL || (CPU_SUP_AMD && MITIGATION_UNRET_ENTRY)) Is this better? Thanks!