Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24184762rwd; Sat, 1 Jul 2023 14:29:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5GK+YTST6zoC0atVV9rv98w1aaF6Pkp8p8rLQRg1b0OJ7CAc9W1hD5etpUrBP4pNokuAVH X-Received: by 2002:a4a:49c1:0:b0:563:3a08:1cb4 with SMTP id z184-20020a4a49c1000000b005633a081cb4mr5580800ooa.0.1688246970274; Sat, 01 Jul 2023 14:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688246970; cv=none; d=google.com; s=arc-20160816; b=YWKuLRiJhiY9qg/CfFh8owCQT7vLT2PWHkPuu4EuZnmLcvV9nE6P0+UU4IFOQP6tu3 OSaf1TkZ5CQ17Ef/tixP6lQIjwW2FgO7WSgG0kqGWbi3GOWisVXtygSR3matT8+7dyb1 ef34lysCBadF3kLpoMEM9OHxaBprNClu6Wk9SCkGPRLEH3Q16aOk8kELPIT9dcohLQNa uhxqw/f8XiHGG8FOVSaOqpwhJBcUfE0KeqZBaLZQyKNP2u0IgJu+x2M/cvVJb1hQfafy vBR4mWnFpWqx4V1AOYssPPmf+9CpOQA4+FnnyMr9scam3qdGxB9BJj+5eTkqT4geWceZ 4YGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=Lko05gm0yFKNW9JXkfXptRbd6tL+MYTjGoefCIzDYMQ=; fh=UmHS1YeHMp12xTRagbn+gVMKO4GLRpzN+/whL82ZjlM=; b=tBfXKF6/ZcrXy+B1aFWe/m21Q/na7B8lEngE9VeXd1LrjzQ9HgUfgkMmStcDiuRTbY uMnrHXtmgYnsBl2hV2oWrP5YN8YBtLSTUFGoppKXHzyREmtirG+ZC7grAuEk8hDnaFCn Xumzq2yoK0+F/sYhwbhvuh74Hr/Veq1QfXA6SzDvf39IXx7W8/t9oW8HvND784+ZEF58 pcQvornooTc57DQILOfbz3va0aBTPZ89n8uACjd/X4yq4GxvioOp6pRAgLSVoAAlWWHU kl67eBXS27GoeYg0QHNT9IcuhaVJz3Kx5Qiv41aQFriB1kr6oUa7ClsIvcGPrsEan3Zs 9ceQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hi3-20020a17090b30c300b002636d222400si4751550pjb.14.2023.07.01.14.29.09; Sat, 01 Jul 2023 14:29:30 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229636AbjGAUqI (ORCPT + 99 others); Sat, 1 Jul 2023 16:46:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbjGAUqH (ORCPT ); Sat, 1 Jul 2023 16:46:07 -0400 Received: from mail-pl1-f207.google.com (mail-pl1-f207.google.com [209.85.214.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 000A719A0 for ; Sat, 1 Jul 2023 13:46:04 -0700 (PDT) Received: by mail-pl1-f207.google.com with SMTP id d9443c01a7336-1b7f8598d5aso39676195ad.0 for ; Sat, 01 Jul 2023 13:46:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688244364; x=1690836364; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Lko05gm0yFKNW9JXkfXptRbd6tL+MYTjGoefCIzDYMQ=; b=RnBs0ZhNbe7fWE7xXKHcoeDBleF/oTDF3Y1OEnS3S+xF7xJtE12aKN4PWElU3RJyPO J6WbFFgzWnRMSCLbcHanXnlyAHnxnEHG99I/hvSkXfK0MD1TRDyB0NJ5XECwt8u6Ekzx 9tohcGa/GcY8/mfIs5K75Ru2gquF1jmopCZrGgTxuOLDsXwbMKb1WaiGJvRu/Zbx0/3b 53rsJPliOtx7TWnQ0aK1L7hx2aSj87Y81eFBuKkoH/A62BDiLUZ9nlGO6bODAK2sbYsp eaSQyK9SojxIcH0jODseI7tu1GDn5+44Q5wzRWa9AZaUWwmoGsTa6Yn4fZDh6gnqFELa LUjg== X-Gm-Message-State: ABy/qLbuSVH7eINTLOGDbJ8LchelKR86zYmrAD8wZgeXXw+oNSSHsd+g TEdMrL1Q03Azd58HH6oNgQbFeDslC/YlelnyBUnORSvEQ/Ml MIME-Version: 1.0 X-Received: by 2002:a17:902:ea0a:b0:1ad:fa23:dd87 with SMTP id s10-20020a170902ea0a00b001adfa23dd87mr5011889plg.5.1688244364496; Sat, 01 Jul 2023 13:46:04 -0700 (PDT) Date: Sat, 01 Jul 2023 13:46:04 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000a3d67705ff730522@google.com> Subject: [syzbot] [btrfs?] kernel BUG in prepare_to_merge From: syzbot To: clm@fb.com, dsterba@suse.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 Hello, syzbot found the following issue on: HEAD commit: 533925cb7604 Merge tag 'riscv-for-linus-6.5-mw1' of git://.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14d8b610a80000 kernel config: https://syzkaller.appspot.com/x/.config?x=12464973c17d2b37 dashboard link: https://syzkaller.appspot.com/bug?extid=ae97a827ae1c3336bbb4 compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/7b23da6a6f6c/disk-533925cb.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/f163e9ea9946/vmlinux-533925cb.xz kernel image: https://storage.googleapis.com/syzbot-assets/5b943aa5a1e1/bzImage-533925cb.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+ae97a827ae1c3336bbb4@syzkaller.appspotmail.com assertion failed: root->reloc_root == reloc_root, in fs/btrfs/relocation.c:1919 ------------[ cut here ]------------ kernel BUG at fs/btrfs/relocation.c:1919! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 9904 Comm: syz-executor.3 Not tainted 6.4.0-syzkaller-08881-g533925cb7604 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:prepare_to_merge+0xbb2/0xc40 fs/btrfs/relocation.c:1919 Code: fe e9 f5 f7 ff ff e8 6d 62 ec fd 48 c7 c7 20 5e 4b 8b 48 c7 c6 c0 6d 4b 8b 48 c7 c2 a0 5e 4b 8b b9 7f 07 00 00 e8 8e d8 15 07 <0f> 0b e8 d7 17 18 07 f3 0f 1e fa e8 3e 62 ec fd 43 80 3c 2f 00 74 RSP: 0018:ffffc9000325f760 EFLAGS: 00010246 RAX: 000000000000004f RBX: ffff888075644030 RCX: 1481ccc522da5800 RDX: ffffc90005c09000 RSI: 00000000000364ca RDI: 00000000000364cb RBP: ffffc9000325f870 R08: ffffffff816f33ac R09: 1ffff9200064bea0 R10: dffffc0000000000 R11: fffff5200064bea1 R12: ffff888075644000 R13: ffff88803b166000 R14: ffff88803b166560 R15: ffff88803b166558 FS: 00007f4e305fd700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056080679c000 CR3: 00000000193ad000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: relocate_block_group+0xa5d/0xcd0 fs/btrfs/relocation.c:3749 btrfs_relocate_block_group+0x7ab/0xd70 fs/btrfs/relocation.c:4087 btrfs_relocate_chunk+0x12c/0x3b0 fs/btrfs/volumes.c:3283 __btrfs_balance+0x1b06/0x2690 fs/btrfs/volumes.c:4018 btrfs_balance+0xbdb/0x1120 fs/btrfs/volumes.c:4402 btrfs_ioctl_balance+0x496/0x7c0 fs/btrfs/ioctl.c:3604 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f4e2f88c389 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4e305fd168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4e2f9abf80 RCX: 00007f4e2f88c389 RDX: 00000000200003c0 RSI: 00000000c4009420 RDI: 0000000000000005 RBP: 00007f4e2f8d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdbefc213f R14: 00007f4e305fd300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:prepare_to_merge+0xbb2/0xc40 fs/btrfs/relocation.c:1919 Code: fe e9 f5 f7 ff ff e8 6d 62 ec fd 48 c7 c7 20 5e 4b 8b 48 c7 c6 c0 6d 4b 8b 48 c7 c2 a0 5e 4b 8b b9 7f 07 00 00 e8 8e d8 15 07 <0f> 0b e8 d7 17 18 07 f3 0f 1e fa e8 3e 62 ec fd 43 80 3c 2f 00 74 RSP: 0018:ffffc9000325f760 EFLAGS: 00010246 RAX: 000000000000004f RBX: ffff888075644030 RCX: 1481ccc522da5800 RDX: ffffc90005c09000 RSI: 00000000000364ca RDI: 00000000000364cb RBP: ffffc9000325f870 R08: ffffffff816f33ac R09: 1ffff9200064bea0 R10: dffffc0000000000 R11: fffff5200064bea1 R12: ffff888075644000 R13: ffff88803b166000 R14: ffff88803b166560 R15: ffff88803b166558 FS: 00007f4e305fd700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555657e888 CR3: 00000000193ad000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the bug is already fixed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to change bug's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the bug is a duplicate of another bug, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup