loop0: detected capacity change from 0 to 32768 BTRFS: device fsid a6a605fc-d5f1-4e66-8595-3726e2b761d6 devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5334) BTRFS info (device loop0 state S): first mount of filesystem a6a605fc-d5f1-4e66-8595-3726e2b761d6 BTRFS info (device loop0 state S): using blake2b (blake2b-256-generic) checksum algorithm BTRFS info (device loop0 state S): using free-space-tree workqueue: max_active 2097158 requested for btrfs-worker is out of range, clamping between 1 and 2048 workqueue: max_active 2097158 requested for btrfs-delalloc is out of range, clamping between 1 and 2048 workqueue: max_active 2097158 requested for btrfs-endio is out of range, clamping between 1 and 2048 workqueue: max_active 2097158 requested for btrfs-endio-meta is out of range, clamping between 1 and 2048 workqueue: max_active 2097158 requested for btrfs-rmw is out of range, clamping between 1 and 2048 workqueue: max_active 2097158 requested for btrfs-endio-write is out of range, clamping between 1 and 2048 workqueue: max_active 2097158 requested for btrfs-compressed-write is out of range, clamping between 1 and 2048 BTRFS info (device loop0 state CS): last unmount of filesystem a6a605fc-d5f1-4e66-8595-3726e2b761d6 BTRFS warning (device loop0 state CS): transaction 9 (with 12288 dirty metadata bytes) is not committed assertion failed: !found :: 0, in fs/btrfs/disk-io.c:4190 ------------[ cut here ]------------ kernel BUG at fs/btrfs/disk-io.c:4190! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5334 Comm: syz.0.0 Not tainted 6.16.0-rc6-syzkaller-00121-g6832a9317eee #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:warn_about_uncommitted_trans fs/btrfs/disk-io.c:4190 [inline] RIP: 0010:close_ctree+0xd5d/0xd60 fs/btrfs/disk-io.c:4413 Code: ff ff e8 a6 6a 96 00 48 c7 c7 20 4e cd 8b 48 c7 c6 a0 99 cd 8b 31 d2 48 c7 c1 a0 4e cd 8b 41 b8 5e 10 00 00 e8 84 d4 fd ff 90 <0f> 0b cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f RSP: 0018:ffffc9000edffb60 EFLAGS: 00010246 RAX: 0000000000000039 RBX: ffff888053554d38 RCX: 6a462a3f45ba5100 RDX: ffffc9000dd12000 RSI: 000000000002195b RDI: 000000000002195c RBP: ffffc9000edffd00 R08: ffff88801fc24293 R09: 1ffff11003f84852 R10: dffffc0000000000 R11: ffffed1003f84853 R12: ffffc9000edffc00 R13: ffffc9000edffc20 R14: ffffc9000edffbe0 R15: ffff88805260e000 FS: 00007f5e813316c0(0000) GS:ffff88808d21a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055da0b6c41c0 CR3: 00000000441cf000 CR4: 0000000000352ef0 Call Trace: generic_shutdown_super+0x135/0x2c0 fs/super.c:643 kill_anon_super+0x3b/0x70 fs/super.c:1282 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2095 deactivate_locked_super+0xb9/0x130 fs/super.c:474 cleanup_mnt+0x425/0x4c0 fs/namespace.c:1417 task_work_run+0x1d1/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xec/0x110 kernel/entry/common.c:114 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5e8059014a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5e81330e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffec RBX: 00007f5e81330ef0 RCX: 00007f5e8059014a RDX: 0000200000000080 RSI: 0000200000000040 RDI: 00007f5e81330eb0 RBP: 0000200000000080 R08: 00007f5e81330ef0 R09: 000000000001c005 R10: 000000000001c005 R11: 0000000000000246 R12: 0000200000000040 R13: 00007f5e81330eb0 R14: 000000000000559f R15: 00002000000000c0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:warn_about_uncommitted_trans fs/btrfs/disk-io.c:4190 [inline] RIP: 0010:close_ctree+0xd5d/0xd60 fs/btrfs/disk-io.c:4413 Code: ff ff e8 a6 6a 96 00 48 c7 c7 20 4e cd 8b 48 c7 c6 a0 99 cd 8b 31 d2 48 c7 c1 a0 4e cd 8b 41 b8 5e 10 00 00 e8 84 d4 fd ff 90 <0f> 0b cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f RSP: 0018:ffffc9000edffb60 EFLAGS: 00010246 RAX: 0000000000000039 RBX: ffff888053554d38 RCX: 6a462a3f45ba5100 RDX: ffffc9000dd12000 RSI: 000000000002195b RDI: 000000000002195c RBP: ffffc9000edffd00 R08: ffff88801fc24293 R09: 1ffff11003f84852 R10: dffffc0000000000 R11: ffffed1003f84853 R12: ffffc9000edffc00 R13: ffffc9000edffc20 R14: ffffc9000edffbe0 R15: ffff88805260e000 FS: 00007f5e813316c0(0000) GS:ffff88808d21a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055da0b6dd590 CR3: 00000000441cf000 CR4: 0000000000352ef0