Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp9468147ybc; Sat, 30 Nov 2019 07:54:52 -0800 (PST) X-Google-Smtp-Source: APXvYqzUO8VS9cxEP31mwzo4HQ/yRCcWkqL2KsMPnUM5yLRsfpnkeZHCFj23vhLWJ0eIURIJgoyi X-Received: by 2002:a50:d648:: with SMTP id c8mr22402922edj.20.1575129292143; Sat, 30 Nov 2019 07:54:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575129292; cv=none; d=google.com; s=arc-20160816; b=K9Pbm6PhP5T0JUC3yvRhbpLXqly8Hlh79shEWrlmvYM3gPWkBPcv7KxLcmvsuYlANL HO1sxWjlqromTeSXU7rju+YMzeZsAK/KM66WuoVmeohyQZJVUCDhP6vv1IWWHpxAF7nD rH/m+7FIX1A1URM7TRB813PO4A/D0QwywBH8fgMNgQwhopzibA2gdrX901kHuWmR+DpA ReHHfPynkp5GTMj5ydqSbQfZ78xbIP3FSoYvyTNn0bjK55za/DFIkrcX8ZYCQAikUVs0 Mx9qHbJqZtxJVeSUjVfioNc1OywPZoehDpX7E4hwr/jZ1YPsw1P02BAQbywQB4kXzVGT aKdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jdRfuJtU8uqmsqgyTo2pn3PG7sCQI4AYvfljBHLyej8=; b=JD31gGddM9R3HWbUFWnjF8gIhDQb5gPHrEy0jFwwvsaR+/D8rCOFLG+/I6/lbwUAgR vHYXJJeqfQ69B8tFLTAR/qGIALygk+lImK5JEMi4F0WP1177d9MahUShNp3xRtMmTDxp JE1SoYkrZK16pEbrMeasAuRqYxyepRPleRygjBWsosREbqXjh7Z2SAnN6qV+ZDO3T7eC UMTEBX2oC4+Tdt0ElLraEGSQ2ky87Ntf9BlV8IN4lAoTiZOmhyIRpTQg6/LLjQwhVwjT flUlCBReKzqKgGq7aEk2lXUq23K1QRqf2u2sbyuG2TOIf7fAXalJrix/egZjyOkA0zqi BiPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=h9Xa8Eyc; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si3156648edr.399.2019.11.30.07.54.25; Sat, 30 Nov 2019 07:54:52 -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=@google.com header.s=20161025 header.b=h9Xa8Eyc; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726981AbfK3PxZ (ORCPT + 99 others); Sat, 30 Nov 2019 10:53:25 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:45010 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726497AbfK3PxY (ORCPT ); Sat, 30 Nov 2019 10:53:24 -0500 Received: by mail-qt1-f193.google.com with SMTP id g24so29198772qtq.11 for ; Sat, 30 Nov 2019 07:53:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=jdRfuJtU8uqmsqgyTo2pn3PG7sCQI4AYvfljBHLyej8=; b=h9Xa8Eyclllyo//fAfdA6VQ/NNyTP9f+uLFtD4bmksqFDq4S1bbFxwzDeEJttovLA+ mnwtZFGkAVHm2+wV2IzyZoYpsKsJ2mGHYOGv/vz+DTZx2bwuZsa1brlObLw2VA+4ZGN6 Nw9LyJRgKaSgaDal3R88V8Juyb61wmzvdJFLNs4LxfF7Zx10YTWNLoSBEOFLPEZwbjtM htYm2/jz6i4wavsnGNSvO3yVXMGN0MBqufBY3UhFTkEhs20UhTH4m4c5ljTqY/e6b63v /i5m96jPlK/2c5m63NicterXuUVD9gx3YQMVkaWwLLAtjOLkyi5NgBTXzvjoFEiz2GNl tmXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=jdRfuJtU8uqmsqgyTo2pn3PG7sCQI4AYvfljBHLyej8=; b=mww6rguVclzGvS0xpodwD1PBPnED4xzw8a12j2wym3DI40YLLlGOLMtN3VMV87mfQN JH7GnJG16XDhlwgGtwDaX3rQLPMijT0I/N0cujQ98XLC6XEtL+BGa6v9+YoaL8j4uvlz /jmH56mdcL1rLDUnDcTj34XcWjvTq6bTp/WfR8CxV6hqgNEKmuhZyIC5IQW4AEzz5WY2 wPJUNeFNwRh1plv0ZZy9MpVMDkWbmdKHQ469zz/GNGyHewDSBEnho9Jn7WltQ888rCUX ugBv00uAnjpKAyUoM9Mew9v6nbTC+4Mbq+CZIyz9yJhYiqPzmbvjohiugLhZXc5qLqDL h1xg== X-Gm-Message-State: APjAAAUZ6K2ywWXdxozISVss8VOBgx9YHIqKiKk2e4T8G3V9NuB889Jn d++y58n+IP5dWmY43fFmcCF+7Ezp8jwdVdXMteXlrQ== X-Received: by 2002:ac8:3905:: with SMTP id s5mr40808406qtb.158.1575129203287; Sat, 30 Nov 2019 07:53:23 -0800 (PST) MIME-Version: 1.0 References: <000000000000e59aab056e8873ae@google.com> <0000000000000beff305981c5ac6@google.com> <20191124193035.GA4203@ZenIV.linux.org.uk> <20191130110645.GA4405@dimstar.local.net> In-Reply-To: <20191130110645.GA4405@dimstar.local.net> From: Dmitry Vyukov Date: Sat, 30 Nov 2019 16:53:12 +0100 Message-ID: Subject: Re: KASAN: use-after-free Read in blkdev_get To: Al Viro , Chris Metcalf , coreteam@netfilter.org, David Miller , Dmitry Vyukov , Chen Gang , Patrick McHardy , Jozsef Kadlecsik , linux-fsdevel , LKML , netdev , NetFilter , Pablo Neira Ayuso , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.