Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp685765lqp; Wed, 12 Jun 2024 13:04:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+HtOX3ZU01wma22XnyAMxlT4yRG3BY9mkZiLuJ44VypVMfq/fpvi+meRAIYsrs8USXBAsHkpi3jY/gSI9nYUgm7itF9jIh/O5YfmFIA== X-Google-Smtp-Source: AGHT+IGZlKU7uYt+vOrCAns3E0bMWbwxpCOJ0Lo0XOPE1QezSS9QZwcJY/ajP2iRgyXZ5ETwkFyj X-Received: by 2002:a05:6a20:244f:b0:1a7:bb6d:6589 with SMTP id adf61e73a8af0-1b8a9bd2ab1mr3609387637.29.1718222682109; Wed, 12 Jun 2024 13:04:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718222682; cv=pass; d=google.com; s=arc-20160816; b=y+p1Dp6sqCkpf4AOwpmJsHNiIGYpN6T+UN6hAZuICLSPRoKf1z5a1gwSEw1lgstyl8 beeDSuGsc4H5CJk7S+ss3GeF6ytZlDVDTZ2nvatenLMSPD6MzJ+/4H8UiqIwRcEA2hvM SHyQAHMTkqDbmfuxpUrXIXHRqD+sGtZzFFNnMDlH9ZpzvH2PimMrI97d89GJ1W0zpFkb t87AzAs510AstXhcIFZXz9UPpGVx71hPiXFfklsx31u5ZPivq2NM0z2fuSWMFzxKQbRA 7LKa9sa3MoCOzPRZjRKUCKbeCtLAV/g+HvG+bQpOlz16mAOVlJIhjjxfvHdYZz/L2dox j4Eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=jI1wFJ2/rQkEuEG+RRwVArfSwVy/ehph3H3jTP2hkeg=; fh=WGL7fKS3gLr5ln3rUBwyw/1bU/hSwJP3dqwT4vcvi/k=; b=vtzIA40d0fCFdUYSqdCOKcOQ8LMMSBRAxemDGfDRr42N8sOGKVjCs/FFyeDnl1BWPi YT08dT0NHbQjxzx+ZegpTyQ8k4ej6TuwEgEi3x2duR5Zb0r/227gesd/MMuwfdrvPAjO mmJ4MDP/rpSDwg1/D7erGmofSLnZlIP84RuwKlb0ASztCsyAbVhy5pg6ejaLbuoDFDVV c2PqtVz7mHyEbmzsbysRhkHBSZ7QjNOJML7n0J4nINDfFuvUJJ1Am8CLLzTrfiqUN5IV GuEZD49PTnYjK2f/VdZL9UiXIMYiPlsNFk7sGOMW/mDqa1ZmzBmnIWClSHQctkXTkz47 /Qog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=SHemm3eN; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-212188-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212188-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 98e67ed59e1d1-2c4a762164esi2182012a91.94.2024.06.12.13.04.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 13:04:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212188-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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=SHemm3eN; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-212188-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212188-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 771D028606B for ; Wed, 12 Jun 2024 20:03:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4E3284A49; Wed, 12 Jun 2024 20:03:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="SHemm3eN" Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (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 6677C5025E for ; Wed, 12 Jun 2024 20:03:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718222588; cv=none; b=Iiz5uecfekebspL657bJvtCsYL0xRlumepXzh5wGrlZWo6FTLKeBQveGYSRJGtOJahgdThGH9f4QO2Mni1epxPbmZcGxzyZnWzK61ggaDXjuv8wcPeyVoI9R1BGEMIuNF5mxWeR9NRbnAp2JE91lwjjMIawI6lSAH+/7SS3zu14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718222588; c=relaxed/simple; bh=w/o2R21tISON7AeW7xqO04EQQBhuvCqb/XqvhfIneTQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ndpiKF1boMUTTrdXeZtn7VC+DQH0WqH4uUBQHyabHD0C6dTcjqfW8iVJRfe3Qj2yAhMo23Vc2Uz7tCBqa+E5sJS90XH8+dHbt4k5ppVnSMRAm60IA/hh0+6V2hA1zHFgsgOQ5Vikzv2dMgZ+Z49r4q3Q8zp/OZEH18J5y9fV6rs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=SHemm3eN; arc=none smtp.client-ip=209.85.208.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2eabd22d441so2695081fa.2 for ; Wed, 12 Jun 2024 13:03:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1718222584; x=1718827384; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jI1wFJ2/rQkEuEG+RRwVArfSwVy/ehph3H3jTP2hkeg=; b=SHemm3eN+IlgZtN20vEsTB4EoqcU0mh7ATBf52hshyVHBtPA9XpkEHlxb0AYAKdq56 AwuimggQMRsXPY/OgIR1NvJKuYsWm5pWx9Ex/VzWJU+y4g4ZGPpDIzDlGpkF4vXOB8Mv o2wpIa+scj3mwFKwQ+85tjTpKPFB4j2p8R9+s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718222584; x=1718827384; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jI1wFJ2/rQkEuEG+RRwVArfSwVy/ehph3H3jTP2hkeg=; b=KN65vJmV4RgPUcMW96y8PPJkvShccE7Jvl6ZH152fqdgw2xqPMlLqcoAfxwV9bLD7Y yRQmzHjwk6dOnSwR/szb6WmUj0kNl3pnNADBnAD+Bw5t5w691cdy0tRZmTj8cgN48xJy RtP4wTKgfYVWSGQG6IuAWwoofcR9uS+bzlOsvw8diqzPB1kmMsFsTmQyKGKwk34RchXs zaftWaYcmCAzpiZK+jCwluv+8Xmxn62/FfKjqdMHjoxGHNCbT45Gfh0IwR6OJ1S0LKoj ANCAp1E3PhnhjkTWQVHznz0t06Cgxdrwma/G6UeBbamWiGIbji/1qx5vqh8p2KJV9JQE kM8w== X-Forwarded-Encrypted: i=1; AJvYcCX6xQSQEV952/vL94wg+jourulv7Xe2Kkq6fnVmVLu57iqlG1Ijhmojp/8PynxUe6leBKyl1inyH0EfkSFXkjny1GIHNh4/LqJbiuT/ X-Gm-Message-State: AOJu0Yy/Jlg1b9CneMC+Ht0EO8HGtZJ+aDq7iSe2NsryWz8uSMEkQZJ+ M54bIXc5yh9K73da87kyBHN2Z20oildO+R9ZbRi+ZcmPjvViAN0cF+6gm3+NplJeDuK3edlU37s oRz+TMA== X-Received: by 2002:a2e:9b19:0:b0:2ea:e2d2:6231 with SMTP id 38308e7fff4ca-2ebfca34160mr23102061fa.33.1718222584514; Wed, 12 Jun 2024 13:03:04 -0700 (PDT) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com. [209.85.167.49]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ebff097931sm2861031fa.56.2024.06.12.13.03.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jun 2024 13:03:02 -0700 (PDT) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-52bc29c79fdso413555e87.1 for ; Wed, 12 Jun 2024 13:03:02 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWw5EC7Jci2pgTx88f8o2fq/cWY7ae+8UzkrflvJq1InrqoTrsH1rBXJ1OwQqmL4v7OWTD+oRjruN2zU22qcaPl12nxipn9fb7gd9Cg X-Received: by 2002:a05:6512:3f10:b0:52c:8a11:cb4a with SMTP id 2adb3069b0e04-52c9a4033b1mr2648787e87.46.1718222582015; Wed, 12 Jun 2024 13:03:02 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240610204821.230388-1-torvalds@linux-foundation.org> In-Reply-To: From: Linus Torvalds Date: Wed, 12 Jun 2024 13:02:45 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/7] arm64 / x86-64: low-level code generation issues To: Mark Rutland Cc: Peter Anvin , Ingo Molnar , Borislav Petkov , Thomas Gleixner , Rasmus Villemoes , Josh Poimboeuf , Catalin Marinas , Will Deacon , Linux Kernel Mailing List , "the arch/x86 maintainers" , linux-arm-kernel@lists.infradead.org, linux-arch Content-Type: text/plain; charset="UTF-8" On Wed, 12 Jun 2024 at 11:41, Mark Rutland wrote: > > Given how badly things go when we get this wrong (e.g. TLB corruption), I'd > like to say "just mark it incompatible", applying to all instrumentation, not > just KCSAN. Ack. I'll start out with just KCSAN (since that's the actual technical issue right now). But since the SW PAN support is hopefully not something that we should worry about going forward, I wouldn't mind it being de-emphasized. It's not like PAN is something that should necessarily be everywhere. The real advantage of SMAP on x86 (and then PAN on arm) is that it catches wild kernel pointers. As long as the HW support is common enough, people will find bugs on those platforms. So I think the advantage of SW PAN was "it will find issues early before HW PAN is widely available". It might be time to lay SW PAN entirely to rest now. I'll send out a new version of the arm64 patches with the KCSAN build failure fixed (with the simple no-op save/restore functions by making KCSAN and SW PAN mutually incompatible), and with the virtual address fix you pointed out in the other email. Linus