Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8743457rwp; Wed, 19 Jul 2023 14:50:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlGM48QF3hOjkDFv9LbLUopV/UtzGtXRRW7ZNTtf23qXgPlRrfSvMpYxN6CTJUnaj8YNmY76 X-Received: by 2002:a17:90a:5987:b0:263:7d8:4a with SMTP id l7-20020a17090a598700b0026307d8004amr4667962pji.18.1689803426589; Wed, 19 Jul 2023 14:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689803426; cv=none; d=google.com; s=arc-20160816; b=pwqoGTxcTBKDVg+LdePdK95iYYzIlPODkFX3TL0UFN+T/qMx+bPiP/uEG1wgxIzE2x Y9TpgtA35uGiGjRquNOCH7K9+sPm7/fEW/Da0RoByCCd+gHTMVnYOgY/9038qTqtGYoo r6rppfrC76VqUJtAl9r8wdJ4a9asKUjrtq/3zsrdRpyGIzi1tUocBlbafb5pMh2xBP/P xr/y4ahG5nKnVkrzjpXVSGXpVdbbW3+OcRP9TjdNaxHQuoihUI2XkAsVODo5YaTWDMR7 0MOiITi/QbuvS7Wash7WTH/Ud1sz/kAhqpUa/g4PBbMPH9bpOq9KoJjVYWBB2MRH9/P8 5uhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hXgD7wQYE14rWhctIq9t136yN3UHwMAmBUim8bApvMM=; fh=8ArpSJsYTdO32e58DX6pXX0H/JVQQRDqKLxFKTKo8Dg=; b=MP0wfrt71IjNdvDPX+FAcO4iFVBU6Ep8QCUYfPhId+tHtxgC6+XY6qM8n1kaIzYRnH ms1EtL8v8se9RVN1e0axInR/XZg78xShUJMVwP4vXsAVB6LowhrHSv16WQCjh5h2Rk4K iRIHGNfS8uazr0SKMh+sgca8JWxFm2LrBCGxedAOi9vaPI7vE0ZdTdftm/uT75/nWGxC NknGq/7eza42U0JC2XJ9BYg+utnrCQw8bo1xwTAUrcli2iSr9jyZ5x9TUKcLS3xnINWy BKzp9aJQ4kjJPTxUReWBJZ6QOHytB4N1lDyfAZsVOS6wUI8pWOmZCaOyNOXO6JnU9lMB dz1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=gStURRZC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a17090aad8100b00262cc4177ebsi2153797pjq.160.2023.07.19.14.50.04; Wed, 19 Jul 2023 14:50:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=gStURRZC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230410AbjGSUFD (ORCPT + 99 others); Wed, 19 Jul 2023 16:05:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231361AbjGSUFB (ORCPT ); Wed, 19 Jul 2023 16:05:01 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E264B1FD8; Wed, 19 Jul 2023 13:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=hXgD7wQYE14rWhctIq9t136yN3UHwMAmBUim8bApvMM=; b=gStURRZCpkgITnErx9hIkk61Lx DF8f8kxmD+8R85SGQnqpxzXLL+lDwRtceFxe8OWmayO+7Vi/sqalrpsGF/YWCtk3UOgTaZx6jAP+M 2lKQOosAAN9B6+LdTTh5e9ImUwacnGeulmXuR6INNrL7WEOKGF0T+1jrodQGiyou+xP8/D00r6jH8 DuORStFBx5r3/aellYX/2tWZo/DbvbKjKQoQfDyS6gsg4yuuH3fJjiU7sHOTDnp+JT617dwu2gvoK PPnnEnTkky0WjE1Oxw1U28aySqR4ba0H27m8VvNzuzAI1llU2+v+wDLuCd7aJyqROh86hFVvp82k3 l/M7Q66A==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qMDPp-006Qbx-7h; Wed, 19 Jul 2023 20:04:53 +0000 Date: Wed, 19 Jul 2023 21:04:53 +0100 From: Matthew Wilcox To: Miklos Szeredi Cc: Matt Whitlock , David Howells , netdev@vger.kernel.org, Dave Chinner , Linus Torvalds , Jens Axboe , linux-fsdevel@kvack.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Hellwig , linux-fsdevel@vger.kernel.org Subject: Re: [RFC PATCH 1/4] splice: Fix corruption of spliced data after splice() returns Message-ID: References: <20230629155433.4170837-1-dhowells@redhat.com> <20230629155433.4170837-2-dhowells@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 19, 2023 at 09:56:44PM +0200, Miklos Szeredi wrote: > On Wed, 19 Jul 2023 at 21:44, Matthew Wilcox wrote: > > So what's the API that provides the semantics of _copying_? > > What's your definition of copying? Future modifications to the pagecache do not affect the data after the syscall has returned success. Modifications to the pagecache while the syscall is in progress may or may not affect the data received at the destination.