BTRFS info (device loop0): balance: start -d -m FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 UID: 0 PID: 5368 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+0x412/0x560 lib/fault-inject.c:174 should_failslab+0xa8/0x100 mm/failslab.c:46 slab_pre_alloc_hook mm/slub.c:4412 [inline] slab_alloc_node mm/slub.c:4765 [inline] kmem_cache_alloc_noprof+0x87/0x650 mm/slub.c:4795 add_delayed_ref+0x135/0x1f00 fs/btrfs/delayed-ref.c:1021 btrfs_alloc_tree_block+0xd27/0x1280 fs/btrfs/extent-tree.c:5328 btrfs_force_cow_block+0x58c/0x2510 fs/btrfs/ctree.c:503 btrfs_cow_block+0x3c4/0xa90 fs/btrfs/ctree.c:694 btrfs_search_slot+0xd20/0x2d20 fs/btrfs/ctree.c:2116 btrfs_update_device+0x13b/0x4f0 fs/btrfs/volumes.c:3067 btrfs_chunk_alloc_add_chunk_item+0x2b2/0x1290 fs/btrfs/volumes.c:5969 do_chunk_alloc fs/btrfs/block-group.c:4043 [inline] btrfs_chunk_alloc+0x9ce/0x15e0 fs/btrfs/block-group.c:4338 btrfs_inc_block_group_ro+0x415/0x6f0 fs/btrfs/block-group.c:3127 btrfs_relocate_block_group+0x39b/0xae0 fs/btrfs/relocation.c:5350 btrfs_relocate_chunk+0x10f/0x810 fs/btrfs/volumes.c:3590 __btrfs_balance+0x1add/0x26d0 fs/btrfs/volumes.c:4486 btrfs_balance+0xafa/0x11f0 fs/btrfs/volumes.c:4873 btrfs_ioctl_balance+0x3d3/0x610 fs/btrfs/ioctl.c:3446 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+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d22f9bf79 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:00007f6d23d80028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f6d23216090 RCX: 00007f6d22f9bf79 RDX: 0000200000000180 RSI: 00000000c4009420 RDI: 0000000000000004 RBP: 00007f6d23d80090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007f6d23216128 R14: 00007f6d23216090 R15: 00007ffc457cddc8 BTRFS error (device loop0 state A): Transaction aborted (error -12) BTRFS: error (device loop0 state A) in do_chunk_alloc:4113: errno=-12 Out of memory BTRFS info (device loop0 state EA): forced readonly ------------[ cut here ]------------ 1 WARNING: fs/btrfs/space-info.h:257 at btrfs_space_info_update_bytes_may_use+0x318/0x6b0 fs/btrfs/space-info.h:257, CPU#0: syz.0.0/5368 Modules linked in: CPU: 0 UID: 0 PID: 5368 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/0x6b0 fs/btrfs/space-info.h:257 Code: 00 00 74 08 4c 89 ff e8 c6 0f 20 fe 4d 8b 27 4c 89 e7 48 8b 6c 24 18 48 89 ee e8 c3 7b b4 fd 49 39 ec 73 1c e8 59 79 b4 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:ffffc9000f0777c0 EFLAGS: 00010293 RAX: ffffffff84111e47 RBX: fffffffffffe8000 RCX: ffff888000898000 RDX: 0000000000000000 RSI: 0000000000018000 RDI: 0000000000017000 RBP: 0000000000018000 R08: ffffffff901172b7 R09: 1ffffffff2022e56 R10: dffffc0000000000 R11: fffffbfff2022e57 R12: 0000000000017000 R13: 1ffff11007006210 R14: dffffc0000000000 R15: ffff888038031080 FS: 00007f6d23d806c0(0000) GS:ffff88808ca62000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d339f30bc8 CR3: 000000003c23c000 CR4: 0000000000352ef0 Call Trace: btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:294 [inline] block_rsv_release_bytes fs/btrfs/block-rsv.c:153 [inline] btrfs_block_rsv_release+0x47b/0x590 fs/btrfs/block-rsv.c:290 btrfs_trans_release_chunk_metadata+0x7f/0xb0 fs/btrfs/transaction.c:261 do_chunk_alloc fs/btrfs/block-group.c:4117 [inline] btrfs_chunk_alloc+0xf4c/0x15e0 fs/btrfs/block-group.c:4338 btrfs_inc_block_group_ro+0x415/0x6f0 fs/btrfs/block-group.c:3127 btrfs_relocate_block_group+0x39b/0xae0 fs/btrfs/relocation.c:5350 btrfs_relocate_chunk+0x10f/0x810 fs/btrfs/volumes.c:3590 __btrfs_balance+0x1add/0x26d0 fs/btrfs/volumes.c:4486 btrfs_balance+0xafa/0x11f0 fs/btrfs/volumes.c:4873 btrfs_ioctl_balance+0x3d3/0x610 fs/btrfs/ioctl.c:3446 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+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d22f9bf79 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:00007f6d23d80028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f6d23216090 RCX: 00007f6d22f9bf79 RDX: 0000200000000180 RSI: 00000000c4009420 RDI: 0000000000000004 RBP: 00007f6d23d80090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007f6d23216128 R14: 00007f6d23216090 R15: 00007ffc457cddc8