Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1539223pxv; Fri, 2 Jul 2021 06:19:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysRmNK/khnYGLgQse4hA8CnzczJtUaLprwWkqDYMcNnXeWxbLPl+g+ykzuXiudupcNG4xp X-Received: by 2002:a05:6e02:1041:: with SMTP id p1mr9907ilj.238.1625231999007; Fri, 02 Jul 2021 06:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625231999; cv=none; d=google.com; s=arc-20160816; b=lN2H96BYaPr18AnxI2FwqvmMYOrtPj2JzlRxM8hkRq82fRmqlvGKARfogc2azkWT5e 406nK+EBmBTS8IC7FaA4E/ICrqpr+qyMfGb4Nw8Am4Eu1S0yVIN7nj3kjDufSuyd/8qs dHcWgwdA4b4y90XZpwuf8Tjv05DEyA1bw6QBjwhRHX2GImua1QkUOxKi5253uEiUb/CT IkU3ZCN2sQG8j8ehVeUnKftZJHiAfL5ap2zP1L9S7TNein3oWrZsVJM3kFDLB1hqXMXc OzGGllFHIn6eLC68teYO8bfU70B+THKdPbp6NGM/2cV4ITiRHJYKFbFfS+7cvBr9opOf CFGA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=3d1yKJRwIM3/3JhL7UHi0GBB49k8bfYaL1isHtBjNiU=; b=U4/ONWnqOl/e3lsj5zw5LimmBaUs6QLNxZz/QfGztP+IInMmz3copeQyHuRCjjDJSg UbfkS1UmxNlL2bucYQv6Q5yDVE/+fY40g9lZ4pkUlmXHlbNh5F3oZNxfusdsGjzVzr4n qM+5hkNMfr/LKsuALKY885/1/ahFis4Mexn1GySFCvj0PElmc1AtkaGOD5BHhi5B2UyN QZDzE33wC3vQZLC2Y3SNfHL40y4ypjQyLTPWrnfK1M6HJKSlJWIYUrsSl8rt2Dlxo5XQ MhhUe8yaNbaOwyecfllqfcO+9NG6HT5+r9Awrq3COniIStQsNMjQbdM/LLvYV0UZbQSg v40Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=cR4n9AZz; dkim=neutral (no key) header.i=@suse.de; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=cR4n9AZz; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si3351616ilu.60.2021.07.02.06.19.36; Fri, 02 Jul 2021 06:19:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=cR4n9AZz; dkim=neutral (no key) header.i=@suse.de; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=cR4n9AZz; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232440AbhGBNEo (ORCPT + 99 others); Fri, 2 Jul 2021 09:04:44 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:57574 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232250AbhGBNEn (ORCPT ); Fri, 2 Jul 2021 09:04:43 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 2FB8320560; Fri, 2 Jul 2021 13:02:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1625230930; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3d1yKJRwIM3/3JhL7UHi0GBB49k8bfYaL1isHtBjNiU=; b=cR4n9AZzeh+F2V6p9n+sHtf+6fHRppgsvSuFgaB5/1EN9C3rwJ3XOd6z1DpCJrTKIlOPuS CaU9IXxxODIbUXf/5/LVXXP9ZqW3E9mybx5FqVIjtCgH1L9KguvGIZAMSBgQcpB6HY73CK R4V+UTr82OHyU4CnTKxfaYvRvWvaLDc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1625230930; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3d1yKJRwIM3/3JhL7UHi0GBB49k8bfYaL1isHtBjNiU=; b=YZNQrLbP7OiucHCEciIGA1VY7OqUhjIgOpRHnyIHA+E7RVUWocP3FCBXTSYYjH4S8FQM1R xboihQsmW00MYQDA== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 7EFC411C84; Fri, 2 Jul 2021 13:02:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1625230930; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3d1yKJRwIM3/3JhL7UHi0GBB49k8bfYaL1isHtBjNiU=; b=cR4n9AZzeh+F2V6p9n+sHtf+6fHRppgsvSuFgaB5/1EN9C3rwJ3XOd6z1DpCJrTKIlOPuS CaU9IXxxODIbUXf/5/LVXXP9ZqW3E9mybx5FqVIjtCgH1L9KguvGIZAMSBgQcpB6HY73CK R4V+UTr82OHyU4CnTKxfaYvRvWvaLDc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1625230930; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3d1yKJRwIM3/3JhL7UHi0GBB49k8bfYaL1isHtBjNiU=; b=YZNQrLbP7OiucHCEciIGA1VY7OqUhjIgOpRHnyIHA+E7RVUWocP3FCBXTSYYjH4S8FQM1R xboihQsmW00MYQDA== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id eBAbHFEO32CzNAAALh3uQQ (envelope-from ); Fri, 02 Jul 2021 13:02:09 +0000 Received: from localhost (brahms [local]) by brahms (OpenSMTPD) with ESMTPA id 1d835cb7; Fri, 2 Jul 2021 13:02:08 +0000 (UTC) Date: Fri, 2 Jul 2021 14:02:08 +0100 From: Luis Henriques To: Amir Goldstein Cc: Alexander Viro , linux-fsdevel , linux-kernel , Nicolas Boichat , Olga Kornievskaia , Petr Vorel , Steve French , Trond Myklebust , Linux NFS Mailing List , kernel test robot Subject: Re: [PATCH v12] vfs: fix copy_file_range regression in cross-fs copies Message-ID: References: <20210702090012.28458-1-lhenriques@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Jul 02, 2021 at 02:12:29PM +0300, Amir Goldstein wrote: > I guess there was miscommunication > > As Olga wrote, you have to place this short-circuit in > nfs4_copy_file_range() if you remove it from here. > It is NOT SAFE to pass zero length to nfs4_copy_file_range(). > > I apologize if you inferred from my response that you don't need to > do that. Yeah, I totally misread your email. But yeah I understand the issue and I'll take a look into that. Although this will need to go back to my TODO pile for next week. > My intention was, not knowing if and when your patch will be picked up, > (a volunteer to pick it pick never showed up...) Right, and this brings the question that this has been dragging already for a while now. And I feel like I'm approaching my last attempt before giving up. If no one is picking this patch there's no point continue wasting more time with it (mine and all the other people helping with reviews and testing). Anyway... I'll try to get back to this during next week. Cheers, -- Lu?s > I think that nfs client developers should make sure that the zero length > check is added to nfs code as fail safety, because the semantics > of the vfs method and the NFS protocol command do not match. > > Thanks, > Amir.