Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp852039rwi; Mon, 31 Oct 2022 08:16:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Vo7mtwY9w1wNSWYqXYRtQB8mKjqWe5Goul8Jf3GQgfYBrzuSse/ipdy9ash4if5VLDGgm X-Received: by 2002:a17:907:980e:b0:78d:b6d5:661e with SMTP id ji14-20020a170907980e00b0078db6d5661emr13663845ejc.46.1667229401250; Mon, 31 Oct 2022 08:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667229401; cv=none; d=google.com; s=arc-20160816; b=zUxxJ2LUx1lLEfm13+XuZVjuWzwR/q+HhNZ+tBiZs2Fy+Qu5EC2Fpq6NYWXyr+7kvm FD1R4BwryCi1mxpdvhtZmq+lqTNxb40eDmvhoKWxN/ig0HaszsznwTnf8OvVmBYzUuP2 MgIr15YjHQdjWNLHb/tkEK32DARd7lBA/YQKuoy73wq4Fo5kuCMgfwDVarq3PfIt2etR LqDYMpKXfbqtKv7yqwRTy9h+cA3ei5t+HD4Zko7SGWmpyZ/TEAoAgIbkxwq3CSGnOlrF vcidNW6CzbTwADUjnandblg1sSUeB5Pb8UOdUK9CPVMNOLtteaQ3LEziKJnBXQGiAuIz S7EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=l6ZBtYwIEqSS/WVwqwtcl27nEMPkHYL68oG1bMw5MCM=; b=TA5RU9UNYEzxxtUAy8aPTSGGKSq4EvEXdjZbKApzHejWRNmfHVxVtCiWVpgqhALWHE nHUpoNj+EwDmz1RyqCidogdYwBsXU/uyVCwRIsE+LorUXaFrVkjFkhDeTUTmzWQm2rHg W7DFX8inykZfsqujmwjsAUGSVMUCrG6Q9JSqD++iCMO9eKFy/aEz82uQEQOSBSKVJmzy FlTJJd+ePykGJxHrhqgtH7j92FR+Ya9uaJfCEWKPan7IsOS4VN2M44az1/s1pFemhddO 0BqHq8mSFE0ASqyaDCnHaHRLHbXgetHKhzcWlt6fZ1DhX0hKEnsMRdd8R8TQVsv8/bfW Kgfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="tYe/sofV"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb41-20020a170907962900b007abafe45ad3si10027514ejc.252.2022.10.31.08.15.53; Mon, 31 Oct 2022 08:16:41 -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=@suse.cz header.s=susede2_rsa header.b="tYe/sofV"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231567AbiJaOYO (ORCPT + 98 others); Mon, 31 Oct 2022 10:24:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231528AbiJaOYL (ORCPT ); Mon, 31 Oct 2022 10:24:11 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E82EC04; Mon, 31 Oct 2022 07:24:10 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D7C9E22CEC; Mon, 31 Oct 2022 14:24:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1667226248; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=l6ZBtYwIEqSS/WVwqwtcl27nEMPkHYL68oG1bMw5MCM=; b=tYe/sofVRIcZGvG4tCulhIOYw/tWmcgq29wEu9HbCqMAvuQv4P+D7XTFVfNW3XRkjJ0Xp0 vcLt/7NWjsUZB0yZYzsmJT3KOTOzDCqun2FGqIYpiUAJLY/vaoE11vy7U6u8EuVBgmtEbd 4YOa5qIfyW9n5j/WDAhFFYZqJ3gWyfI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1667226248; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=l6ZBtYwIEqSS/WVwqwtcl27nEMPkHYL68oG1bMw5MCM=; b=HkQLuSxAuJz+FMxDcjnRQG1Rt6mzcGjclK2BoigEo22GqdtDQGxqPPiibOxJmsxE3Mqimu sJq/mAbR6jNyMrCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 87A7E13451; Mon, 31 Oct 2022 14:24:08 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id lIcoIIjaX2NZeAAAMHmgww (envelope-from ); Mon, 31 Oct 2022 14:24:08 +0000 Date: Mon, 31 Oct 2022 15:23:51 +0100 From: David Sterba 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 Subject: Re: [syzbot] WARNING in btrfs_space_info_update_bytes_may_use Message-ID: <20221031142351.GA5824@twin.jikos.cz> Reply-To: dsterba@suse.cz References: <0000000000000d9d6f05ec498263@google.com> <000000000000fa42c105ec5339ec@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL 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 01:50:32PM +0000, 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? > > 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. Yeah I agree the bisection hasn't identified the correct commit. > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=119e21b6880000 > > start commit: b229b6ca5abb Merge tag 'perf-tools-fixes-for-v6.1-2022-10-.. The starting commit is not related to btrfs but the bisection hit the warning basically on each run so it's not completely random. There might be some timing change that triggers the warning, likely it's caused by some the space accounting bug.