Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp738356qtx; Mon, 31 Oct 2022 12:40:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6CXQrLrVvQSg01EvAvV68xdruf5UgcK5f0XSfxv7yncXyUOMyD280FEtbEKaK576RgXwu9 X-Received: by 2002:a17:907:2719:b0:782:b261:e9eb with SMTP id w25-20020a170907271900b00782b261e9ebmr15086561ejk.104.1667245240987; Mon, 31 Oct 2022 12:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667245240; cv=none; d=google.com; s=arc-20160816; b=ioOPxtoTMPRoHc5xpEo46xaSDe9ewHpr1a0WCZ1uDMBWr0aCPSYKvxv/XvQpcffZAn 92i0VTsmOrSnMZkBGYu3n0h3j/vkmGBBiD/F2reofx+IuITNndd8DOacCGt3L6v3rnDu 4SDIb+PpoDtsiFNHyuL31Id3hOWYzSB/bieuyc9Q8H6pmj2pW3atrKJTTZg8MSxr5iyx mdOLmO6hJRSlpjAx5cQiPnDkPMKVSFik5BGLjof6TjT67AgQXhvXF8TESDWJPnIz5Daz TdwhilRDnABz5L607Nle4ywosGuDbo9jmEN6Nn2w5I4pqq5c/6v0MnVkcUzRmFfzm9gQ iINA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=MYV5cri+9HnK3IWri6K5wqHucbnY+96ft9BgHsjS9RI=; b=vymSKNauhVMRCa94FFDfVaHOjX65c/cJQrmToXLMO7xspj1yk8XnoaEp7vgffsNFFt seS8yqVJaKsXYlbQNGty7/YzoVikEYoZUHwC6IX2uxMpc3SU/1SZo2/JjKaW+b83By87 stuCmjmcZO8BXOCOK3hdspv72hXQV/8n/DbkPJOSTK/czxZaXaLEvAKrzXtQ3wrhcRLo SGdstfy0MY+vSmL+QyH0rSVA9i9q8SATHS9WHLOV68XL0zne06OyxxfMG2jjpQS2Es7M 2hi3JDvwoLuODdVQBSNT2S/GPMMPe2oDdKkPNbyasJ507EzaD1AuimqbMaRwsanLFqF7 23Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="W76/72Rq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz38-20020a1709077da600b0078da5f6ed9esi9332302ejc.779.2022.10.31.12.40.17; Mon, 31 Oct 2022 12:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="W76/72Rq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229441AbiJaS5Q (ORCPT + 98 others); Mon, 31 Oct 2022 14:57:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiJaS5O (ORCPT ); Mon, 31 Oct 2022 14:57:14 -0400 Received: from mail-vs1-xe36.google.com (mail-vs1-xe36.google.com [IPv6:2607:f8b0:4864:20::e36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B47C21020 for ; Mon, 31 Oct 2022 11:57:12 -0700 (PDT) Received: by mail-vs1-xe36.google.com with SMTP id 3so11937061vsh.5 for ; Mon, 31 Oct 2022 11:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MYV5cri+9HnK3IWri6K5wqHucbnY+96ft9BgHsjS9RI=; b=W76/72RqBQtjLnPqgZ54ZmtlZopTmyDXgMrUGd97TGur1nfvPTIrCbLZaCGH6MNb9U N1tim/PcJyN+2ZhG2ccBoIrQiSZfcKDV157X1Db/tti0An7B+C1A8k/pdgT+SQe58mGu 4V8ISOnQYo6qKqrUSrD2SF8MTyAichuKjSAm6+lZwBYdzs8GYf1H1U+OG0XBZY1WuK+U p9AxrAn7CpUaEvV/opVaURLFDrXBEu4XukuDpWO2xZo9qgWwKI7gpO8pBFnkpYcNbV1B 6hPcpsWhY58zhP4p8sjnYJ72FCvYBQUGmCWNeMkxBaRSXftsKqcKeYvKSb7FnJgYO/yN lSww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MYV5cri+9HnK3IWri6K5wqHucbnY+96ft9BgHsjS9RI=; b=F4aZo3QZRNM1Sc516oHLUnbfIivLQmC77+JFvIJ9+nWpPWvQwMDc0IHDNiZIS1fcMM B9UP/h3YQGnrah7Fhw6M/lUbo60nykcKODEUQmpxQ3B6Ikkxp6cGi/Y5gjra0I06FAvl JV2vyE0k3pgBtqPe+34OhG63uUeLVGAk5RxWU7v8NzPQGVWwfk7l03WifohKmx1ktgK0 vh8LwbFMyDonHdNvsHt8ZZqZX7Ms+CBWMRrb/DOZAbjx298ntbCDNFzKaaUQmrIF3QG5 DFlxKPWIJ2pjOmk8fkAUPaMmd0YSF1UqpuCMilt6NW83VSixW/HTl+A7musWL8Aqpkvm 2BRQ== X-Gm-Message-State: ACrzQf2Zr5/jptS0phbwps8/eMoTF1e+uvFC9nGwn+9ZHhIBvwZE5HJ9 zAaevM6v+22z0FNVm8DC8uvOL7n8HxPqMaaSaV5HKw== X-Received: by 2002:a05:6102:3714:b0:3ac:f4c2:436 with SMTP id s20-20020a056102371400b003acf4c20436mr686439vst.80.1667242631728; Mon, 31 Oct 2022 11:57:11 -0700 (PDT) MIME-Version: 1.0 References: <0000000000000d9d6f05ec498263@google.com> <000000000000fa42c105ec5339ec@google.com> In-Reply-To: From: Aleksandr Nogikh Date: Mon, 31 Oct 2022 11:57:00 -0700 Message-ID: Subject: Re: [syzbot] WARNING in btrfs_space_info_update_bytes_may_use To: Matthew Wilcox Cc: syzbot , akpm@linux-foundation.org, clm@fb.com, dsterba@suse.com, hch@lst.de, josef@toxicpanda.com, linmiaohe@huawei.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, torvalds@linux-foundation.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 31, 2022 at 6:50 AM Matthew Wilcox wrote: > > Dmitry, I don't see a way to tell syzbot that its bisection has gone > astray. Can you add one or document it if it already exists? No, unfortunately it's not possible now. I've filed an issue: https://github.com/google/syzkaller/issues/3491 > > On Mon, Oct 31, 2022 at 04:51:22AM -0700, syzbot wrote: > > syzbot has bisected this issue to: > > > > commit 0c7c575df56b957390206deb018c41acbb412159 > > Author: Matthew Wilcox (Oracle) > > Date: Wed Feb 24 20:01:52 2021 +0000 > > > > mm/filemap: remove dynamically allocated array from filemap_read > > This change affects the read path. The crash happens in the unmount > path. The data structure that's being checked is modified in the write > path. I just can't see how this commit is in any way related. Most likely the bisection pointed at your patch because it removed kmalloc while the reproducer for the bug does fault injection (see the "(fail_nth: 10)" line in syz repro). So it might have inadvertently made the issue more visible to the fuzzer. > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=119e21b6880000 > > start commit: b229b6ca5abb Merge tag 'perf-tools-fixes-for-v6.1-2022-10-.. > > git tree: upstream > > final oops: https://syzkaller.appspot.com/x/report.txt?x=139e21b6880000 > > console output: https://syzkaller.appspot.com/x/log.txt?x=159e21b6880000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=a66c6c673fb555e8 > > dashboard link: https://syzkaller.appspot.com/bug?extid=8edfa01e46fd9fe3fbfb > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17db9ab1880000 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=124e21b6880000 > > > > Reported-by: syzbot+8edfa01e46fd9fe3fbfb@syzkaller.appspotmail.com > > Fixes: 0c7c575df56b ("mm/filemap: remove dynamically allocated array from filemap_read") > > > > For information about bisection process see: https://goo.gl/tpsmEJ#bisection > > -- > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/Y1/SqIuP4tbszPAW%40casper.infradead.org.