Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752305AbdDJTmL (ORCPT ); Mon, 10 Apr 2017 15:42:11 -0400 Received: from scorn.kernelslacker.org ([45.56.101.199]:34972 "EHLO scorn.kernelslacker.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751064AbdDJTmK (ORCPT ); Mon, 10 Apr 2017 15:42:10 -0400 Date: Mon, 10 Apr 2017 15:42:06 -0400 From: Dave Jones To: Al Viro Cc: Linux Kernel Subject: Re: iov_iter_pipe warning. Message-ID: <20170410194206.loesu5licstif7or@codemonkey.org.uk> Mail-Followup-To: Dave Jones , Al Viro , Linux Kernel References: <20170321205901.mojmjd2fxmykq3df@codemonkey.org.uk> <20170410192800.GC29622@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170410192800.GC29622@ZenIV.linux.org.uk> User-Agent: NeoMutt/20170306 (1.8.0) X-Spam-Note: SpamAssassin invocation failed Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1159 Lines: 29 On Mon, Apr 10, 2017 at 08:28:00PM +0100, Al Viro wrote: > On Tue, Mar 21, 2017 at 04:59:01PM -0400, Dave Jones wrote: > > WARNING: CPU: 0 PID: 9290 at lib/iov_iter.c:836 iov_iter_pipe+0x71/0x80 > > CPU: 0 PID: 9290 Comm: trinity-c7 Not tainted 4.11.0-rc3-think+ #3 > > Call Trace: > > dump_stack+0x68/0x93 > > __warn+0xcb/0xf0 > > warn_slowpath_null+0x1d/0x20 > > iov_iter_pipe+0x71/0x80 > > generic_file_splice_read+0x37/0x140 > > do_splice_to+0x79/0x90 > > splice_direct_to_actor+0xb8/0x220 > > ? generic_pipe_buf_nosteal+0x10/0x10 > > do_splice_direct+0x9e/0xd0 > > do_sendfile+0x1d7/0x3c0 > > SyS_sendfile64+0x73/0xe0 > > do_syscall_64+0x66/0x1d0 > > Cute... We have ->splice_read() called in attempt to shove something into > a full internal pipe. How do you achieve that situation? actor() callback > claiming to have drained more than it actually had to? > > Do you have a reliable reproducer? Not reliable, but I'll see if I can find some time to narrow it down this week. I've been working on better logging of "wtf just happened" the last few weeks, so it should get easier once I finish that work. Dave