FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 0 UID: 0 PID: 5316 Comm: syz.0.0 Not tainted 6.13.0-rc2-syzkaller-00031-gf92f4749861b #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
fail_dump lib/fault-inject.c:53 [inline]
should_fail_ex+0x3b0/0x4e0 lib/fault-inject.c:154
should_failslab+0xac/0x100 mm/failslab.c:46
slab_pre_alloc_hook mm/slub.c:4057 [inline]
slab_alloc_node mm/slub.c:4133 [inline]
kmem_cache_alloc_noprof+0x70/0x380 mm/slub.c:4160
add_delayed_ref+0x19e/0x1e90 fs/btrfs/delayed-ref.c:987
btrfs_alloc_tree_block+0xdfc/0x1440 fs/btrfs/extent-tree.c:5178
btrfs_force_cow_block+0x526/0x1da0 fs/btrfs/ctree.c:573
btrfs_cow_block+0x35e/0xa40 fs/btrfs/ctree.c:754
btrfs_search_slot+0xc01/0x3180 fs/btrfs/ctree.c:2156
btrfs_update_device+0x1b0/0x580 fs/btrfs/volumes.c:3020
btrfs_chunk_alloc_add_chunk_item+0x2cb/0x1100 fs/btrfs/volumes.c:5752
do_chunk_alloc fs/btrfs/block-group.c:3899 [inline]
btrfs_chunk_alloc+0x7ca/0xf80 fs/btrfs/block-group.c:4187
find_free_extent_update_loop fs/btrfs/extent-tree.c:4166 [inline]
find_free_extent+0x42d1/0x5810 fs/btrfs/extent-tree.c:4579
btrfs_reserve_extent+0x422/0x810 fs/btrfs/extent-tree.c:4672
btrfs_alloc_tree_block+0x202/0x1440 fs/btrfs/extent-tree.c:5127
btrfs_force_cow_block+0x526/0x1da0 fs/btrfs/ctree.c:573
btrfs_cow_block+0x35e/0xa40 fs/btrfs/ctree.c:754
create_pending_snapshot+0xe58/0x2a10 fs/btrfs/transaction.c:1782
create_pending_snapshots+0x195/0x1d0 fs/btrfs/transaction.c:1919
btrfs_commit_transaction+0xf11/0x3720 fs/btrfs/transaction.c:2398
create_snapshot+0x655/0x990 fs/btrfs/ioctl.c:875
btrfs_mksubvol+0x58f/0x710 fs/btrfs/ioctl.c:1029
btrfs_mksnapshot+0xae/0xf0 fs/btrfs/ioctl.c:1073
__btrfs_ioctl_snap_create+0x37d/0x4b0 fs/btrfs/ioctl.c:1337
btrfs_ioctl_snap_create_v2+0x1ef/0x390 fs/btrfs/ioctl.c:1418
btrfs_ioctl+0xa07/0xcc0
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:906 [inline]
__se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f4d2217ff19
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:00007f4d22ecf058 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f4d22346080 RCX: 00007f4d2217ff19
RDX: 0000000020001480 RSI: 0000000050009417 RDI: 0000000000000005
RBP: 00007f4d22ecf0a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 0000000000000000 R14: 00007f4d22346080 R15: 00007ffd3379f7e8
BTRFS error (device loop0 state A): Transaction aborted (error -12)
BTRFS: error (device loop0 state EA) in do_chunk_alloc:3961: errno=-12 Out of memory
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5316 at fs/btrfs/space-info.h:250 btrfs_space_info_update_bytes_may_use+0x34c/0x660 fs/btrfs/space-info.h:250
Modules linked in:
CPU: 0 UID: 0 PID: 5316 Comm: syz.0.0 Not tainted 6.13.0-rc2-syzkaller-00031-gf92f4749861b #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:btrfs_space_info_update_bytes_may_use+0x34c/0x660 fs/btrfs/space-info.h:250
Code: 00 00 74 08 4c 89 ff e8 62 1b 26 fe 49 8b 1f 48 89 df 48 8b 6c 24 20 48 89 ee e8 bf bc bf fd 48 39 eb 73 1d e8 55 ba bf fd 90 <0f> 0b 90 45 31 f6 43 80 7c 25 00 00 0f 85 2e ff ff ff e9 31 ff ff
RSP: 0018:ffffc9000d396ad8 EFLAGS: 00010293
RAX: ffffffff83dfa3eb RBX: 000000000005c000 RCX: ffff88801ab12440
RDX: 0000000000000000 RSI: 0000000000060000 RDI: 000000000005c000
RBP: 0000000000060000 R08: ffffffff83dfa3e1 R09: 1ffffffff2032cae
R10: dffffc0000000000 R11: fffffbfff2032caf R12: dffffc0000000000
R13: 1ffff1100a506e0d R14: fffffffffffa0000 R15: ffff888052837068
FS: 00007f4d22ecf6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055d1e794daf8 CR3: 0000000052ae2000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:283 [inline]
block_rsv_release_bytes fs/btrfs/block-rsv.c:153 [inline]
btrfs_block_rsv_release+0x4f4/0x5f0 fs/btrfs/block-rsv.c:294
btrfs_trans_release_chunk_metadata+0x7f/0xb0 fs/btrfs/transaction.c:253
do_chunk_alloc fs/btrfs/block-group.c:3965 [inline]
btrfs_chunk_alloc+0xd68/0xf80 fs/btrfs/block-group.c:4187
find_free_extent_update_loop fs/btrfs/extent-tree.c:4166 [inline]
find_free_extent+0x42d1/0x5810 fs/btrfs/extent-tree.c:4579
btrfs_reserve_extent+0x422/0x810 fs/btrfs/extent-tree.c:4672
btrfs_alloc_tree_block+0x202/0x1440 fs/btrfs/extent-tree.c:5127
btrfs_force_cow_block+0x526/0x1da0 fs/btrfs/ctree.c:573
btrfs_cow_block+0x35e/0xa40 fs/btrfs/ctree.c:754
create_pending_snapshot+0xe58/0x2a10 fs/btrfs/transaction.c:1782
create_pending_snapshots+0x195/0x1d0 fs/btrfs/transaction.c:1919
btrfs_commit_transaction+0xf11/0x3720 fs/btrfs/transaction.c:2398
create_snapshot+0x655/0x990 fs/btrfs/ioctl.c:875
btrfs_mksubvol+0x58f/0x710 fs/btrfs/ioctl.c:1029
btrfs_mksnapshot+0xae/0xf0 fs/btrfs/ioctl.c:1073
__btrfs_ioctl_snap_create+0x37d/0x4b0 fs/btrfs/ioctl.c:1337
btrfs_ioctl_snap_create_v2+0x1ef/0x390 fs/btrfs/ioctl.c:1418
btrfs_ioctl+0xa07/0xcc0
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:906 [inline]
__se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f4d2217ff19
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:00007f4d22ecf058 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f4d22346080 RCX: 00007f4d2217ff19
RDX: 0000000020001480 RSI: 0000000050009417 RDI: 0000000000000005
RBP: 00007f4d22ecf0a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 0000000000000000 R14: 00007f4d22346080 R15: 00007ffd3379f7e8