Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5756232rwb; Tue, 22 Nov 2022 04:39:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf67pC1IN3kUF4S36weLZyRbHVzLk0PzlourIKM4YqUimCCOWQYC1mBcETS6ZdeExb07yFzj X-Received: by 2002:a63:ff0b:0:b0:477:362d:85d3 with SMTP id k11-20020a63ff0b000000b00477362d85d3mr3132918pgi.395.1669120787078; Tue, 22 Nov 2022 04:39:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669120787; cv=none; d=google.com; s=arc-20160816; b=sibx0SP4Rd4fyyG6vGrKwTpPpbwQbJV5lf4zBEfgiZ3YiZp2d0Z7+e9VUklBicuyUP Eo+5xpkjQRe+8AsepkpWOC7AfvbTVODlCQ8Pk/sm7RuI3IeXi+NZkHESUE0TdA8ys56F Kf4aMOOBsasnjg7puzBdmZT4nkM+/YF3KmKgNZBAuKkeVLHwZtkO9+CphPQnY/TeLbFY qduu1A/i0Gs/OJaUDp+6uxdINT6xefUxenHvKHrkut/HQA+k8GbbPERj4BYwpiX8pQSy XqLWx+k6sjs16JVzeOd9ii28U8dtmYjB3HYyGHg/q5eHUWjqbF6Wi4zX768kAyw1+BHf hv3Q== 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=k6KL60JRVFUuWneu7vnb+xiDyNkxZWMW6/O2rgIIB4s=; b=TtqxLq/smlh1iBd5/+catT1Ut12NRdrOHFNI5sU0N15OoH/V5L4hm9Dnw12Ym2uShw LeiyNgPiGDjOXNE8D1K4oxlNzc2jZNRod/OiX0R5b+yRif75sf+Q8N/e2sPo6bWpqOff T3wCGqQcJPQN4ay9fe2o+5D5UYX/GndUibwEx0hr6VtSaB+pmG4eTnmZfCDSNxzcTkF0 rE+MpmYEDU6Hq+c4cJAZnvgZo7KFWyrYwkLCA/GvIrpM+7U9470Ykpxq0vxm7JYBMnTl lujk4ZQ3HZ6YW7mRnwEA4gYc6airmRMJNOPO/TrXKKDe+6XfzQroWWR0f3aqYhcP0Tsg R8xg== 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 w3-20020a170902e88300b00188dba5d7dbsi15707200plg.78.2022.11.22.04.39.35; Tue, 22 Nov 2022 04:39:47 -0800 (PST) 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 S233195AbiKVL4p (ORCPT + 90 others); Tue, 22 Nov 2022 06:56:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232745AbiKVL4n (ORCPT ); Tue, 22 Nov 2022 06:56:43 -0500 Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18A4425C52 for ; Tue, 22 Nov 2022 03:56:43 -0800 (PST) Received: by mail-io1-f69.google.com with SMTP id y5-20020a056602120500b006cf628c14ddso6948429iot.15 for ; Tue, 22 Nov 2022 03:56:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=k6KL60JRVFUuWneu7vnb+xiDyNkxZWMW6/O2rgIIB4s=; b=fCjE68eSm5Vo3ft+LUfw9UALvNxmQ6x5vtjCf/Uvq63B+i69uy4AW3l6m3nrYmtCl6 C0RRsk0QWSYtsllcE6BqoGUPQ+25XVvitwXjtAXOkaFZrvFZYT1hZsAYMIeQIp0KgJRW SmpbO6D+MbqEVu007W/TFoSkIjfots2mmFEdyUIjoVZ0Dz4YIpiMB7Y9gPssdG+4Phrr R1iBBncy8FGXyC8lbBDeK70ByU7B2ru0kcHMXUQAcuJrZe9EOa58l1ZZQ3sobiIbli2o 40kqYYCjdmyNL7jYtC1cNXu3kUcvSaZwREkQngjlRNPfkHOxSqNuyf9xCOZo5689X3Or SZ4A== X-Gm-Message-State: ANoB5pn6bvYobBl0X/syZsIBo1Rk6+MwpB5wyTcdUdVXTjSgacoZvUzZ GDWHIkih/3pbzHygxPdOgMfbPBW1HcjEVRMVYTHBMwP8NIUA MIME-Version: 1.0 X-Received: by 2002:a05:6638:3f06:b0:363:aa8f:e316 with SMTP id ck6-20020a0566383f0600b00363aa8fe316mr10496009jab.238.1669118202337; Tue, 22 Nov 2022 03:56:42 -0800 (PST) Date: Tue, 22 Nov 2022 03:56:42 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000089deb205ee0ddd58@google.com> Subject: [syzbot] WARNING in btrfs_chunk_alloc From: syzbot To: clm@fb.com, dsterba@suse.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS 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: eb7081409f94 Linux 6.1-rc6 git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=16aec855880000 kernel config: https://syzkaller.appspot.com/x/.config?x=5db36e7087dcccae dashboard link: https://syzkaller.appspot.com/bug?extid=e8e56d5d31d38b5b47e7 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=160ec4c3880000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13940efd880000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/12e9c825ff47/disk-eb708140.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/107e5e091c9e/vmlinux-eb708140.xz kernel image: https://storage.googleapis.com/syzbot-assets/605ab211617d/bzImage-eb708140.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/4d429a6dc170/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+e8e56d5d31d38b5b47e7@syzkaller.appspotmail.com ------------[ cut here ]------------ WARNING: CPU: 1 PID: 45 at fs/btrfs/block-group.c:3535 do_chunk_alloc fs/btrfs/block-group.c:3535 [inline] WARNING: CPU: 1 PID: 45 at fs/btrfs/block-group.c:3535 btrfs_chunk_alloc.cold+0x1a7/0x329 fs/btrfs/block-group.c:3777 Modules linked in: CPU: 1 PID: 45 Comm: kworker/u4:3 Not tainted 6.1.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3535 [inline] RIP: 0010:btrfs_chunk_alloc.cold+0x1a7/0x329 fs/btrfs/block-group.c:3777 Code: 89 c7 89 c6 88 44 24 4f e8 5d 2e c7 f7 45 84 ff 0f 84 6e 01 00 00 e8 df 31 c7 f7 44 89 f6 48 c7 c7 c0 5c 98 8a e8 fb a4 f2 ff <0f> 0b e9 10 ff ff ff e8 c4 31 c7 f7 48 8b 54 24 38 b8 ff ff 37 00 RSP: 0018:ffffc90000d6fa70 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 00000000ffffffe4 RCX: 0000000000000000 RDX: ffff888018452080 RSI: ffffffff8164973c RDI: fffff520001adf40 RBP: ffff88807bed9800 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: ffff888075d88898 R13: ffff888020971000 R14: ffffffffffffffe4 R15: 0000000075d88801 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa773a78250 CR3: 000000007d62e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0x9ce/0xe90 fs/btrfs/space-info.c:769 btrfs_async_reclaim_metadata_space+0x53f/0xc00 fs/btrfs/space-info.c:1083 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 --- 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. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches