Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp28636lqq; Wed, 12 Jun 2024 15:26:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVExl49rxPhDtuJEkeeQ36SgG1jJ3axbS4vfGFcLdxwvoR14x2hkEdAeT0XHSOLXj1/ILFLjTViBWbFS6M2T0fTe7uPEnZGaU2EUaV33A== X-Google-Smtp-Source: AGHT+IEFnxryiPlod/jRTnmrdYMZ3NED/i9ZGou1UeJ+UeHKXratLkf4QQsboCp0OIQj5esbzk57 X-Received: by 2002:a17:90b:4c84:b0:2c1:bcc7:23f1 with SMTP id 98e67ed59e1d1-2c4a7628b8cmr3382729a91.12.1718231215337; Wed, 12 Jun 2024 15:26:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718231215; cv=pass; d=google.com; s=arc-20160816; b=jCB68hErk/LRlVmNBbvqPDgxa8aWfG6Zz+YDcFDcE5HzU1HeTyreCYKwza3Z6KoHyu IFZL0cnFlbz5NKm40QoLy/NpmWEpSPtfkz9WUa/ZRFv+pMG9WC4BHJtui47/wAMrR0OX 4AKCMgoVWwNL05dCAagaooD+YcjHHo5aL8QmDAmjZtkQCz123XUDGdptBfZiyVMgcp0Z an1XidBFjrjoxEaCRkIcKYSEQui+1zEzslhW1RlMKMhAkrrm5SkliawLCT5H47aYGGw9 zt9mk8f8SVc43zNV53USeaHJo/ao10Nj38P8ucAK1DdApXTA6M+2IyRWgek0VfA3EqFe sXNg== 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=9VcA85nBfAJ5pqIO2zRB3DwRkzoK3bQ4ckXVVcF3yZw=; fh=EC0qvad/MARyXa+o8GPz+VzV7ML0CS+pf/uwlGKP6rs=; b=mo0DIlqmaMcKEf1py+73z0DxSbUzjaXqgUrMk813JFK6PZ3PgPvThcyXSz80ANFcCr 9h0q9/xhmplZAKDLbxql/bmmeBpopoPP/NPw/4mV0OK2gwe0vkIDmxFvV/3wLlFSJpzx gKd3W07OwfnKLahWQMg5bBGWWFV1HaaPQgBwOFvtDwZviRCuDmJqhSFeccdPubMnsKwM w0bEucawkGyvq6AJBW2FSH3EYUXNFOszqRMSZoew7ZDcMhXUFWgf3HAl2r5vUH1tFHcZ 05gV48oGrx3l70k6x6YqTMgFPDbCTZqnAkq1FWkvt9Z83gnjmoQm320K+RnF6xsX1EyW r0yw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Rxw9oclt; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-212324-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212324-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-2c4c478184csi114264a91.162.2024.06.12.15.26.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 15:26:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212324-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=Rxw9oclt; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-212324-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212324-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 00D40284A01 for ; Wed, 12 Jun 2024 22:26:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3962112CDA5; Wed, 12 Jun 2024 22:25:51 +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="Rxw9oclt" Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 E7C7E12CD8C for ; Wed, 12 Jun 2024 22:25:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718231150; cv=none; b=ZbpoufP/DMPy35Vps64Zg9+3t1KBgkB16R4iTpZBWaUZE7gxP3mrFe6fZ/AjPhf0u5t21tON3rcuUcVDJ6OZ7c3u4fnriR6GlTihD1NsRGzG1fWZPG0ngIPa2IUAVBky9cVf+UoS2KeNg6I+54bvZ+WsG1s1JQ2WlBl9jurprfE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718231150; c=relaxed/simple; bh=A10PWhJaScq0T+vZsTNJwKbAbZ7nlQlEUFiAqdpeFdM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gIcjdYjBN+X9v+HrPWHyFk8YDj1i1dU1GXJpp8tIp4KvXc+mDYrcgtxq2LTbHTv4JKTyyi2/45aBo2FSTKrSuzIhPHjsURaUa1A3W62J2pFIk2k1EDKQgpHe5UsjZEDEuoKP3io/UoK+51RKZocoZmnlG+vZ7hwggh40lvkYCFY= 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=Rxw9oclt; arc=none smtp.client-ip=209.85.208.171 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-f171.google.com with SMTP id 38308e7fff4ca-2ebed33cb65so2963191fa.2 for ; Wed, 12 Jun 2024 15:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1718231146; x=1718835946; 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=9VcA85nBfAJ5pqIO2zRB3DwRkzoK3bQ4ckXVVcF3yZw=; b=Rxw9ocltB/ynl+qwWTT4qGURDF8bo4fEzmEo6uqkTfKSA3VQqKAHI1VP9VgCkc5Veh SHxF9Zo4jya2XiePVrdvrrgPwIjWVZMA620rQ/MbLGdGdTwayFQ8SOL/ondvXXR+JLmv nhTIv8nMnha48tGzv2lJWwc5iZqhD40R8ILmA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718231146; x=1718835946; 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=9VcA85nBfAJ5pqIO2zRB3DwRkzoK3bQ4ckXVVcF3yZw=; b=G16UHOF3K0RiVIF/l4qjb5JD6mrQ4L8XGzlcjHkk/XEz7hkLAQcGz+9vQQNGgObR/s TKdedIzsHPi8NaY0/wJh/96HgfFJULDG0RbCWqDw4Ro41GWX4dRuLGHCVMzOGSQhr2Aa 8oA4IJm4CNx0rR0vy4D7GJZS4ELYWvJatnJ0HcZEjfHrMUavZOjFm03Z9LcoD0eB7IMx t7W2/Kbv9DksPZDxy20/MET4afX3uYdOmmXQaTHlIFOpbu1rLlEr3LXfBBLaYUEYnUE/ 3aWjDLDVosAIoVNnQYteU4JBRdLFOdN7kcTXaHNNHmIVlFV646U4STasShkdnCJ/P1KD Op3g== X-Forwarded-Encrypted: i=1; AJvYcCUzHoMhXZ2qQM5hNbHAm0SOZMmAk2UTHF88is93C0kCgql/jsT/Y2LkB0ALNVvvRHumVh/u6aQw9DfC8wXNYGPOfqqCY2nqxmdwb07y X-Gm-Message-State: AOJu0YzwdTIKHo094c0ppnUXUXMOjug/MDXAjPs+ZbGazdgF9aj1pvLo IFuD637GWgCU8Bz0TgX2+LFlrKtOWqmuo81J6c46ArpIAqHudS1Ieur3gRSzQt8kjeJllueJsgf GfDozNA== X-Received: by 2002:a2e:9819:0:b0:2ec:389:ad72 with SMTP id 38308e7fff4ca-2ec0389addemr3937561fa.39.1718231145773; Wed, 12 Jun 2024 15:25:45 -0700 (PDT) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com. [209.85.167.47]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ec05bf44b8sm137521fa.16.2024.06.12.15.25.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jun 2024 15:25:44 -0700 (PDT) Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-5295eb47b48so462437e87.1 for ; Wed, 12 Jun 2024 15:25:43 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCW/rcMTEbC+IC55i25IJ0YQWtXSt7PEOrGQjCxzZMt8Dz0YTaEkZmTjTazSKHiY6NFIRLge7cuDUALdd157MTJrbWtM+JF2jzthnVOH X-Received: by 2002:a05:6512:31cf:b0:52c:a22e:8ffc with SMTP id 2adb3069b0e04-52ca22e933fmr120725e87.58.1718231143517; Wed, 12 Jun 2024 15:25:43 -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 15:25:26 -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: multipart/mixed; boundary="000000000000f4689f061ab8dc01" --000000000000f4689f061ab8dc01 Content-Type: text/plain; charset="UTF-8" On Wed, 12 Jun 2024 at 13:02, Linus Torvalds wrote: > > 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. Actually, unless somebody really wants to see the whole series again, here's just the diff between the end result of the series. The actual changes are done in the relevant commits (ie the "asm goto for get_user()" one for the KCSAN issue, and the "arm64 runtime constant" commit for the I$ fixup). Holler if you want to see the full series again. It might be worth noting that I initially made the arm64 KCSAN support have a "depend on !ARM64_SW_TTBR0_PAN" condition, but decided that it's actually better to do it the other way around, and make ARM64_SW_TTBR0_PAN depend on KCSAN not being enabled. That way we're basically more eagerly disabling the thing that should go away, and we're also having the KCSAN code be checked for allmodconfig builds. But hey, it's a judgement call. Linus --000000000000f4689f061ab8dc01 Content-Type: text/x-patch; charset="US-ASCII"; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lxcec86u0 ZGlmZiAtLWdpdCBhL2FyY2gvYXJtNjQvS2NvbmZpZyBiL2FyY2gvYXJtNjQvS2NvbmZpZwppbmRl eCA1ZDkxMjU5ZWU3Y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