BTRFS info (device loop0): unable to make block group 6881280 ro
BTRFS info (device loop0): space_info DATA+METADATA (sub-group id 0) has 1478656 free, is not full
BTRFS info (device loop0): space_info total=3276800, used=114688, pinned=20480, reserved=16384, may_use=1646592, readonly=0 zone_unusable=0
BTRFS info (device loop0): global_block_rsv: size 1441792 reserved 1441792
BTRFS info (device loop0): trans_block_rsv: size 0 reserved 0
BTRFS info (device loop0): chunk_block_rsv: size 0 reserved 0
BTRFS info (device loop0): remap_block_rsv: size 0 reserved 0
BTRFS info (device loop0): delayed_block_rsv: size 32768 reserved 32768
BTRFS info (device loop0): delayed_refs_rsv: size 557056 reserved 172032
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 0 UID: 0 PID: 5335 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
fail_dump lib/fault-inject.c:73 [inline]
should_fail_ex+0x40c/0x560 lib/fault-inject.c:174
should_failslab+0xa8/0x100 mm/failslab.c:46
slab_pre_alloc_hook mm/slub.c:4567 [inline]
slab_alloc_node mm/slub.c:4925 [inline]
kmem_cache_alloc_noprof+0xa6/0x5f0 mm/slub.c:4959
add_delayed_ref+0x123/0x1ed0 fs/btrfs/delayed-ref.c:1048
btrfs_alloc_tree_block+0xd42/0x12a0 fs/btrfs/extent-tree.c:5425
btrfs_force_cow_block+0x562/0x1bf0 fs/btrfs/ctree.c:501
btrfs_cow_block+0x3f1/0xaf0 fs/btrfs/ctree.c:696
btrfs_search_slot+0xd06/0x2d00 fs/btrfs/ctree.c:2103
btrfs_update_device+0x14d/0x4d0 fs/btrfs/volumes.c:3122
btrfs_chunk_alloc_add_chunk_item+0x2bc/0xfb0 fs/btrfs/volumes.c:6234
do_chunk_alloc fs/btrfs/block-group.c:4149 [inline]
btrfs_chunk_alloc+0xabb/0x1330 fs/btrfs/block-group.c:4444
btrfs_inc_block_group_ro+0x422/0x7d0 fs/btrfs/block-group.c:3216
btrfs_relocate_block_group+0x285/0xaf0 fs/btrfs/relocation.c:5433
btrfs_relocate_chunk+0x114/0x810 fs/btrfs/volumes.c:3647
__btrfs_balance+0x1b5f/0x29d0 fs/btrfs/volumes.c:4586
btrfs_balance+0xaa6/0x1180 fs/btrfs/volumes.c:4973
btrfs_ioctl_balance+0x3da/0x640 fs/btrfs/ioctl.c:3474
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:597 [inline]
__se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc4c6b9de59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc4c7a75fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fc4c6e26090 RCX: 00007fc4c6b9de59
RDX: 0000200000000180 RSI: 00000000c4009420 RDI: 0000000000000004
RBP: 00007fc4c7a76050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007fc4c6e26128 R14: 00007fc4c6e26090 R15: 00007ffd4bdca988
BTRFS error (device loop0 state A): Transaction 54 aborted (error -12)
BTRFS: error (device loop0 state A) in do_chunk_alloc:4219: errno=-12 Out of memory
BTRFS info (device loop0 state EA): forced readonly
------------[ cut here ]------------
1
WARNING: fs/btrfs/space-info.h:286 at btrfs_space_info_update_bytes_may_use+0x318/0x650 fs/btrfs/space-info.h:286, CPU#0: syz.0.0/5335
Modules linked in:
CPU: 0 UID: 0 PID: 5335 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:btrfs_space_info_update_bytes_may_use+0x318/0x650 fs/btrfs/space-info.h:286
Code: 00 00 74 08 4c 89 ff e8 26 2c fe fd 4d 8b 27 4c 89 e7 48 8b 6c 24 18 48 89 ee e8 13 08 8f fd 49 39 ec 73 1c e8 a9 05 8f fd 90 <0f> 0b 90 31 db 43 80 7c 35 00 00 0f 85 48 ff ff ff e9 4b ff ff ff
RSP: 0018:ffffc9000e3677f0 EFLAGS: 00010293
RAX: ffffffff84377c07 RBX: fffffffffffe8000 RCX: ffff888000efca80
RDX: 0000000000000000 RSI: 0000000000018000 RDI: 0000000000017000
RBP: 0000000000018000 R08: ffffffff90579ff7 R09: 1ffffffff20af3fe
R10: dffffc0000000000 R11: fffffbfff20af3ff R12: 0000000000017000
R13: 1ffff1100a487310 R14: dffffc0000000000 R15: ffff888052439880
FS: 00007fc4c7a766c0(0000) GS:ffff88808c54d000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe91a35b68 CR3: 000000001232b000 CR4: 0000000000352ef0
Call Trace:
btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:323 [inline]
block_rsv_release_bytes fs/btrfs/block-rsv.c:153 [inline]
btrfs_block_rsv_release+0x47b/0x590 fs/btrfs/block-rsv.c:291
btrfs_trans_release_chunk_metadata+0x7f/0xb0 fs/btrfs/transaction.c:262
do_chunk_alloc fs/btrfs/block-group.c:4223 [inline]
btrfs_chunk_alloc+0x106e/0x1330 fs/btrfs/block-group.c:4444
btrfs_inc_block_group_ro+0x422/0x7d0 fs/btrfs/block-group.c:3216
btrfs_relocate_block_group+0x285/0xaf0 fs/btrfs/relocation.c:5433
btrfs_relocate_chunk+0x114/0x810 fs/btrfs/volumes.c:3647
__btrfs_balance+0x1b5f/0x29d0 fs/btrfs/volumes.c:4586
btrfs_balance+0xaa6/0x1180 fs/btrfs/volumes.c:4973
btrfs_ioctl_balance+0x3da/0x640 fs/btrfs/ioctl.c:3474
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:597 [inline]
__se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc4c6b9de59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc4c7a75fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fc4c6e26090 RCX: 00007fc4c6b9de59
RDX: 0000200000000180 RSI: 00000000c4009420 RDI: 0000000000000004
RBP: 00007fc4c7a76050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007fc4c6e26128 R14: 00007fc4c6e26090 R15: 00007ffd4bdca988