From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795015311; b=z6OuMQZhaQttHe6ah+/sm4bz2xRwyT1JJEClRGmEVkD3vnH7uKH+cqcNScHk0rEHXnjm Zn/rPj0vwcuNkUty+zGMC4prIzdvEYEpqCy8mxvSQGc/NsM+2dC3EGFDRByH3+rWvCH0G RraJYHXH8gOop6iikLXLpUWftFDHWAl/QcmqpJVlDkA3vBK2XSZqeWw1PVY7ynZLK/Gea ZdyMal5gLMOq5edfgomGUYycplhtSd0WWZLqfz+Exq1iMvyjHPw31dKpcsyUuoTQGWlYR wqNjJdAy4FqnHR/a+ZouAEUULbDvbZxM71lrgHU58o4rObmCbJnTH2rbPkkcHCT1b8w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795015311; h=Received:DKIM-Signature:From:To:Cc:In-Reply-To:References:Subject: Message-Id:Date:MIME-Version:Content-Type:Content-Transfer-Encoding: X-Mailer; bh=zjHf/N+E74CHlMypQ6kG0MO/j1AaxlMnO45unT7fRs8=; b=hQc18Yqgd0DsXygsJn3/Xtwj+xEsL/fgF4VlUY62JfE5WcrVrRebOHqrK092ifhsCk24 gL3rMQWCi2MOrE9yfvRzvfb13mvc+84vlwxHzBMaV1m7t3bw/nibpJ+YfR0bevD4Pq7wN snXumAjRr7obC3J7Z28VpAiJMdVClbO1+dzGno6oR6YeGnUSb0TCcK916HtaCJOQASRv4 5hEBnXBu3gA1pW7kkaKWO7PNfTZWoBKceXJCbAgNWtVRgaDQpL7FGAmTEAoP/Px5ji+v4 J8C8p6qT33coKvThN+SnWVviYqjc7FOL4vbA68Y8iiXtwkclSD1Ib6FrHhNKKr75BPw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Zatd8Vt0; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62FB9606A331; Wed, 18 Nov 2026 15:21:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Zatd8Vt0 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 587FD1F000C4; Wed, 18 Nov 2026 15:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795015311; bh=zjHf/N+E74CHlMypQ6kG0MO/j1AaxlMnO45unT7fRs8=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=Zatd8Vt0ywkplJtY52sv1C6gqcSe5RQKIFV+5E71Yls+0SNUpVBiJwgzdPLtELYUe lMEeHjRrAnWCh2jU/xSsBaecsX4m19vZToDTdpSksFBkKQ+BznUVf+kzqQpRE594cl xI8Xzi02t1DvZZ4QYsxI3pXSUlMMlXjiS6thpbcD+kd0ditk+o0zuiajNisMWqprBJ /63zF2q7x1g0nOMjPpptKxP3+nsGFzPTU+2b5WqClj1L/DhevvwIx0kJR7RAEdV+V1 Jl3RUAzke75z/aoxyBUnO1R5v5m1VuTsvFwkZGVLKCc2UzrfJ4Rc20DHv+e1oARAVi NavFFG/ZUVtzw== From: David Hildenbrand To: Andrew Morton , Mike Rapoport , Peter Xu , James Houghton , Andrea Arcangeli , Suren Baghdasaryan , Balbir Singh , "Liam R. Howlett" , Lorenzo Stoakes , Vlastimil Babka , Jann Horn , Pedro Falcato , David Hildenbrand , Michal Hocko , =?utf-8?q?Micha=C5=82_Miros=C5=82aw?= , Andrei Vagin , Muhammad Usama Anjum , Stephen Rothwell , Arnd Bergmann , Zi Yan , Matthew Brost , Joshua Hahn , Byungchul Park , Gregory Price , Ying Huang , Alistair Popple , Baolin Wang , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Usama Arif , Kiryl Shutsemau , Muchun Song , Oscar Salvador , =?utf-8?q?Miko=C5=82aj_Lenczewski?= , Tal Zussman Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, stable@vger.kernel.org, Breno Leitao , =?utf-8?q?Thomas_Hellstr=C3=B6m?= , Lyude Paul , Danilo Krummrich , Felix Kuehling , Jason Gunthorpe , Leon Romanovsky , dri-devel@lists.freedesktop.org, intel-xe@lists.freedesktop.org, nouveau@lists.freedesktop.org, amd-gfx@lists.freedesktop.org In-Reply-To: <20261117-uffd-state-fixes-v3-0-b617009d1a4a@columbia.edu> References: <20261117-uffd-state-fixes-v3-0-b617009d1a4a@columbia.edu> Subject: Re: (subset) [PATCH v3 0/9] userfaultfd: assorted fixes (part 1) Message-Id: <179501529906.13844.1913398195867025027.b4-ty@b4> Date: Wed, 18 Nov 2026 16:21:39 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.16.0 On Tue, 17 Nov 2026 23:28:40 -0500, Tal Zussman wrote: > This is a first batch of userfaultfd fixes, with more to come. > > These were found by a mix of regular old LLM review and by having an LLM > write a TLA+ model of uffd interactions with PTE bits and other state > and seeing what issues fell out. > > Most of these fix places where mm code loses uffd-wp or RWP protection > while moving or migrating an entry. Userspace then either misses writes > and accesses, or gets pages reported that nobody touched. > There is also a hang in UFFDIO_MOVE, and UFFDIO_ZEROPAGE modifying a > file through a private mapping. > > [...] Applied, thanks! tree: mm/core.git branch: migrate-7.5.misc Applied patches will appear soon in mm-next, followed by linux-next. Please report any outstanding bugs that were missed during review, so we can either drop the patch series or decide how to fix it up. It is encouraged to provide Acked-bys, Reviewed-bys, and Tested-bys even though the patches have already been applied. If possible, patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. Further, this is not a guarantee that the patches will go upstream. If in doubt, please check the listed branch. [8/9] mm/migrate_device: do not migrate a uffd-protected zero page https://git.kernel.org/mm/core/c/a37a6cf0 -- Cheers, David