Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1115306lqb; Wed, 17 Apr 2024 23:51:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCULRb6VmMManOUkjLv5Ch1wAZT5CWmEHQtr3Ov9PfEr7+Si8iZqSfSi6cExS4fqn0SWcPpsTuhMeqAkHKbdQt3c+vTxefrILHE8RKyqcw== X-Google-Smtp-Source: AGHT+IFyC1QzRNYLfkPqRR2ABOmmKaSfTlYbBuKD0J5XHcqLFkQrYRHP/MARdIR8fKJ31zqbttbJ X-Received: by 2002:a05:6512:2384:b0:519:731b:7f87 with SMTP id c4-20020a056512238400b00519731b7f87mr566389lfv.35.1713423065425; Wed, 17 Apr 2024 23:51:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713423065; cv=pass; d=google.com; s=arc-20160816; b=urvEv4P7GmUptG4niNJL6NRjIhaZVvBJBhWE2L/Kv/veVwgvmvTgtyYv8p3gUV7pyE 0EvpfJxkDh2kXvR9tXD0BoRAC8eNpahrzVOqyFrzhQOAXZD8zF20cPAcBe0A4HfFG3pq 3V1aDc1Xo2Wc/p2Q4R1ElRLFuqTN2nuSqhj1wxbzCJ5mJ6pT+rtE9x93fsqqOITmPzsv +lNWan4OXdTsSc+mORUMjbwgBhuT3ki5aDSMLUKwcnGG/3uicwLt+mubMzm7h6HBZS1V o+JpSE/LgIH1E8dv+j93IHsEJ2BlpUjqAOgXEKPQ4uEEv4cK/0gtm+afTtPiQ88pPmh1 8ycw== 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=WaYWNrxAeIq3qm2grzE5tnanXShMVTdyKXEkKKhPw10=; fh=4BDVTfJbo8P5OG61S7WB6tlTrLd9jpKzYS6+JDGpTTw=; b=qlAIrnsXG/ugUXE6SKXVP6Z4u9np/DVf9xpiMRvjLhkbRvTYYKKnIcqWPhMziWmtqv aKV6ZwAZbWGqWMIkhf9GBGxk1vbF1pVwrZN1ffuextNITykQaGfDU9Yl4wrsKAGWStfk D/A9Jw7xaqiH9Ae48NtXmosEiTNiWB5JxvRnG2Wziy6aEJL/Zm/sbv5HENJVbRmoX6fQ DEcVhvHeZLmb+H7lp1c5OUvj6mejzb/+a/QFt/UGbTB1XqXlCaNVbWUVaM6qXylPGQ++ 6tVqwBkRpC8/IFwgTfmttvaw/ecnmM2D+eUh4+LYk/UqIpxDE0M0DJK9wN6/adfS/Kex aNTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="Q/WYvIij"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-149619-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149619-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bi10-20020a170906a24a00b00a5213f8fc14si501152ejb.69.2024.04.17.23.51.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 23:51:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149619-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=@infradead.org header.s=bombadil.20210309 header.b="Q/WYvIij"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-149619-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149619-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 259951F21B35 for ; Thu, 18 Apr 2024 06:51:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74E772D057; Thu, 18 Apr 2024 06:50:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Q/WYvIij" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 3A05E29A1 for ; Thu, 18 Apr 2024 06:50:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713423058; cv=none; b=R5ex1+HnnG1rkR+OgHtI0PZ1u+rDsYGkiLGMkf5K/NVwDgvGKHpfG2U+0cN/AR7P9ttxdvvX+qDN+NtG8t167mO7C9hYK38CYQRYYTfcR4vd4x+tZR/J/2RjjfItlQWc8CO0YWrgZ+cPLVECYtONHNdlJyu8mTyM+uPr9Tv4VFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713423058; c=relaxed/simple; bh=WaYWNrxAeIq3qm2grzE5tnanXShMVTdyKXEkKKhPw10=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bes5iMpv/8eGKSRNqL+OrVU+LwUgzExUYXerVw8294CCCXB/8yfLruWGFzsdaZgav3CP/CiEcJYE/xMcVH+tJxAHT6YsaJd2I3lssrB2q2GXirqHz32ubAs+J/UHmVngaqrPEjl9B3u63cb18TbJFmz2vSryu/a4yao8Pujzb3I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=Q/WYvIij; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=WaYWNrxAeIq3qm2grzE5tnanXShMVTdyKXEkKKhPw10=; b=Q/WYvIij6klQ9NVt6qf8y9T6r9 EJlUweKDuguJCdtSmulpV6aybwqEQvG/RCNNr0mluynz8arRxX3LOEZaAjHnyALc1mTkWUxeVEZxS 0kRTuCGmOPlOUFrIU1D+lP6WElaukeqYmxMjF9DpAmJCskXZhbdK9uA+dhqWy0hKP3Bx4v/QB7s9b fxThAlYH8/Oa0tRPtdyYE91fDnRbkPPWSvOyQ43+QlrC0lfvLGelfdNoZFMElo42sPcUFdExcfIUZ 70BlBvqG5z+5SMcTXmFG4vCGuA+9x17LGlzln7371TDbSn7X1hwMk3odyZE9DUjvf3G8Ub/C9Ifth Squll11w==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxLbj-00000001BIg-0Wsv; Thu, 18 Apr 2024 06:50:55 +0000 Date: Wed, 17 Apr 2024 23:50:55 -0700 From: Christoph Hellwig To: Josh Poimboeuf Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds , Daniel Sneddon , Pawan Gupta , Thomas Gleixner , Alexandre Chartre , Konrad Rzeszutek Wilk , Peter Zijlstra , Greg Kroah-Hartman , Sean Christopherson , Andrew Cooper , Dave Hansen , Nikolay Borisov , KP Singh , Waiman Long , Borislav Petkov , Ingo Molnar Subject: Re: [PATCH v3] x86/bugs: Only harden syscalls when needed Message-ID: References: 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: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Tue, Apr 16, 2024 at 04:02:21PM -0700, Josh Poimboeuf wrote: > Syscall hardening (i.e., converting the syscall indirect branch to a > series of direct branches) may cause performance regressions in certain > scenarios. Maybe spell out the scenarios, as this just sounds like hand waiving right now..