Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp338196ybc; Tue, 19 Nov 2019 02:10:46 -0800 (PST) X-Google-Smtp-Source: APXvYqxvW5TAwpuU5mRe3Atg3t4WyntVaqUISnkLA2WDpdcHhf2tuVviGjZa+6W4I3O6WtMj2pvQ X-Received: by 2002:a17:906:6dc2:: with SMTP id j2mr21556918ejt.140.1574158246745; Tue, 19 Nov 2019 02:10:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574158246; cv=none; d=google.com; s=arc-20160816; b=vJibMoo1mdtg3epE1g2jPw1YjnlzxHoDYvACs4Tm733WvJ1f4ZyyYU+KGFZjlF2hz5 CdfVWn6qLOlM2iKpJUPjbpAq/7e2ogynYFR/++xKVV+ZVvh7UDPZg/MyIWkyoOvVbwfa ehre9DIb0waTVKD5SSMew1/W1Q6TcQJ7mi0Qcs+uLwIK+HnlubHI2XJn+SV5WLjEPCBN ACHJKJE4Msqo47lcGK8YZuu2bZOjyzGB+dOUB5y95MqEirXUNG8FeUcGnFZsU4lMs+LN y+jGlFMu3d/bn+DiCBfvVV7n3o3gqXWAKH3r4uudAo3JsatrVHUCFCgT0VjXS9UfDutI UYKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0as+kqGp44tyRx+kW5oQfsxwSoGdl6l76oT22Nl8N74=; b=wENTq8fulM9XnmqDW0rFmghRNCQjlziWDZ6W8uo3MfwQQgL7eZ21Xx4ZiYcVR4j7hc eKIYaKPXfi86TpSLX4oRp+Ws+L05Lbna0TQPcL3rmL0+18jyhpd+q+FrnoGyE1cEXJHf vFkOjcJNOvotZMp9NQw8PUI8VN/BB4rZh0gWCkGCv37K+wFEn9o6tsqDA4lcLkrEUMAH QSkbWqNLWnoXaFsZa2bKDwuwTeqk5TpUOCVeZJ6LD5FMruWHXhp9R4I42b5e8kzE9+HT glpwEX4dAlAKoU9lk4X+6/wpIUkxXjT1IFqTMfp/xWC1yhgpaZAm6gruBzhmpYgw23x2 1eEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mbobrowski-org.20150623.gappssmtp.com header.s=20150623 header.b=v8Q3Ts5n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si13216670ejc.16.2019.11.19.02.10.22; Tue, 19 Nov 2019 02:10:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mbobrowski-org.20150623.gappssmtp.com header.s=20150623 header.b=v8Q3Ts5n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727538AbfKSKIc (ORCPT + 99 others); Tue, 19 Nov 2019 05:08:32 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45811 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727262AbfKSKIb (ORCPT ); Tue, 19 Nov 2019 05:08:31 -0500 Received: by mail-pg1-f193.google.com with SMTP id k1so9811221pgg.12 for ; Tue, 19 Nov 2019 02:08:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mbobrowski-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0as+kqGp44tyRx+kW5oQfsxwSoGdl6l76oT22Nl8N74=; b=v8Q3Ts5nxlnauS/2ghDpbPKFgU64xhcUk2q9N0EIKCrEeCO1UZzdvm7IxtaY2XYPox DIHxrwKQ1tzXYSKoZY5C7lLdHvwJ4dTI9PGVyravK4EbkP01DQ9DhAzxQZutRDhxYmDT VTY4TDGDSPgqLRcJYHp71FgLyYf6puBT63wzO3s3OClM8A+6XXuYqJd8iwbtvJia0tgj yzx/SQrS4tR5h4Z4vSBYh3CE+03HV2elpZ/6xxadUkDMlG/70b7shQf2rPHa+BzqcXm+ AOeqQ7WXjQUfeoBP1EqMUCsJykbbdHJQHTfVaz4SF0i/z+y/+FeNRd+CCGbvVX78DTwn FZFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0as+kqGp44tyRx+kW5oQfsxwSoGdl6l76oT22Nl8N74=; b=uVe1cOAipEYH4Mu2E7ejkfjFHoodjbonlB3fQr0Em/94WYrf41JR8gHBVVbhEGrWP3 8q9Uu7vdOtvXC6jxe/BD2xw/mvGBNdI8q5eIKIltU8fTNb/E9JgPo5IwM351rZySUXsf nUjd2kDIFIyqogElDeVs2fLHA/0oz9h+G2DoZBrpX8g7roA47etTXfDr5TETPALOnYQr fXEUCXW9A4AUvK/A0NX5S1zMc7xZZoExrZRM80+NpFwFL8Fkyd3Trq677WrijlXK6T7p kRkSWMnKnJKjJhvmQvXq/z1vHQfUm+QegZwy5FywDK2uk1hsPI5/qrZnvKWMdDdF+Cdr i8yg== X-Gm-Message-State: APjAAAVAN5xyiQTxjMeuT1koZfQYimSngWhjPglei9SyUhoQ10GmBUgM zv6Rg6TXqNKaMZM9h0ba0TUM X-Received: by 2002:a63:5f49:: with SMTP id t70mr4738291pgb.219.1574158110418; Tue, 19 Nov 2019 02:08:30 -0800 (PST) Received: from bobrowski ([110.232.114.101]) by smtp.gmail.com with ESMTPSA id v128sm6167533pgv.24.2019.11.19.02.08.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 02:08:29 -0800 (PST) Date: Tue, 19 Nov 2019 21:08:22 +1100 From: Matthew Bobrowski To: Eric Biggers Cc: Jan Kara , syzbot , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, riteshh@linux.ibm.com, syzkaller-bugs@googlegroups.com, tytso@mit.edu, viro@zeniv.linux.org.uk Subject: Re: WARNING in iov_iter_pipe Message-ID: <20191119100821.GB22484@bobrowski> References: <000000000000d60aa50596c63063@google.com> <20191108103148.GE20863@quack2.suse.cz> <20191111081628.GB14058@bobrowski> <20191119031021.GI3147@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191119031021.GI3147@sol.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 18, 2019 at 07:10:21PM -0800, Eric Biggers wrote: > On Mon, Nov 11, 2019 at 07:16:29PM +1100, Matthew Bobrowski wrote: > > On Fri, Nov 08, 2019 at 11:31:48AM +0100, Jan Kara wrote: > > > On Thu 07-11-19 10:54:10, syzbot wrote: > > > > syzbot found the following crash on: > > > > > > > > HEAD commit: c68c5373 Add linux-next specific files for 20191107 > > > > git tree: linux-next > > > > console output: https://syzkaller.appspot.com/x/log.txt?x=13d6bcfce00000 > > > > kernel config: https://syzkaller.appspot.com/x/.config?x=742545dcdea21726 > > > > dashboard link: https://syzkaller.appspot.com/bug?extid=991400e8eba7e00a26e1 > > > > compiler: gcc (GCC) 9.0.0 20181231 (experimental) > > > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1529829ae00000 > > > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16a55c0ce00000 > > > > > > > > The bug was bisected to: > > > > > > > > commit b1b4705d54abedfd69dcdf42779c521aa1e0fbd3 > > > > Author: Matthew Bobrowski > > > > Date: Tue Nov 5 12:01:37 2019 +0000 > > > > > > > > ext4: introduce direct I/O read using iomap infrastructure > > > > > > Hum, interesting and from the first looks the problem looks real. > > > Deciphered reproducer is: > > > > > > int fd0 = open("./file0", O_RDWR | O_CREAT | O_EXCL | O_DIRECT, 0); > > > int fd1 = open("./file0, O_RDONLY); > > > write(fd0, "some_data...", 512); > > > sendfile(fd0, fd1, NULL, 0x7fffffa7); > > > -> this is interesting as it will result in reading data from 'file0' at > > > offset X with buffered read and writing them with direct write to > > > offset X+512. So this way we'll grow the file up to those ~2GB in > > > 512-byte chunks. > > > - not sure if we ever get there but the remainder of the reproducer is: > > > fd2 = open("./file0", O_RDWR | O_CREAT | O_NOATIME | O_SYNC, 0); > > > sendfile(fd2, fd0, NULL, 0xffffffff) > > > -> doesn't seem too interesting as fd0 is at EOF so this shouldn't do > > > anything. > > > > > > Matthew, can you have a look? > > > > Sorry Jan, I've been crazy busy lately and I'm out at training this > > week. Let me take a look at this and see whether I can determine > > what's happening here. > > > > FYI, syzbot is still seeing this on linux-next. > > Also, a new thread was started to discuss this: > https://lkml.kernel.org/linux-ext4/20191113180032.GB12013@quack2.suse.cz/T/#u > (Mentioning this in case anyone is following this thread only.) Understood. I suppose this issue will get some more traction this week. /M