Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1325808ybl; Mon, 2 Dec 2019 01:36:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwA5euIef6UUMdtb9AjxFRB7Bv0Y+0v0CDDJC8Z1w90UrheeKGOBALO4z4PxJMKr31Q+8nI X-Received: by 2002:aa7:c742:: with SMTP id c2mr3808851eds.261.1575279371229; Mon, 02 Dec 2019 01:36:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575279371; cv=none; d=google.com; s=arc-20160816; b=jh1O/Gu4r7dofvfd0mfdpfG+E8Va2j1TWtOD6EZy3Bv/fwvB75on4Nbmet84tr1oCq uKtsFs6ymgOSI7EtNlj84/sGqAR4YP/J14osp/rP890Cd/PpDgkmAYDjPzt5dPMJjif8 1CWnXTkCmtTxxQ4oYy0ASo3QJBVCdW9xoMAvPuXs0MXM5LD/Ze+XYFq6a+ojcs8LpG5B jZ/hYId5S0u3cEeQSs7PJBGi2OmhgqYCUEZ1HO1ke8X+JVNlRe5ahF3ElgpqCGd8EHZ1 +CfOPxmiV6yOl+T4cWH0ipheKwT2h1p8TrW7L78g5I7gcP5fjls3GM5l6tqhA0VwUixV mHAg== 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:mail-followup-to :message-id:subject:cc:to:from:date; bh=ApMRXhHyU2ldI6ykBLr3bOCmnjIbhAMGHMn6JFLVL4s=; b=xDUMo2f9Gvj0rhf/LVdQRyIpyMNICqJlQ0O09ueKZcqdUJyMfVk6ZtXn5HJNHqQ592 vI4xKX7Mbar1xOc6j+k6WQ7+2t4Zs/LHE5tUKSF4M7UgH/8PkaYJyhzUHGPLxlrH6yku 1lTCJy97V10y0WYayrUY8fR8SyXfTVg8XErhoeXd8g18C4Go+el3JaQf022pfLkU6J0s Zsj9R59+RRU3Q7h+4u+4O9p+tGlitGbrgp6pUn6QRlPfkZRehycbV1ZO2k348Y6Drgn2 fg1hopkivsQvUPlwt9NgLAjFNu/4AuPVEsRc3rX/zX8EiJJB930jN7FBQsCCLk+6SpLq RzgA== 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 f17si19926205eja.153.2019.12.02.01.35.46; Mon, 02 Dec 2019 01:36:11 -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 S1727049AbfLBJcP (ORCPT + 99 others); Mon, 2 Dec 2019 04:32:15 -0500 Received: from mail104.syd.optusnet.com.au ([211.29.132.246]:49079 "EHLO mail104.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbfLBJcP (ORCPT ); Mon, 2 Dec 2019 04:32:15 -0500 Received: from dimstar.local.net (n122-110-44-45.sun2.vic.optusnet.com.au [122.110.44.45]) by mail104.syd.optusnet.com.au (Postfix) with SMTP id 1E3F57EB47C for ; Mon, 2 Dec 2019 20:32:02 +1100 (AEDT) Received: (qmail 27087 invoked by uid 501); 2 Dec 2019 09:31:59 -0000 Date: Mon, 2 Dec 2019 20:31:59 +1100 From: Duncan Roe To: Dmitry Vyukov Cc: Al Viro , Chris Metcalf , coreteam@netfilter.org, David Miller , Chen Gang , Patrick McHardy , Jozsef Kadlecsik , linux-fsdevel , LKML , netdev , NetFilter , Pablo Neira Ayuso , syzkaller-bugs Subject: Re: KASAN: use-after-free Read in blkdev_get Message-ID: <20191202093159.GA3185@dimstar.local.net> Mail-Followup-To: Dmitry Vyukov , Al Viro , Chris Metcalf , coreteam@netfilter.org, David Miller , Chen Gang , Patrick McHardy , Jozsef Kadlecsik , linux-fsdevel , LKML , netdev , NetFilter , Pablo Neira Ayuso , syzkaller-bugs References: <000000000000e59aab056e8873ae@google.com> <0000000000000beff305981c5ac6@google.com> <20191124193035.GA4203@ZenIV.linux.org.uk> <20191130110645.GA4405@dimstar.local.net> <20191201000439.GA15496@dimstar.local.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=W5xGqiek c=1 sm=1 tr=0 a=4DzML1vCOQ6Odsy8BUtSXQ==:117 a=4DzML1vCOQ6Odsy8BUtSXQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=pxVhFHJ0LMsA:10 a=RSmzAf-M6YYA:10 a=PO7r1zJSAAAA:8 a=7QvuB2UPAAAA:8 a=edf1wS77AAAA:8 a=hSkVLCK3AAAA:8 a=mzoz-TVAAAAA:20 a=VwQbUJbxAAAA:8 a=kGbAZRCgAAAA:20 a=RZrVL_RPe_AL--TquSQA:9 a=CjuIK1q_8ugA:10 a=vVHabExCe68A:10 a=PyAPxfarwdVEPLbpdMBu:22 a=DcSpbTIhAlouE1Uv7lRv:22 a=cQPPKAXgyycSBL8etih5:22 a=AjGcO6oz07-iQ99wixmX:22 a=pHzHmUro8NiASowvMSCR:22 a=Ew2E2A-JSTLzCXPT_086:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 02, 2019 at 07:47:11AM +0100, Dmitry Vyukov wrote: > On Sun, Dec 1, 2019 at 1:04 AM Duncan Roe wrote: > > > > On Sat, Nov 30, 2019 at 04:53:12PM +0100, Dmitry Vyukov wrote: > > > On Sat, Nov 30, 2019 at 12:06 PM Duncan Roe wrote: > > > > > > syzbot has bisected this bug to: > > > > > > > > > > > > commit 77ef8f5177599efd0cedeb52c1950c1bd73fa5e3 > > > > > > Author: Chris Metcalf > > > > > > Date: Mon Jan 25 20:05:34 2016 +0000 > > > > > > > > > > > > tile kgdb: fix bug in copy to gdb regs, and optimize memset > > > > > > > > > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1131bc0ee00000 > > > > > > start commit: f5b7769e Revert "debugfs: inode: debugfs_create_dir uses m.. > > > > > > git tree: upstream > > > > > > final crash: https://syzkaller.appspot.com/x/report.txt?x=1331bc0ee00000 > > > > > > console output: https://syzkaller.appspot.com/x/log.txt?x=1531bc0ee00000 > > > > > > kernel config: https://syzkaller.appspot.com/x/.config?x=709f8187af941e84 > > > > > > dashboard link: https://syzkaller.appspot.com/bug?extid=eaeb616d85c9a0afec7d > > > > > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=177f898f800000 > > > > > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=147eb85f800000 > > > > > > > > > > > > Reported-by: syzbot+eaeb616d85c9a0afec7d@syzkaller.appspotmail.com > > > > > > Fixes: 77ef8f517759 ("tile kgdb: fix bug in copy to gdb regs, and optimize > > > > > > memset") > > > > > > > > > > > > For information about bisection process see: https://goo.gl/tpsmEJ#bisection > > > > > > > > > > Seriously? How can the commit in question (limited to arch/tile/kernel/kgdb.c) > > > > > possibly affect a bug that manages to produce a crash report with > > > > > RSP: 0018:ffffffff82e03eb8 EFLAGS: 00000282 > > > > > RAX: 0000000000000000 RBX: ffffffff82e00000 RCX: 0000000000000000 > > > > > RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff81088779 > > > > > RBP: ffffffff82e03eb8 R08: 0000000000000000 R09: 0000000000000001 > > > > > R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 > > > > > R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff82e00000 > > > > > FS: 0000000000000000(0000) GS:ffff88021fc00000(0000) knlGS:0000000000000000 > > > > > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > > > > CR2: 000000c420447ff8 CR3: 0000000213184000 CR4: 00000000001406f0 > > > > > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > > > > > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > > > > > in it? Unless something very odd has happened to tile, this crash has > > > > > been observed on 64bit x86; the names of registers alone are enough > > > > > to be certain of that. > > > > > > > > > > And the binaries produced by an x86 build should not be affected by any > > > > > changes in arch/tile; not unless something is very wrong with the build > > > > > system. It's not even that this commit has fixed an earlier bug that > > > > > used to mask the one manifested here - it really should have had zero > > > > > impact on x86 builds, period. > > > > > > > > > > So I'm sorry, but I'm calling bullshit. Something's quite wrong with > > > > > the bot - either its build system or the bisection process. > > > > > > > > The acid test would be: does reverting that commit make the problem go away? > > > > > > > > See, for example, https://bugzilla.kernel.org/show_bug.cgi?id=203935 > > > > > > > > Cheers ... Duncan. > > > > > > This is done as part of any bisection by definition, right? The test > > > was done on the previous commit (effectively this one reverted) and no > > > crash was observed. Otherwise bisection would have been pointed to a > > > different commit. > > > > > Agree that's what bisecting does. What I had in mind was to make a patch to > > remove the identified commit, and apply that to the most recent revision > > possible. Then see if that makes the problem go away. > > I wonder in what percent of cases: > 1. It gives signal different from reverting the commit in place. > 2. The revert can be cleanly applied to head. > 3. The revert does not introduce other bugs. > > For this to be worth doing, all these 3 should be reasonably high. I > can imagine 3 may be high (?), but I am not sure about 1 and 2. The whole arch/tile directory no longer exists, so the patch cannot be applied. If I had realised that earlier, I would not have posted at all. Sorry for the noise.