Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3912043imu; Sat, 24 Nov 2018 13:47:09 -0800 (PST) X-Google-Smtp-Source: AJdET5eb12q7E90nB08whI9k0l7oyn2W81+SarOgSiUGKEgPzCFBmQ4TGpsbrs1yPCWq1auMWmbr X-Received: by 2002:aa7:8608:: with SMTP id p8mr21901116pfn.125.1543096029372; Sat, 24 Nov 2018 13:47:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543096029; cv=none; d=google.com; s=arc-20160816; b=p0myPOc69g9OMrwdL8l54gV6gm9wf7/2NAn35gUSnPEHxbZ4sFTfG7oVacXyQ8Gy60 A7znWW7ln2zmwYy5dHbXsP/4wSU59MLNPiHoVFHfSRJ7WU3v7r+QJGBsEvRfzeEWbvQK F6IBbgl/9gnNOT9+AhTPgeAO9KxDeCWJTIoZNKCvLvRFql3h5meNux6jLRuIr3MxDQXX SR2gvqueUbthWtEUJotUFB50ePtQ1EYWSWdKh513xRSNWES/fRvNWbGPywmNgYQ3axUl dYRMWB/r7sgSMwzqi7uUj2HYNQcht7tvpUVT6o5CWWDhVo8VLR1/bsTsMbqRie7KZkB6 On5A== 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; bh=vKv5ZDrIMzQHNmqHLPuGL7D2wHev9Zth69D/bH/wBqA=; b=1FrityZHn1xX7mfnVnnHMsWVeto0BupglGGL/NF2WL+FYAGRg15w+OzFoivBdcgb76 jUc1Qjgee/RQFRX1NgPk/Lu+psC1UDlXoHQx3J3Wb3l5tx6WBRZQtJSyTtIDN9/ud2BW BM9fLJxdz46KaskhYZZMlSAkJYQ9jMDJ2el9qFBGv6O+FGE77MM5jFTb5Usm/AvCx6F9 BhXIN8lCdz/JgC86n766WZSDw7JSvLEClGz/QGkeue42q02i3mWdQzjFKq3lkXKM991w a4CsFUg0lvt4Ck4dl/AVEiKzRbbXdOpubMFimaYOUQY0Zxkeq8/krAtYNNEp+BNoKxWi Ar7w== ARC-Authentication-Results: i=1; mx.google.com; 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 k12si43251323pgg.382.2018.11.24.13.46.20; Sat, 24 Nov 2018 13:47:09 -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; 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 S1726484AbeKYIeI (ORCPT + 99 others); Sun, 25 Nov 2018 03:34:08 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:53216 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726275AbeKYIeH (ORCPT ); Sun, 25 Nov 2018 03:34:07 -0500 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.91 #2 (Red Hat Linux)) id 1gQfjA-0008Sq-Ao; Sat, 24 Nov 2018 21:44:36 +0000 Date: Sat, 24 Nov 2018 21:44:36 +0000 From: Al Viro To: Slavomir Kaslev Cc: syzbot , davem@davemloft.net, gregkh@linuxfoundation.org, kgraul@linux.ibm.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, stranche@codeaurora.org, syzkaller-bugs@googlegroups.com Subject: Re: WARNING in csum_and_copy_to_iter Message-ID: <20181124214436.GD2217@ZenIV.linux.org.uk> References: <0000000000001ecaa1057b6e4489@google.com> <20181124200357.GC2217@ZenIV.linux.org.uk> <20181124211918.GA20435@box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181124211918.GA20435@box> 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 Sat, Nov 24, 2018 at 11:20:14PM +0200, Slavomir Kaslev wrote: > On Sat, Nov 24, 2018 at 08:03:57PM +0000, Al Viro wrote: > > On Sat, Nov 24, 2018 at 11:40:03AM -0800, syzbot wrote: > > > Hello, > > > > > > syzbot found the following crash on: > > > > > > HEAD commit: edeca3a769ad Merge tag 'sound-4.20-rc4' of git://git.kerne.. > > > git tree: upstream > > > console output: https://syzkaller.appspot.com/x/log.txt?x=12bee26d400000 > > > kernel config: https://syzkaller.appspot.com/x/.config?x=73e2bc0cb6463446 > > > dashboard link: https://syzkaller.appspot.com/bug?extid=ce18da013d76d837144d > > > compiler: gcc (GCC) 8.0.1 20180413 (experimental) > > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15ccd1f5400000 > > > > > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > > > Reported-by: syzbot+ce18da013d76d837144d@syzkaller.appspotmail.com > > > > Caused by commit 95506588d2c1d72ca29adef8ae9bf771bcfb4ced > > Author: Slavomir Kaslev > > Date: Fri Nov 16 11:27:53 2018 +0200 > > > > socket: do a generic_file_splice_read when proto_ops has no splice_read > > > > exposing all ->recvmsg() instances to pipe-backed iov_iter as possible destination. > > It's not all that hard to fix (I'll probably have a candidate patch by tonight, > > it's just a matter of adding the only missing primitive), but... shouldn't that > > patch have sat in -next for at least some testing first? Because it's very > > easy to reproduce - splice from e.g. UDP socket will step into it. Sure, the > > sky is not falling (unless you set panic-on-WARN, that is); the damn thing > > would've failed anyway, but... > > My bad for not sending the patch tagged as net-next, feel free to revert it. No point, IMO - the fix isn't hard and bisect hazard created by the whole thing is both mild (spurious WARN() in case that used to fail anyway) _and_ won't disappear from reverting, obviously. I'll post a fix later tonight...