Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8445300rwb; Wed, 23 Nov 2022 22:41:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf485utjh2HU98/WAaFAZ6TqfZyU2XtChOQ1vSisus6KCKwmtpLMGselxXgQ/UaZ/1i79RI6 X-Received: by 2002:a17:90b:2d8b:b0:212:fe4a:c378 with SMTP id sj11-20020a17090b2d8b00b00212fe4ac378mr34776240pjb.82.1669272087246; Wed, 23 Nov 2022 22:41:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669272087; cv=none; d=google.com; s=arc-20160816; b=OzHt5K7GrkxRthfnOzgGvs7h1b4KMGSzYM4o4sZitrLkU5G7kme3dvxWqx93+y93MG 7V3kCGrsfAmfbX9F/35K8X44KyevzXy16rYc+g8Bdlnnt/kd1MHA4k6ih3Nv9XxKrzpd U/0s5zD8gmTweO8YjJDPhjgtsnnxEi+sMMbK/qdsqpg4XAgOlfAQgehCjW/CuwGu2x38 slpaIHHtq6hBUnwwkf2HYmUkDUSRtXCL1sEtdw5Ke3C0OtpxYUEMgHhKdNcho1f925Fa plt8HvksMOXj6xDYhMEdkQWzA4U5L/KDA0gmnGSl2iB+NIsaYv7/chxoKpJ8v30ojIvr p84w== 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=uVFhraT0Cf3glhkVlBQ0Voc0oFhm9H40BSuFll0WGGA=; b=jOUQG36nUvco6iINkZxnCVKV7Ko7Yq1EzGQWiwopjWNX5Oo2hl+ld2cperTeLiqZPo NwLa8b8qBIASLnmtUvUTff3/p2wiji5ZlMFof0WfdenqgDXOOHOW2dxYOwNZ6zoJY1Ko eViCubLX8/0l9tBgbaCWKp6v9eln9OjXIPncGZU4m8+qL9FyhIhDQxdNe6f0GOxFS8lj WxN3ciojzmyiLOUu0VFd3F0fd+taFCIYeIyFHANOLWjddYLr0yWkwNvC2Nv/5oqX+8+E QlClNezKWpxcoDLw+qmI044e+GiF8pk2s71DMV8AEpaYBbpUa4P9KntbyJ2pnz+f9kYI Ppdw== 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 d13-20020a631d4d000000b0045af77fa685si566450pgm.235.2022.11.23.22.41.14; Wed, 23 Nov 2022 22:41:27 -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 S229536AbiKXG2t (ORCPT + 89 others); Thu, 24 Nov 2022 01:28:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiKXG2s (ORCPT ); Thu, 24 Nov 2022 01:28:48 -0500 Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 247619A240 for ; Wed, 23 Nov 2022 22:28:45 -0800 (PST) Received: by mail-io1-f71.google.com with SMTP id bf14-20020a056602368e00b006ce86e80414so471513iob.7 for ; Wed, 23 Nov 2022 22:28:46 -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=uVFhraT0Cf3glhkVlBQ0Voc0oFhm9H40BSuFll0WGGA=; b=CKdzA+nGSUSIAPR2y/J+jSm6WSGVjTcYoOdF04MTs/RmPmnrMnbZdfrWiA+vKOWdM7 Vx63R5WOv0bIOhuDu/eJoIaodwsbxEX0FmzXKT+S3I6Gn6upNPK7liCCaWT8rkTnNxPr EjS5vO70AjtuOvEPdhiFT0f1S8cTFmRFZ6y5WkMOZa0r78L1Y555/Gom8pqTKTvfN8KF 1Vbc0mvOK9vRdtDpHEdiY0cHJzkMms0n3A2rgaXEHwmlRkEWXxGcF3aXjddKJ6arUFA7 YsPfeyN91Zgj9w+JpXBhTbvgIs9lqrKLqOa4ImHT79vziQPK5tec5mMPo4cWpBek7VmL qo9A== X-Gm-Message-State: ANoB5pkAfuxqTezWVdywYu+nlA91HpB44/sSxge35KyYPul5+JFGtiXq LtD9rhtJAjtv4A40MmXlSAKRmRupxKPtR33g/QrjbHzGOsgd MIME-Version: 1.0 X-Received: by 2002:a6b:e004:0:b0:6d3:c9df:bc7d with SMTP id z4-20020a6be004000000b006d3c9dfbc7dmr6009328iog.142.1669271326075; Wed, 23 Nov 2022 22:28:46 -0800 (PST) Date: Wed, 23 Nov 2022 22:28:46 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000006cb13705ee3184f9@google.com> Subject: [syzbot] kernel BUG in create_pending_snapshot 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=14ba30e3880000 kernel config: https://syzkaller.appspot.com/x/.config?x=8d01b6e3197974dd dashboard link: https://syzkaller.appspot.com/bug?extid=d56e0d33caf7d1a02821 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=1562844b880000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=137a668d880000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/815bacde9ae6/disk-eb708140.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/ce54e3220860/vmlinux-eb708140.xz kernel image: https://storage.googleapis.com/syzbot-assets/52a8ac111c19/bzImage-eb708140.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/a9f8cb5ade27/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+d56e0d33caf7d1a02821@syzkaller.appspotmail.com BTRFS info (device loop0): enabling ssd optimizations ------------[ cut here ]------------ kernel BUG at fs/btrfs/transaction.c:1672! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 3638 Comm: syz-executor237 Not tainted 6.1.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:create_pending_snapshot+0x250a/0x2560 fs/btrfs/transaction.c:1672 Code: ff e8 da c7 02 fe 48 c7 c7 60 16 39 8b 44 89 ee 31 c0 e8 c9 65 ca fd 0f 0b b3 01 e9 18 fa ff ff e8 3b 63 0a 07 e8 b6 c7 02 fe <0f> 0b e8 af c7 02 fe 0f 0b e8 a8 c7 02 fe 0f 0b e8 a1 c7 02 fe 48 RSP: 0018:ffffc90003aff6e0 EFLAGS: 00010293 RAX: ffffffff8387d0ba RBX: 00000000fffffff4 RCX: ffff88802722ba80 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: ffffc90003aff970 R08: ffffffff8387b1f0 R09: fffffbfff1a42e97 R10: fffffbfff1a42e97 R11: 1ffffffff1a42e96 R12: ffff888076ce1780 R13: ffff8880731717d0 R14: ffff888027dea000 R15: ffff8880708b8178 FS: 0000555555bce300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005626964b1000 CR3: 000000007955e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: create_pending_snapshots+0x1a8/0x1e0 fs/btrfs/transaction.c:1868 btrfs_commit_transaction+0x13f0/0x3760 fs/btrfs/transaction.c:2323 create_snapshot+0x4aa/0x7e0 fs/btrfs/ioctl.c:833 btrfs_mksubvol+0x62e/0x760 fs/btrfs/ioctl.c:983 btrfs_mksnapshot+0xb5/0xf0 fs/btrfs/ioctl.c:1029 __btrfs_ioctl_snap_create+0x339/0x450 fs/btrfs/ioctl.c:2184 btrfs_ioctl_snap_create+0x134/0x190 fs/btrfs/ioctl.c:2211 btrfs_ioctl+0x15c/0xc10 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 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:0x7efd25d6d2a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 14 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe43e29638 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007efd25d6d2a9 RDX: 00000000200000c0 RSI: 0000000050009401 RDI: 0000000000000003 RBP: 0000000000000006 R08: 0000000000000002 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00007ffe43e29670 R14: 0000000000000003 R15: 00007ffe43e2966a Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:create_pending_snapshot+0x250a/0x2560 fs/btrfs/transaction.c:1672 Code: ff e8 da c7 02 fe 48 c7 c7 60 16 39 8b 44 89 ee 31 c0 e8 c9 65 ca fd 0f 0b b3 01 e9 18 fa ff ff e8 3b 63 0a 07 e8 b6 c7 02 fe <0f> 0b e8 af c7 02 fe 0f 0b e8 a8 c7 02 fe 0f 0b e8 a1 c7 02 fe 48 RSP: 0018:ffffc90003aff6e0 EFLAGS: 00010293 RAX: ffffffff8387d0ba RBX: 00000000fffffff4 RCX: ffff88802722ba80 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: ffffc90003aff970 R08: ffffffff8387b1f0 R09: fffffbfff1a42e97 R10: fffffbfff1a42e97 R11: 1ffffffff1a42e96 R12: ffff888076ce1780 R13: ffff8880731717d0 R14: ffff888027dea000 R15: ffff8880708b8178 FS: 0000555555bce300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005626963c87d8 CR3: 000000007955e000 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. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches