Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424515AbdD1QnW (ORCPT ); Fri, 28 Apr 2017 12:43:22 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57562 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424401AbdD1QnP (ORCPT ); Fri, 28 Apr 2017 12:43:15 -0400 Date: Fri, 28 Apr 2017 17:43:13 +0100 From: Al Viro To: Dave Jones , Linux Kernel Subject: Re: iov_iter_pipe warning. Message-ID: <20170428164313.GK29622@ZenIV.linux.org.uk> References: <20170412011532.GN29622@ZenIV.linux.org.uk> <20170412022911.nhefjqlnyrk3n7rr@codemonkey.org.uk> <20170412025842.GO29622@ZenIV.linux.org.uk> <20170412143519.4hh36l3egozgdrll@codemonkey.org.uk> <20170412152600.GP29622@ZenIV.linux.org.uk> <20170412162709.bn5qfk4seues3yos@codemonkey.org.uk> <20170412170723.GQ29622@ZenIV.linux.org.uk> <20170412190318.srkkdytf2ebrjzrg@codemonkey.org.uk> <20170421175430.GT29622@ZenIV.linux.org.uk> <20170428152955.mafs3f22srmm34aw@codemonkey.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170428152955.mafs3f22srmm34aw@codemonkey.org.uk> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 916 Lines: 18 On Fri, Apr 28, 2017 at 11:29:55AM -0400, Dave Jones wrote: > On Fri, Apr 21, 2017 at 06:54:30PM +0100, Al Viro wrote: > > On Wed, Apr 12, 2017 at 03:03:18PM -0400, Dave Jones wrote: > > > > > Well it's been running an hour without incident, which looks promising. > > > I'll leave it run, but I'd say you're on the right track given how quick > > > it reproduced so far. > > > > Could you try this and see if it works? What happens is that unlike > > e.g. generic_file_read_iter/generic_file_write_iter, NFS O_DIRECT handling > > does not make sure that iov_iter had been advanced by the amount > > actually transferred - it is left advanced by the amount *requested*. > > Crap. So I never ran it long enough it seems. I can still hit that trace. > I re-added one of your earlier debug patches, and got this.. Could you send me the diff against something from mainline (identified by sha1, ideally)?