Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp611125rwi; Wed, 2 Nov 2022 16:10:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6qkDlp9UJdam9FZZBEacGRftMLLFW+1DZB5v4XH1W9FS26LVi9moabnJaBVWOc55h4b2q5 X-Received: by 2002:a17:902:e402:b0:186:6f1d:b463 with SMTP id m2-20020a170902e40200b001866f1db463mr26713013ple.23.1667430602630; Wed, 02 Nov 2022 16:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667430602; cv=none; d=google.com; s=arc-20160816; b=i76WvTN4vdFSqyvHOrX7dCwWkF32s6PuPYqUMhlGbBltSyu98IH08ePoPlwyxlvSaS dsCDgMC+7vexrhmwgTVtBEILCIWIKfA+CgdLhGbPXN+txTlWozvMauPQWTZexR+F1r3L h7LsjIov/tdZfJXzFGBVyMathWOfWDvWl4WevxvvmArkmA5P1uftNU54gTaaq5Q6PkdU 9WnTGLBQgMFdpgU2vSLKYI+jSPDL1QvrC0NL/eAPlCUOKtyEPXoPM7C4mMqVe9G087Bq /ejNQlwcY9Gh9/xksSBkHrSV4WI73R61bNgPvL6fJLNQp4pqZ/hFh0UIV38ncTGzxHrx O8AQ== 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=F9t5rxiD3HbBUPq6/6mfgx1apalEX8dQGz5+gh984xo=; b=NMEn4dK+qKd9jEg2hLoC+xuE8os5CoNFTdfy+UpYXuq9K4jVVzaF5fNm6XeopvVnEm m+ur2rwC/1ROvpJjDagERbQDpkWqvsS4TfiZgFMlYmvni0KGKnih+51DPhQ/6MeEliaX fDHXvRombB6bzk8Jda9GnLlvzwJeYv7BC286+vqOoqWH2iu0BgslKsn66jz05NJyf9AA pCUtlIX+vSZ5PO9CflOrPuuO82qI5QioM+BWLyup2KX2uOOs2PHcbv8q2GJ2c4jMfGoO cno0FzUBwYqWQh0zDuZXbWQzem1OQ/eYD6JmAaYVWbf15P4A7xj0jIsGYm/XyVgrr02y 7JCw== 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 s14-20020a056a0008ce00b0055fa098c388si20333821pfu.259.2022.11.02.16.09.49; Wed, 02 Nov 2022 16:10:02 -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 S231508AbiKBWbD (ORCPT + 97 others); Wed, 2 Nov 2022 18:31:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231514AbiKBWa7 (ORCPT ); Wed, 2 Nov 2022 18:30:59 -0400 Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E18DBC36 for ; Wed, 2 Nov 2022 15:30:57 -0700 (PDT) Received: by mail-il1-f199.google.com with SMTP id j7-20020a056e02154700b003007885e7beso259634ilu.20 for ; Wed, 02 Nov 2022 15:30:57 -0700 (PDT) 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=F9t5rxiD3HbBUPq6/6mfgx1apalEX8dQGz5+gh984xo=; b=CFAV127WvtFPcQiNTIchS34UnoejU3rzlHCDJxou9OLahLAWYlRrQsD7aCFHVt4mH2 LOLbwiy7KJaxPdKD5MkPaJXgjeMIxhIidPtXqy+Cl3mcFBIkr5bEVuFGzmJvn246XOJS ysRnJc1dkhJQgUtStZlfj2l8O+Xgp47kXzYFKIp49nxrxLl+nDLAAjPFYhBMAu30sxjq LEga43rptNSAypoDniwGzyw1KAcdYSqOSgH0RkuMqYe+cvSTVieRIoHvU62G2r8twR2y pZnFs7T1GVe+CJmHmSG+qe9Razw9X2L1i2xwP2qdbMrnWdOiBWOdjIhyLrZJObxDt5Zl Gung== X-Gm-Message-State: ACrzQf3/Y7TTWdGdN48kV0g96149QGOypPJ3ZOPNYC4NTRbbp6XyNYEO iN5qXAJk5NHWgt9brdkyDz+BvR9NB3hAVh8iXkFCLwGhYnAt MIME-Version: 1.0 X-Received: by 2002:a92:cc49:0:b0:300:d9d7:fe36 with SMTP id t9-20020a92cc49000000b00300d9d7fe36mr218061ilq.225.1667428256652; Wed, 02 Nov 2022 15:30:56 -0700 (PDT) Date: Wed, 02 Nov 2022 15:30:56 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000ed23c905ec846460@google.com> Subject: [syzbot] WARNING in __btrfs_free_extent 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: b229b6ca5abb Merge tag 'perf-tools-fixes-for-v6.1-2022-10-.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=1661bcea880000 kernel config: https://syzkaller.appspot.com/x/.config?x=1d3548a4365ba17d dashboard link: https://syzkaller.appspot.com/bug?extid=560e6a32d484d7293e37 compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15e9ab22880000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=152ed4fc880000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/24728b72a896/disk-b229b6ca.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/10a3c40c60e1/vmlinux-b229b6ca.xz kernel image: https://storage.googleapis.com/syzbot-assets/69f963b02b7e/bzImage-b229b6ca.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/1f4e6872e39d/mount_2.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+560e6a32d484d7293e37@syzkaller.appspotmail.com BTRFS info (device loop0): enabling ssd optimizations ------------[ cut here ]------------ BTRFS: Transaction aborted (error -12) WARNING: CPU: 1 PID: 3604 at fs/btrfs/extent-tree.c:3067 __btrfs_free_extent+0xbf6/0x2540 fs/btrfs/extent-tree.c:3067 Modules linked in: CPU: 1 PID: 3604 Comm: syz-executor311 Not tainted 6.1.0-rc2-syzkaller-00105-gb229b6ca5abb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:__btrfs_free_extent+0xbf6/0x2540 fs/btrfs/extent-tree.c:3067 Code: fa 31 c0 e8 7e 29 ae 06 4c 8b 64 24 08 4c 8b 6c 24 10 eb 1a e8 8b 2e 04 fe 48 c7 c7 a0 32 da 8a 44 89 fe 31 c0 e8 da cc cb fd <0f> 0b b3 01 44 0f b6 c3 4c 89 ef 48 c7 c6 00 40 da 8a ba fb 0b 00 RSP: 0018:ffffc90003c4f600 EFLAGS: 00010246 RAX: 1d499b28e27a2c00 RBX: ffff88802756c001 RCX: ffff88801ee1d7c0 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90003c4f780 R08: ffffffff816b8dfd R09: ffffed1017364f13 R10: ffffed1017364f13 R11: 1ffff11017364f12 R12: ffff8880277d2a50 R13: ffff888070ce3150 R14: 0000000000000001 R15: 00000000fffffff4 FS: 00005555567bf300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1911b2a300 CR3: 000000001e181000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_run_delayed_refs_for_head+0xe20/0x1df0 fs/btrfs/extent-tree.c:1943 __btrfs_run_delayed_refs+0x25f/0x490 fs/btrfs/extent-tree.c:2008 btrfs_run_delayed_refs+0x13b/0x4a0 fs/btrfs/extent-tree.c:2139 btrfs_commit_transaction+0x3a9/0x3760 fs/btrfs/transaction.c:2123 sync_filesystem+0x1bc/0x220 fs/sync.c:66 __do_sys_syncfs fs/sync.c:160 [inline] __se_sys_syncfs+0x8f/0x110 fs/sync.c:149 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa6dc2ca1e9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc86519f18 EFLAGS: 00000246 ORIG_RAX: 0000000000000132 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fa6dc2ca1e9 RDX: 0000000000000f20 RSI: 000000000000c0c2 RDI: 0000000000000003 RBP: 00007ffc86519f20 R08: 0000000000000001 R09: 00007fa6dc330036 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 0000000000000000 R14: 0000100000000000 R15: 0000000000000000 --- 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