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=1796289377; b=A5gyQjQmtF3YqqpZUolBF0mFdeo1z+eqA5UjByPGU+kl+EKLQm+ZlCzBhByVrbuW5+bv g8J9EqokZQIdVUaA/UNEILVpSR1jSuL/tAQPXfMUeIStuSy18Ey/6F6kb3/mbVgr/FEZv jxUzSA7LCuyshtApoh6JNasFHfoyuhPfDPxyBFb5XbvyRdXdXamnOnMgpqHbpdoaNV7G1 g0yWYRBkvQ8uP/8QklhNadlTdhOHJo4SO+hfkY2hWvsBUFhcpsBq+COj7HjsVoucIsY3d jInu0f0idxfMmW28183ra8a66qrlHbH5GevniuITXesKZ16qIUXQaFapSkqOPyQV/0g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796289377; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=iM3oTWKWy+G+bidteOKAjc8bZQuOqGA3YmNfms9nD4c=; b=HsHb1AxA1m+f3F0EhZhi98GOV6TUIeIxEKH9lhcfPL2WdNwHy1QczfNKwuBwYvkw6HfR qrbJrBqSZkLnMuqkCvXHLII27RS97amcDqukgi16zZypRbtPz5am+nPrHmcHinZWwEwDh LKyGNAzBJrm938o453RwEq9X7jW5895hYCDrFzPvrOACPryhArafjpn4alRc/EGXAKMNH /yrGs22kz9yfQIrDmJ0JhAchGBfKJQYwIUlFnua43dWGVK4z1w6dHlh3dbD7gBUUbAtBY fa8BkE++C/xE9z0Bbowm+NyqLS85QiZxUUoLZ5oGYWtJHXC8KmfrtO6brCaF569fCDg== 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="Z/N1U49N"; 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 03230606A338; Thu, 3 Dec 2026 09:16:17 +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=Z/N1U49N Received: by smtp.kernel.org (Postfix) with ESMTPSA id D578A1F000C1; Thu, 3 Dec 2026 09:16:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796289376; bh=iM3oTWKWy+G+bidteOKAjc8bZQuOqGA3YmNfms9nD4c=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Z/N1U49NpmM2JpLyeRIBUXnRQJ2vJTsUVfF3MyYliI20vBfV1XRrJ6PoJRl8icF3a Sh1CtuJADIh3qD6BXMjaD9DOpi30b5oMtxVA3gtLvaua7CaPomNk/kIyfwaxmpa2EG iPcPgS3RC9ZHpZRZlnSWXPxuvmSX1qLz7MRW2TgnRw/8sv7fVHWpw2TqUAVcZyHvfc 9UHI7nfhfavyE60d/3THqKYcJmThhYZsGkc/7UY1xuwRTIekZ80+XgXV4zeI31f6fA 7GW+pZS/rT2g/M29Ji0U1zKnkJg8pOYtwxVpe4ZEXNuGrk8LilWHC4bCjq/OyR0V8M qRfWLARJK9tww== Date: Thu, 3 Dec 2026 09:16:10 +0000 From: "Lorenzo Stoakes (ARM)" To: Dominik Maier Cc: "David Hildenbrand (Arm)" , Miklos Szeredi , Amir Goldstein , Alexander Viro , Christian Brauner , Andrew Morton , "Liam R . Howlett" , linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-mm@kvack.org, dmnk+artist@google.com Subject: Re: [PATCH] backing-file: enforce write seals and writable mapping in mmap Message-ID: References: <20261203020416.3569911-1-dmnk@google.com> X-Mailing-List: linux-unionfs@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=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Dec 03, 2026 at 09:33:34AM +0100, David Hildenbrand (Arm) wrote: > On 12/3/26 03:04, Dominik Maier wrote: > > do_mmap() and mmap_region() check memfd write seals, FMODE_WRITE, and > > mapping_map_writable() on the outer file before calling ->mmap(). When > > backing_file_mmap() switches vma->vm_file onto a backing file, > > Ehm, what? > > Lorenzo am I daydreaming or is that completely shaky? Yeah sorry Dominik, this is making changes to core incorrectly, mixing and matching a bunch of things. The problem does seem genuine and local claude confirms that, but it needs a significant rework. Given workload the simplest thing is for me to take this over and address all that, I will obviously give you proper Reported-by/Closes credit. Thanks for reporting it! -- Cheers, Lorenzo