Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5627039rwb; Tue, 1 Aug 2023 05:51:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlFoxwqMruUDlZFcZeJ0sDvi0UyiQvhzCZIXXu7eoto0h94RUmTzAYxmtLOfX7HBGF3XiSMI X-Received: by 2002:a17:906:300f:b0:99b:5161:8e0d with SMTP id 15-20020a170906300f00b0099b51618e0dmr2225925ejz.21.1690894261681; Tue, 01 Aug 2023 05:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690894261; cv=none; d=google.com; s=arc-20160816; b=0hWLzGmZx9OVnfZB+o+hZ6NvAxYiZo24bW3Sfbqzs+1mDS3BK5XLkFkxZ7px95DXZu tPEOwt/zjqb474uOSSYLYNUzlTEXFqOTyxV1tAnx5jHYSSCPCj9B3u635OVAzzqHauHC 2ezDezL7kSNC7htZafztWSf1lws8OUkzXW0Rf3z85tEJEs6pXi4cuIriZgyJ6rhnGFr+ GIod1GT8DxVC9O/wd9Ywmry3086IgohQxLyB/rSmZRaNGh7rdlZETvzrCqntGK18rTwd SbVZuWGCoEypkbSd7GI3wh5NP34jnLEZ95IZV+07HrtHrVu6Av5J+/anIUY5WCpv8ryz cVzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=o7u7m5r6JCNVNgDwFw+iFAnr6RWeRgrboJ3NOrZzzYE=; fh=K/fDz/i5AHe4Sp1HKC1x+PHam7TfL5ofnSaqAi3dvKA=; b=wE7JIwplRbvt0hLUsh3a1Q6FInk+l7EVXzwNzzFTSQJ4IBc0stpF6Dxoaskdy5efUd WnxypmvYyy8azOnHywThapRxwYW3fbkgwIhfRWYGMl8IWags+skfDl9nQ0aPxppgVKYl 9fnjVWYkHUh8Ptco6xTc1gx3Sf544WdVGfCVa6LZxHQApXSKrx8OYG2RfFwNrRw64vAo FDi8IL3KqKBxGEvqU3SkOhCup2p1DshnQf03KSbGyfsUZqGVpRrU9fjpftqq3BfOq7gj pVRCnghIlcBCwNEnInh7QW4xuvy7CBF7ZFUDOl0x/zjBPWwj7moPDP71DirLaY+iw7dP jGug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=xU0dreYC; 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 m10-20020a17090607ca00b00988b1c57f15si8366839ejc.272.2023.08.01.05.50.37; Tue, 01 Aug 2023 05:51:01 -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=@infradead.org header.s=bombadil.20210309 header.b=xU0dreYC; 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 S234224AbjHALj2 (ORCPT + 99 others); Tue, 1 Aug 2023 07:39:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233757AbjHALj1 (ORCPT ); Tue, 1 Aug 2023 07:39:27 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5454B1B0; Tue, 1 Aug 2023 04:39:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=o7u7m5r6JCNVNgDwFw+iFAnr6RWeRgrboJ3NOrZzzYE=; b=xU0dreYCSJMm4RPW9+uXO9/tEB 9lTx/NrAXpzGdN6tsjiAUayzJvQKTVoo0Zcy0kKFQ1b+/gLicXA1QmooHDDVziHEgRCv5/Q52vIFF YtkqKMraAbULAldTSnOAKPuzJCwe7Sd/FEYKkf8Q+jXno9eonmPKnW/4e7I1eLXIvO+NZbi603isH aAsd/vJD1Vix2MIFBJf07BbQtWru1RiEWrtiWgG0WSjImNitoINiSXkMZpBGEdS/n1SdM5OJWPiKT kfq6/nh5utIWgjHvQbLsNGndvHBZatc3sxmhEUK6x6Q71GiXSsGJRYmCKXuVvi7MXLwiO/nEt3/Wb fBm8xuCQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qQnii-0027DR-0N; Tue, 01 Aug 2023 11:39:20 +0000 Date: Tue, 1 Aug 2023 04:39:20 -0700 From: Christoph Hellwig To: Qu Wenruo Cc: Christoph Hellwig , Christoph Hellwig , syzbot , clm@fb.com, dsterba@suse.com, johannes.thumshirn@wdc.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [btrfs?] kernel BUG in prepare_to_merge Message-ID: References: <000000000000a3d67705ff730522@google.com> <000000000000f2ca8f0601bef9ca@google.com> <20230731073707.GA31980@lst.de> <358fab94-4eaa-4977-dd69-fc39810f18e0@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 With misc-next and your debug patch I first ran into another assert: [ 250.848976][T35903] assertion failed: 0, in fs/btrfs/relocation.c:2042 [ 250.849963][T35903] ------------[ cut here ]------------ [ 250.850472][T35903] kernel BUG at fs/btrfs/relocation.c:2042! and here is the output from your assert: [ 1378.272143][T189001] BTRFS error (device loop1): reloc tree mismatch, root 8 has no reloc root, expect reloc root key (-8, 132, 8) gen 17 [ 1378.274019][T189001] ------------[ cut here ]------------ [ 1378.274540][T189001] BTRFS: Transaction aborted (error -117) [ 1378.277110][T189001] WARNING: CPU: 3 PID: 189001 at fs/btrfs/relocation.c:1946 prepare_to_merge+0x10e0/0x1460