Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp54057lql; Fri, 12 Apr 2024 03:38:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCURLDyrapZv8vitCYr862ccMBQ1S45YAxmRg/a7gIRDM8EAuUHa6uyS6/KDtPDkV4JN8/kfZxVb7AYdA2oR5wsyDs/YiT8BhzigaCinDA== X-Google-Smtp-Source: AGHT+IFanilT6kOsf8KJvogSp9lT/sIEjSso8mmV0YhKUVmQMczd7QdQyM/GmO3c+dtPKt2X+JwW X-Received: by 2002:a50:d553:0:b0:56e:2c34:cfec with SMTP id f19-20020a50d553000000b0056e2c34cfecmr1485197edj.7.1712918297992; Fri, 12 Apr 2024 03:38:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712918297; cv=pass; d=google.com; s=arc-20160816; b=Gltc7jAawoLgm9CxOu06oRL5fKsN6IK2akGp8Nnhi2XXv3oBDeRb9MwT8OLxrBjvl/ CwaqstdigoqB7RRRut+o1tuJLrY7n8SPBuMQRoU7QgLBD7xLrWqUMTXJAk4GntzwNluw tJdZDnpOrgNcpnOwCjpmtx225dRKGRSqzxMKET/sJe73ZoMhBxyp4rLtXAkKygu37uUN YIh4nhel9uiY/Ex0FE2XJho0UG1e/OkIW4mgaNetOLyk/SI8Y9HHyXOgLMv1i64U7l8d fXbayDj/rJaCEIuH7LrgtjTQEXBPhd8bcRQJrrhhfJfD5iy9DNALluYp3bH3ZaHwA8Qu ovPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=bnIiCKjCftRZpnlFhaFq5U7wmiuEAphZOZzi1SkjkxA=; fh=08nQqyDuk3BRXmctACImQpi8pmDOCqRUV3rjTlQC6aI=; b=Ul5L0kph/eYT45UlY9WLoYaQFvlA/hfkkA0Xzb12jfRqxWOcsiOyxdBMWN9TrrjQih foGztIq5DJuKW16Kt6Gn/Kwe2cpyHww6hX0ZYEz1oaPiJa5bMbjbZv9e5qw3/WcbNsef LY8WATWeDHYFcYY3pKJLvTnVZ4f1tVEaF40QF4Ps3tUofXnsbFS1wzxNiXqZqERleAoh s5I0zewD3xrORyOyJvRFPR0/fdZvS3pJhkZFwKnataZIuM7ZXib0G0a89vdeh4JxTsAH yig2m5cXeyWWePa3VqHkuYN04eiLOVmu6yP9bQgGQYYZVMxPoCVERQ3/4S8rj3X2qbmI hWMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@citrix.com header.s=google header.b=D8el4D5p; arc=pass (i=1 spf=pass spfdomain=cloud.com dkim=pass dkdomain=citrix.com dmarc=pass fromdomain=citrix.com); spf=pass (google.com: domain of linux-kernel+bounces-142505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=citrix.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 z9-20020a056402274900b0056bdc146261si1572431edd.148.2024.04.12.03.38.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 03:38:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142505-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=@citrix.com header.s=google header.b=D8el4D5p; arc=pass (i=1 spf=pass spfdomain=cloud.com dkim=pass dkdomain=citrix.com dmarc=pass fromdomain=citrix.com); spf=pass (google.com: domain of linux-kernel+bounces-142505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=citrix.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 90FEC1F21622 for ; Fri, 12 Apr 2024 10:38:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9923A55783; Fri, 12 Apr 2024 10:36:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="D8el4D5p" Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com [209.85.219.42]) (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 3BDE343AAB for ; Fri, 12 Apr 2024 10:36:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712918170; cv=none; b=KzDvB34x6y5B7DdcEgas4zhALGAmtumWlSI7tds9VKCpQh4DJPlMlrPrsonixug9qPLj5VMPDse6owHF/TBq27qjvhvjIwI/zK1d5ch4GVcSL/LDM0PlGzRgrdpqMkdxilukXbXo+7oUVrwFTiTnAm+CM4ZRcHQXXYX3AuhFXPY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712918170; c=relaxed/simple; bh=bnIiCKjCftRZpnlFhaFq5U7wmiuEAphZOZzi1SkjkxA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rU0bNm3bRbrpRrdIWvl7q2rxcZL13j+YTZdFIDFtZQk40gt5t6wp/LyFFe4/JY/6e9t1lZsipO6gveM6XVLczP9eI6LjDd4BGFzVE2Pltmue4DDAaNd41l31hwR7w5+a1GLGEvDgfM1rG8VYBEHepXoD+AeLhFkXzy2ySX4UyR8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=citrix.com; spf=pass smtp.mailfrom=cloud.com; dkim=pass (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b=D8el4D5p; arc=none smtp.client-ip=209.85.219.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=citrix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cloud.com Received: by mail-qv1-f42.google.com with SMTP id 6a1803df08f44-69943ef42b2so3998396d6.3 for ; Fri, 12 Apr 2024 03:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1712918168; x=1713522968; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=bnIiCKjCftRZpnlFhaFq5U7wmiuEAphZOZzi1SkjkxA=; b=D8el4D5pA7u/PT0O4llQjADUS1gryg0DOsfRTWvWP0CXLU9PFaZz99zdUmXya9oHLR CPVevA77G1W9ID1HRSrpbkMnqA8sv1gg3tbP57DMk3ADbKHtWzRsJ/zrLrenxgIuMtnu T+8xUwpMfRPffVx06tF374X9qLFunAdLGkFh4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712918168; x=1713522968; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bnIiCKjCftRZpnlFhaFq5U7wmiuEAphZOZzi1SkjkxA=; b=rI65D+T48PKJ/G2asI1A1GGH0MW5PxQ9UwUX4QTnaCAPhx9ujMEbmBJO06UwqEzy8V A6fKnr14xJHMkHSqwjRR/UVV5ZVaEdE++H1mySzm0gUlTRJm1MDki+IVtWIHZ0/QaSQ/ TTCEbM8kMuWlEFRHT8nWm9IB1UwNPiaiIIL8sLqw6oy+YRN6qCbVS3kPvTxEOg22StCl vAQiRjMymkDaQ0A0CF3JIEvf/j+0Ezboc8JC7NJL2gOj0WZfzwYMMIId/gqMQfqpzUxz wnJkGg/AeBQmlOWhr/h9zCEc7ncYrihoOJciJpKWG9gw0EEdBQh0hvm0QMcExosueIz3 g0zA== X-Forwarded-Encrypted: i=1; AJvYcCU8TfcHPWPCE32NCbws9dzJ9NNWjjeXSoszt1TjiO3klVnacL0HrrJdmtaU2D7yFZnfaWD6BZO7kiMXHcCKC9XpJqY8wLoaDYSJpbo+ X-Gm-Message-State: AOJu0YzdXv9JXJcfv/Kgzj9yyfsm6iX/5BGXzwzhQo/tJocmhdz0bAwj CHt5Z7fRIUJGLAMTAwQeXDFRV0O8XZ0ukGk1hH6zwQZqS1Mh1ILcENit39QdxbAjulF1q3L8WHq nrz4= X-Received: by 2002:a05:6214:4c01:b0:69b:a44:bb71 with SMTP id qh1-20020a0562144c0100b0069b0a44bb71mr1995249qvb.54.1712918168077; Fri, 12 Apr 2024 03:36:08 -0700 (PDT) Received: from [10.80.67.140] (default-46-102-197-194.interdsl.co.uk. [46.102.197.194]) by smtp.gmail.com with ESMTPSA id a10-20020a0ccdca000000b0069931ecc024sm2152386qvn.73.2024.04.12.03.36.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Apr 2024 03:36:07 -0700 (PDT) Message-ID: <0a718cd3-d0ff-48ab-8d16-d513d95563d3@citrix.com> Date: Fri, 12 Apr 2024 11:36:04 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 5/7] x86/bugs: Only harden syscalls when needed To: Josh Poimboeuf , Pawan Gupta Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds , Daniel Sneddon , Thomas Gleixner , Alexandre Chartre , Konrad Rzeszutek Wilk , Peter Zijlstra , Greg Kroah-Hartman , Sean Christopherson , Dave Hansen , Nikolay Borisov , KP Singh , Waiman Long , Borislav Petkov References: <97befd7c1e008797734dee05181c49056ff6de57.1712813475.git.jpoimboe@kernel.org> <20240412001522.3zp2mzked4ksglkl@desk> <20240412035740.ojgvlqahqlm2umsx@treble> <20240412041724.gx6jtx7tpz2c7gbe@treble> <20240412052055.wpr3zs5l4qjc62vu@treble> Content-Language: en-GB From: Andrew Cooper Autocrypt: addr=andrew.cooper3@citrix.com; keydata= xsFNBFLhNn8BEADVhE+Hb8i0GV6mihnnr/uiQQdPF8kUoFzCOPXkf7jQ5sLYeJa0cQi6Penp VtiFYznTairnVsN5J+ujSTIb+OlMSJUWV4opS7WVNnxHbFTPYZVQ3erv7NKc2iVizCRZ2Kxn srM1oPXWRic8BIAdYOKOloF2300SL/bIpeD+x7h3w9B/qez7nOin5NzkxgFoaUeIal12pXSR Q354FKFoy6Vh96gc4VRqte3jw8mPuJQpfws+Pb+swvSf/i1q1+1I4jsRQQh2m6OTADHIqg2E ofTYAEh7R5HfPx0EXoEDMdRjOeKn8+vvkAwhviWXTHlG3R1QkbE5M/oywnZ83udJmi+lxjJ5 YhQ5IzomvJ16H0Bq+TLyVLO/VRksp1VR9HxCzItLNCS8PdpYYz5TC204ViycobYU65WMpzWe LFAGn8jSS25XIpqv0Y9k87dLbctKKA14Ifw2kq5OIVu2FuX+3i446JOa2vpCI9GcjCzi3oHV e00bzYiHMIl0FICrNJU0Kjho8pdo0m2uxkn6SYEpogAy9pnatUlO+erL4LqFUO7GXSdBRbw5 gNt25XTLdSFuZtMxkY3tq8MFss5QnjhehCVPEpE6y9ZjI4XB8ad1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erSm4xaYegEFusyhbZrI0U9tJ B8WrhBLXDiYlyJT6zOV2yZFuW47VrLsjYnHwn27hmxTC/7tvG3euCklmkn9Sl9IAKFu29RSo d5bD8kMSCYsTqtTfT6W4A3qHGvIDta3ptLYpIAOD2sY3GYq2nf3Bbzx81wZK14JdDDHUX2Rs 6+ahAA== In-Reply-To: <20240412052055.wpr3zs5l4qjc62vu@treble> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/04/2024 6:20 am, Josh Poimboeuf wrote: > On Thu, Apr 11, 2024 at 09:17:27PM -0700, Josh Poimboeuf wrote: >> On Thu, Apr 11, 2024 at 08:57:42PM -0700, Josh Poimboeuf wrote: >>> For similar reasons I'm thinking we should also remove the non-eIBRS >>> version (SPECTRE_V2_LFENCE). >> Actually I guess that's still the default mitigation for AMD so I'll >> leave that one in. > Never mind, I forgot that got deprecated for AMD. And then became necessary on two Atoms, although I can't for the life of of me find Intel's footnote about this in the maze of speculation docs... ~Andrew