BTRFS info (device loop0): scrub: started on devid 1 ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 5354 at fs/btrfs/block-group.c:4000 do_chunk_alloc fs/btrfs/block-group.c:4000 [inline] WARNING: CPU: 0 PID: 5354 at fs/btrfs/block-group.c:4000 btrfs_chunk_alloc+0xf9d/0x1460 fs/btrfs/block-group.c:4241 Modules linked in: CPU: 0 UID: 0 PID: 5354 Comm: syz.0.0 Not tainted 6.16.0-syzkaller-04055-g14bed9bc81ba #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:do_chunk_alloc fs/btrfs/block-group.c:4000 [inline] RIP: 0010:btrfs_chunk_alloc+0xf9d/0x1460 fs/btrfs/block-group.c:4241 Code: bb fd 84 c0 0f 84 63 01 00 00 e8 5e 04 d5 fd e9 8c 03 00 00 e8 54 04 d5 fd 90 48 c7 c7 20 ed cf 8b 44 89 f6 e8 04 91 98 fd 90 <0f> 0b 90 90 e9 3e fc ff ff e8 35 04 d5 fd eb 05 e8 2e 04 d5 fd e8 RSP: 0018:ffffc9000d6ff980 EFLAGS: 00010246 RAX: 011813b7a5a56d00 RBX: ffff888052868001 RCX: 0000000000100000 RDX: ffffc9000f134000 RSI: 00000000000170a0 RDI: 00000000000170a1 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bfa168 R12: dffffc0000000000 R13: ffff888035ffd800 R14: ffffffffffffffe4 R15: ffff8880437e2818 FS: 00007f93197aa6c0(0000) GS:ffff88808d27b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558b9bbba5e8 CR3: 0000000043d26000 CR4: 0000000000352ef0 Call Trace: btrfs_inc_block_group_ro+0x415/0x6f0 fs/btrfs/block-group.c:3061 scrub_enumerate_chunks+0x7ee/0x13c0 fs/btrfs/scrub.c:2760 btrfs_scrub_dev+0x7bd/0x10c0 fs/btrfs/scrub.c:3138 btrfs_ioctl_scrub+0x232/0x490 fs/btrfs/ioctl.c:3163 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:584 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f931898e9a9 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f93197aa038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f9318bb6160 RCX: 00007f931898e9a9 RDX: 0000200000000000 RSI: 00000000c400941b RDI: 000000000000000d RBP: 00007f9318a10d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f9318bb6160 R15: 00007ffe0cc98c38