Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp434364pxk; Thu, 1 Oct 2020 06:10:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0btnClVrgYVof6UX2FvOv4HrqC/crZopcpcslwMIpxnClgzwm8Ry4VhteCX6u+Gsyv1Sd X-Received: by 2002:a05:6402:1641:: with SMTP id s1mr8415046edx.66.1601557852146; Thu, 01 Oct 2020 06:10:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601557852; cv=none; d=google.com; s=arc-20160816; b=QyLlgs4/+SvwaWtTK/bWbvTr9Ub3pwc+sy8fUTyrk8EnFP0T0CVjVRxevw3Q3eM0Yi STr62glc96krsiZui3UdLCdLuHVYw4JwsokhtjqFFZWOrQoc5N8c2Yc/WBfDqgLrQuI7 etySWaUzFVZbolPBEhX5MAX5SOC0fRa1MROBsKPa64pB8Aw7yENEz/lum9A01ErqMfab +wgCgX658LVs6fTk4z+G8h54chddjaSs23T/0eUUGp115Vldb4b47J/+Ns0FKi2SgMib Npe7r4y315vWQen/3cJDx2v9xolp7UAYh+415l7t5cCdGTuL3VMw9rW8osKgOTuPwS9F 951g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:to:subject:message-id :date:from:in-reply-to:references:mime-version:dkim-signature; bh=DsXN/R7iGt42hx1lRS3IS/+IybE+fmPcIsKzKlGfRFo=; b=TgXOi8wD3zrkIObF19cKdE8P3JDe/k2lRIjuAyP2s9s42GikeETxZ42r7mI4nnPpbl ACQoOisp2cx+woaqy0ZH1CYDvEnbfNttQ1ua0xIcv1SoOIN05ykmS+Pt0p73vAUNKVX2 OPTKRpXRXjsgbUj/7mhR+bbsbyuND8FTFvy8qrAukE1zx+4rpvHaaUbX0l10cBZNB83x eeL5VOmh9WSdXULOJ/dMJMx7d8YGGVEwCWrRr6oolDQi6za6tlf20FVK+qVh8cENPiNB 9wr89tzqjs70s3dCWF6V08WsQMi1rTcvCIagYcEFltOnZt0Lyq39YAFJTy7gojXbka8/ ScHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mkxWK5c9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id m23si3372752ejo.333.2020.10.01.06.10.24; Thu, 01 Oct 2020 06:10:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mkxWK5c9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1732048AbgJANIs (ORCPT + 99 others); Thu, 1 Oct 2020 09:08:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731952AbgJANIr (ORCPT ); Thu, 1 Oct 2020 09:08:47 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1E5EC0613E2 for ; Thu, 1 Oct 2020 06:08:47 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id o5so5122015qke.12 for ; Thu, 01 Oct 2020 06:08:47 -0700 (PDT) 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 :content-transfer-encoding; bh=DsXN/R7iGt42hx1lRS3IS/+IybE+fmPcIsKzKlGfRFo=; b=mkxWK5c9k0IydjRjqVsPf+titEIZ62Vyl37BRCPxDoJulw9RvZoa3yeAhpWKvsy1Ul sL4LufUVQXh/+b7hDMY78bdwR6nS+SoNvNMW10JSRiq/Mjm1BYTgKaEQvNcyIFPpkTTk IYkevRvh4wd1o28CBzaFZadl2jjDAF4JttKCFOYt0DQE1E3nBCI7jy5uvkI2M4H+dcMF P/k8MPPG9R4/1mpZe0FhWovLawnXtb/tWCnV/PlGemE9Ra72SJMPJGHqe+M5T9YGbIFK c0cNVXNl0Qur4WJHcKT63gPvELXh+6U4BkX16kg7AtH9BRTZ3RPCHRS3XYlsYqICVXht yYvg== 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:content-transfer-encoding; bh=DsXN/R7iGt42hx1lRS3IS/+IybE+fmPcIsKzKlGfRFo=; b=nALa6GLlCGi1bJBHjRqSWhLqgeG590o7yZBCan0LsXB4SVfMeBEGqujDnxFcCilFR+ r7H2n+hwKx4TYrZBhXC5KP9p2BjhU9bGxoLI/muYSNZXSrTQ2qvegfOAludqj6GTSl7y dlplsvcrONUfUashcIwLnBkRdaJnNDtnWLo0ew8CeMFS6O0lvIGcHshTC4keBoduPwlp pka8KItQNs5mzg5qO6r4uBFDX/vDiW2+AuK8TzVQ/PHDRqXFiVASpORwILneD+Y9Cmqh YSm83cwDpEOSsdi9Bl2q3MSluD/8Eae/vwFmtiPR5txPU2EWKXqy+2s8jmiLaBYsWkue rU3w== X-Gm-Message-State: AOAM532/jvnuxkcGzpuKrlbea8Dpg5tKfxX5gcnL5rG2MIBYx6eynluc zf1WvIH+speTogt81v9sSfrV6TplfCkyyque3jZusw== X-Received: by 2002:a37:a4c5:: with SMTP id n188mr7692334qke.8.1601557725617; Thu, 01 Oct 2020 06:08:45 -0700 (PDT) MIME-Version: 1.0 References: <0000000000001fe79005afbf52ea@google.com> <20200930165756.GQ6756@twin.jikos.cz> <20200930180522.GR6756@twin.jikos.cz> In-Reply-To: From: Dmitry Vyukov Date: Thu, 1 Oct 2020 15:08:34 +0200 Message-ID: Subject: Re: KASAN: use-after-free Read in btrfs_scan_one_device To: dsterba@suse.cz, syzbot , Chris Mason , dsterba@suse.com, Josef Bacik , linux-btrfs@vger.kernel.org, LKML , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 1, 2020 at 3:05 PM Dmitry Vyukov wrote: > > On Wed, Sep 30, 2020 at 8:06 PM David Sterba wrote: > > > > On Wed, Sep 30, 2020 at 06:57:56PM +0200, David Sterba wrote: > > > On Sun, Sep 20, 2020 at 07:12:14AM -0700, syzbot wrote: > > > > Hello, > > > > > > > > syzbot found the following issue on: > > > > > > > > HEAD commit: eb5f95f1 Merge tag 's390-5.9-6' of git://git.kernel= .org/pu.. > > > > git tree: upstream > > > > console output: https://syzkaller.appspot.com/x/log.txt?x=3D10a0a8b= b900000 > > > > kernel config: https://syzkaller.appspot.com/x/.config?x=3Dffe85b1= 97a57c180 > > > > dashboard link: https://syzkaller.appspot.com/bug?extid=3D582e66e5e= df36a22c7b0 > > > > compiler: gcc (GCC) 10.1.0-syz 20200507 > > > > > > > > Unfortunately, I don't have any reproducer for this issue yet. > > > > > > > > IMPORTANT: if you fix the issue, please add the following tag to th= e commit: > > > > Reported-by: syzbot+582e66e5edf36a22c7b0@syzkaller.appspotmail.com > > > > > > #syz fix: btrfs: fix overflow when copying corrupt csums for a messag= e > > > > Johannes spotted that this is not the right fix for this report, I don'= t > > know how to tell syzbot to revert the 'fix:' command, there isn't > > 'unfix' (like there's 'undup'). > > Hi David, > > I've added "unfix" command: > https://github.com/google/syzkaller/pull/2156 > > Let's give it a try: > #syz unfix > > Thanks Voil=C3=A0! Unfixed: https://syzkaller.appspot.com/bug?extid=3D582e66e5edf36a22c7b0