Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp458569lqh; Tue, 7 May 2024 04:47:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0UBXI8N2sxr3ZRS81Ox86U0cXaicuXd+gwvTffyFGnKUqoeaWyMCMrJh6FFSFRQlgol3G7VZxq3w1kWZI5hTL3gWAFMIAI9DRupA0aA== X-Google-Smtp-Source: AGHT+IErOnKJzBx/4QzHQs3pTN1Z+RxT8acmXPCfGOok0ZUMxlyFzKaxECceBDClx522gdIAIrMJ X-Received: by 2002:a17:90b:1006:b0:2b2:3f33:32c4 with SMTP id gm6-20020a17090b100600b002b23f3332c4mr10692621pjb.36.1715082473318; Tue, 07 May 2024 04:47:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715082473; cv=pass; d=google.com; s=arc-20160816; b=IUcDx4yv/7cPaUr8mc91hJHatECAUVzfVHE+ZzuSBLHunIDPKEpVsYY0LSRJlRAJK0 4UfvtlgT5A6VXM06JzyjQluq+J+NQAS/qf4x4ChHQ/Da5EDezB2bxbgnVBFiYjQntpst LhSwzrlLGPPWlBS5OES9WlBp++fsLL/Z8VPAnK2+rON0kcq8KXOnCyU8A7DS2Aw3yCy8 LQiFi1z4li058vqTkxGdhJu87KKXzwT6ZwoQIFGYNmtQ7DgxSkNZIXTMxEmUiGx6oPVO 3fJo2HoZ/hdoQI82dCwbPouMevrPCgBSEtMEszmJ++AWrFwLC0kdhUdPPJSbdGOH2IX2 q6Eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=AGgng4tYLfT4z3TgLDBoOEQH/lrWlrdmYEiX+jZdMl4=; fh=r3S/RTeiQ2zWnpJfpIAD9jSI7SX8E2IzJZsno0Mj8QA=; b=zKN7WGABtrH8NSS2+NvxcNzdmwvHLj0tRV6avAe6o39JGvcqSrf+FJO3YYWzlWtjk6 dL6mrKonJ2sF5I7W5FDXoj/br9IfadrVBg/mrqpzXcMn3DJN8CkXbCIgVtGI1W7D5Cbk qU1bHOe+Hh77arl20XPNe2r+dr1XcE27SKk51u8Ytax8FspMASiP8gX8zYoX9QV3R1Ho y4OS3tCEgZ8w4ho80cLsAtFJHSu9nohehQzhc2fH+VP5f3nh0CC4WxeG+7awqvDoZ7+W HNaXSFjOgKwI0JXH82wrSmx+XxlffB9hT4t/UcV6FuLo1oMGT/KVVthqVz+487gSeeB8 Jclw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-171184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id gc17-20020a17090b311100b002a280773045si10335042pjb.91.2024.05.07.04.47.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 04:47:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-171184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 40131B24C28 for ; Tue, 7 May 2024 11:17:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E35D15216D; Tue, 7 May 2024 11:17:24 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64EE61514F8 for ; Tue, 7 May 2024 11:17:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715080644; cv=none; b=Aan1hOEy3ETh+JT2bdYUz+voEnKHvWK00s18B5dmLBVN2d8RnbSLGbzd45X3V6InSOi/Ah+OtVzMP4T7DnRd2YAc01sC5DA+UdTwZLnw3kWCODrPRHWx5rwiBDE5zj4JzKoFO4bvPxM1ptmImuzWlnvRp3QpZ9djBdJe/DqhsA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715080644; c=relaxed/simple; bh=4RWDb3dhbxFzvMPLfYEXGp9RHbWBGzBigcrnGPG2AOk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rnoWq9bCMiyqvbk6iT9PY7c4VFgoB2ZiQjl2v1bGP5BTApz34PMKLLPhT4QcIdsHH/rtWBi2qrgiTGW16NQFjwR4tmF+K46/4ZaAnqiHnNYYHT8u8e8km/DFmiV/8PWduY1OYSxFEXFhEKzNjGClNRCtyS6tymodFkHbClj3FOI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 743D41063; Tue, 7 May 2024 04:17:47 -0700 (PDT) Received: from [10.1.34.181] (XHFQ2J9959.cambridge.arm.com [10.1.34.181]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 009423F587; Tue, 7 May 2024 04:17:19 -0700 (PDT) Message-ID: <3764382b-9fa6-4e94-ad5b-2e22e3e7c71a@arm.com> Date: Tue, 7 May 2024 12:17:18 +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 v4 0/4] arm64/mm: Enable userfaultfd write-protect Content-Language: en-GB To: Will Deacon Cc: Catalin Marinas , Joey Gouly , Ard Biesheuvel , Mark Rutland , Anshuman Khandual , David Hildenbrand , Peter Xu , Mike Rapoport , Shivansh Vij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240503144604.151095-1-ryan.roberts@arm.com> <20240507110750.GA22289@willie-the-truck> From: Ryan Roberts In-Reply-To: <20240507110750.GA22289@willie-the-truck> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 07/05/2024 12:07, Will Deacon wrote: > Hi Ryan, > > On Fri, May 03, 2024 at 03:45:58PM +0100, Ryan Roberts wrote: >> This series adds uffd write-protect support for arm64. >> >> Previous attempts to add uffd-wp (and soft-dirty) have failed because of a >> perceived lack of available PTE SW bits. However it actually turns out that >> there are 2 available but they are hidden. PTE_PROT_NONE was previously >> occupying a SW bit, but can be moved, freeing up the SW bit. Bit 63 is marked as >> "IGNORED" in the Arm ARM, but it does not currently indicate "reserved for SW >> use" like it does for the other SW bits. I've confirmed with the spec owner that >> this is an oversight; the bit is intended to be reserved for SW use and the spec >> will clarify this in a future update. >> >> So now we have two spare bits; patch 4 enables uffd-wp on arm64, using the SW >> bit freed up by moving PTE_PROT_NONE. This leaves bit 63 spare for future use >> (e.g. soft-dirty - see RFC at [4] - or some other usage). >> >> --- >> >> This applies on top of v6.9-rc5. > > I chucked this into the CI on Friday and it looks to have survived the > long weekend, so I've gone ahead and merged it into for-next/core. Short > of any last minute failures (touch wood), this should land in 6.10. Oh great - thanks! Catalin was previously proposing to hold this until 6.11 - I'll leave you two to fight it out in case that's still his preference ;-) > > Thanks! > > Will