Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5907804ybx; Mon, 11 Nov 2019 00:17:35 -0800 (PST) X-Google-Smtp-Source: APXvYqyRJC6mAqpQZXqWg0QldC0h8zH/Oqv2MbdLJL8nSIkUCrEZMfBBYIqQZdnPhxtRrPAf3Jlm X-Received: by 2002:a17:906:600b:: with SMTP id o11mr9160466ejj.175.1573460255454; Mon, 11 Nov 2019 00:17:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573460255; cv=none; d=google.com; s=arc-20160816; b=c1vkxBt/j1JsTxpORk043S7aZJY+Qp8VmZ30+UpFjoCLPn9u8vt+8ajTfrhadgYYpE Sy77QQuoCzM4TcXYZdloONB5HbCI+dB2n9jm0tO92se2OThdB5QtHMyimytzfbtRFXno tr4COXv8RSJ9bSlJxan+eODdqwcyjWGLhlsJbELSDLTNDawTcQHICToJGcXGEYpWJ1rQ ehfsyLXblj1+mO6yIkhBqw6NEyBX0PMZ2WWQew6h+nBrH9FevRoWm1AqFbOLesYxNk81 QmS2ahxLKDIudi51xHApylblnvQDKiFUOLurkjGSavnoe1nSKJ4HmDG7q7mB5fgQXXkE cDlA== 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=ab0kK2oHM6lO8iZ9R6h+DRnRFocI2oaYPhhXxQ1txf0=; b=fzx2xfViIVZqxVCArgkhcaOwJYLTx8jxmCvy/ylE7j0Z/zAXb/0yjowbNPs4HnnUHb boPadZAYQFCH96YI1x5jDgfKn+Se55lV41wU9aHksAvg22xV376Tui58FlkeQwgBdROj 4CDGprhviWEQ2mPe9OWG/3ctSZEsFZUoP00cDEKMvTctzLA5jlL4igFOohBws74OQiRX elSdNaxMyZDRmVZ63pJncAkj6uTuLxTrHS5Ef4AxSbGanw004PbPbGV8QlSEO7iHhkvZ F0f3u92DHC+0pmUbdNgR9S3qclJ2Jq4WABxNRhvYGDJiS6BcUh5NhZ0TBVeNOR1XtgrL 5vTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mbobrowski-org.20150623.gappssmtp.com header.s=20150623 header.b=z3Ov0zrW; 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 g31si9698831edg.206.2019.11.11.00.17.11; Mon, 11 Nov 2019 00:17:35 -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=z3Ov0zrW; 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 S1726888AbfKKIQi (ORCPT + 99 others); Mon, 11 Nov 2019 03:16:38 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:46119 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726768AbfKKIQi (ORCPT ); Mon, 11 Nov 2019 03:16:38 -0500 Received: by mail-pl1-f193.google.com with SMTP id l4so7463880plt.13 for ; Mon, 11 Nov 2019 00:16:37 -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=ab0kK2oHM6lO8iZ9R6h+DRnRFocI2oaYPhhXxQ1txf0=; b=z3Ov0zrW5pKVWZiuX6afIe1HwcGBXL/ZAOrf/X3AcxbxxjQQRyh1bY13fCTnXI/DMs BqrRHko3WrBeGVhxfHD33oIaBUnZoBUhHbrFwp+BaYeLbsEuFJZABnk41EK/gi7kULeN LjSZoU9GbUDaYOXwXSSvFewWFcmum4yLoN05nG6B4YR6RImXmmszM46C1hqOQ4iTtiWE 2OkOxxf1t+15SWU4xeB9bvtmf8B4lX2oBZe5+C6sxsJXw9T55dg5rB/EQIElzaeJGNTw FFr3aYZE6VkOspuPwdNzNlnwUafWckN4kR7PoJ+tQNgKjYCIPtcJZR0wRQwJRp1FqgC2 9/VA== 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=ab0kK2oHM6lO8iZ9R6h+DRnRFocI2oaYPhhXxQ1txf0=; b=HoMI6FhsrWTzf4zmMrhuZEOPwYFwBeJWM2+I8n91okzE3tw0/NNF5J/SWiwgR+6Z39 7nfVFAArFn1kNi1CLokOp0b1wMMEPe267kDAXIpfzP/0axK6jvyXrh21IQJuDuXWy0WZ nS4B6ot44lhvLedINI04tXiAWlszHW+sMZ8CFrXDH82DaGL8ARdDclr5vQPmKZhdACcz XYz02AgItHLhuDAYz6U4BnWOFVQH5NNausaUyTaAs9FU53hnHdywBSbzGF9rmLYsAMdm D730MVvr5n1rGT18K4jRsXf97iDBvLC5l36CXU8nYmQDSDZqNNKZpnmFVmoijNM09aBf r4xQ== X-Gm-Message-State: APjAAAVrHvrIGKApY2w8kuEZxZgLwdc7J4VWnxnUskBmudwwXx0uiwq3 fhO0ZVLVaGxz1v/8+opvvv2n X-Received: by 2002:a17:902:7c8c:: with SMTP id y12mr24542085pll.260.1573460197164; Mon, 11 Nov 2019 00:16:37 -0800 (PST) Received: from bobrowski ([110.232.114.101]) by smtp.gmail.com with ESMTPSA id 12sm16086321pjm.11.2019.11.11.00.16.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2019 00:16:36 -0800 (PST) Date: Mon, 11 Nov 2019 19:16:29 +1100 From: Matthew Bobrowski To: Jan Kara Cc: 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: <20191111081628.GB14058@bobrowski> References: <000000000000d60aa50596c63063@google.com> <20191108103148.GE20863@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191108103148.GE20863@quack2.suse.cz> 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 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. /M