BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): auto enabling async discard BTRFS warning (device loop0): transaction 9 (with 0 dirty metadata bytes) is not committed assertion failed: !found, in fs/btrfs/disk-io.c:4248 ------------[ cut here ]------------ kernel BUG at fs/btrfs/disk-io.c:4248! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5014 Comm: syz-executor111 Not tainted 6.5.0-rc7-syzkaller-00164-g382d4cd18475 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:warn_about_uncommitted_trans fs/btrfs/disk-io.c:4248 [inline] RIP: 0010:close_ctree+0xcf2/0xd00 fs/btrfs/disk-io.c:4404 Code: f6 e9 98 fc ff ff e8 3d 8d d0 f6 48 c7 c7 a0 0c 4a 8b 48 c7 c6 00 59 4a 8b 48 c7 c2 20 0d 4a 8b b9 98 10 00 00 e8 7e 95 ff ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 66 0f 1f 00 55 41 57 41 RSP: 0018:ffffc90003a9f9e0 EFLAGS: 00010246 RAX: 0000000000000034 RBX: ffff888078604cd8 RCX: d47d93e55d142300 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90003a9fb78 R08: ffffffff816f0d3c R09: 1ffff92000753ef0 R10: dffffc0000000000 R11: fffff52000753ef1 R12: ffff888078604cd8 R13: ffff88802ce29000 R14: ffff88802ce29028 R15: ffffc90003a9fa80 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffdc401a908 CR3: 00000000240a1000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: generic_shutdown_super+0x134/0x340 fs/super.c:499 kill_anon_super+0x3b/0x60 fs/super.c:1110 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2138 deactivate_locked_super+0xa4/0x110 fs/super.c:330 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1254 task_work_run+0x24a/0x300 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x68f/0x2290 kernel/exit.c:874 do_group_exit+0x206/0x2c0 kernel/exit.c:1024 __do_sys_exit_group kernel/exit.c:1035 [inline] __se_sys_exit_group kernel/exit.c:1033 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1033 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:0x7fcdfe1439c9 Code: Unable to access opcode bytes at 0x7fcdfe14399f. RSP: 002b:00007ffe46993af8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fcdfe1439c9 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 00007fcdfe1c42d0 R08: ffffffffffffffb8 R09: 00007ffe46993bd0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcdfe1c42d0 R13: 0000000000000000 R14: 00007fcdfe1c5040 R15: 00007fcdfe111f10 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:warn_about_uncommitted_trans fs/btrfs/disk-io.c:4248 [inline] RIP: 0010:close_ctree+0xcf2/0xd00 fs/btrfs/disk-io.c:4404 Code: f6 e9 98 fc ff ff e8 3d 8d d0 f6 48 c7 c7 a0 0c 4a 8b 48 c7 c6 00 59 4a 8b 48 c7 c2 20 0d 4a 8b b9 98 10 00 00 e8 7e 95 ff ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 66 0f 1f 00 55 41 57 41 RSP: 0018:ffffc90003a9f9e0 EFLAGS: 00010246 RAX: 0000000000000034 RBX: ffff888078604cd8 RCX: d47d93e55d142300 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90003a9fb78 R08: ffffffff816f0d3c R09: 1ffff92000753ef0 R10: dffffc0000000000 R11: fffff52000753ef1 R12: ffff888078604cd8 R13: ffff88802ce29000 R14: ffff88802ce29028 R15: ffffc90003a9fa80 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffdc401a908 CR3: 0000000023a63000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400