FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 0 UID: 0 PID: 5314 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+0x410/0x560 lib/fault-inject.c:174
should_failslab+0xa8/0x100 mm/failslab.c:46
slab_pre_alloc_hook mm/slub.c:4638 [inline]
slab_alloc_node mm/slub.c:4974 [inline]
kmem_cache_alloc_noprof+0xa1/0x600 mm/slub.c:5010
add_delayed_ref+0x123/0x1ed0 fs/btrfs/delayed-ref.c:1048
btrfs_alloc_tree_block+0xce7/0x1160 fs/btrfs/extent-tree.c:5426
btrfs_force_cow_block+0x562/0x1bf0 fs/btrfs/ctree.c:501
btrfs_cow_block+0x3f1/0xaf0 fs/btrfs/ctree.c:696
btrfs_search_slot+0xd70/0x2d20 fs/btrfs/ctree.c:-1
btrfs_update_device+0x14d/0x4d0 fs/btrfs/volumes.c:3173
btrfs_chunk_alloc_add_chunk_item+0x2ad/0xfc0 fs/btrfs/volumes.c:6297
do_chunk_alloc fs/btrfs/block-group.c:4154 [inline]
btrfs_chunk_alloc+0xabb/0x1330 fs/btrfs/block-group.c:4449
find_free_extent_update_loop fs/btrfs/extent-tree.c:4387 [inline]
find_free_extent+0x31f0/0x5cd0 fs/btrfs/extent-tree.c:4810
btrfs_reserve_extent+0x349/0x850 fs/btrfs/extent-tree.c:4904
btrfs_alloc_tree_block+0x1ed/0x1160 fs/btrfs/extent-tree.c:5375
btrfs_force_cow_block+0x562/0x1bf0 fs/btrfs/ctree.c:501
btrfs_cow_block+0x3f1/0xaf0 fs/btrfs/ctree.c:696
btrfs_search_slot+0xd70/0x2d20 fs/btrfs/ctree.c:-1
btrfs_insert_empty_items+0xa3/0x1a0 fs/btrfs/ctree.c:4310
btrfs_create_new_inode+0xec2/0x1ee0 fs/btrfs/inode.c:6764
btrfs_create_common+0x189/0x310 fs/btrfs/inode.c:6993
lookup_open+0xc0d/0x1a40 fs/namei.c:4567
open_last_lookups fs/namei.c:4767 [inline]
path_openat+0x677/0x1d60 fs/namei.c:4997
do_file_open+0x23e/0x4a0 fs/namei.c:5029
do_sys_openat2+0x115/0x200 fs/open.c:1417
do_sys_open fs/open.c:1423 [inline]
__do_sys_openat fs/open.c:1439 [inline]
__se_sys_openat fs/open.c:1434 [inline]
__x64_sys_openat+0x138/0x170 fs/open.c:1434
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fea50d9e159
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:00007fea4d1d3fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fea51026090 RCX: 00007fea50d9e159
RDX: 000000000000275a RSI: 0000200000000840 RDI: ffffffffffffff9c
RBP: 00007fea4d1d4050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007fea51026128 R14: 00007fea51026090 R15: 00007fff3f81f6f8
BTRFS error (device loop0 state A): Transaction 10 aborted (-ENOMEM)
BTRFS: error (device loop0 state A) in do_chunk_alloc:4224: 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/5314
Modules linked in:
CPU: 0 UID: 0 PID: 5314 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 c6 3d f9 fd 4d 8b 27 4c 89 e7 48 8b 6c 24 18 48 89 ee e8 13 a2 87 fd 49 39 ec 73 1c e8 39 9f 87 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:ffffc9000ee66990 EFLAGS: 00010293
RAX: ffffffff84403727 RBX: fffffffffffe8000 RCX: ffff888035644b00
RDX: 0000000000000000 RSI: 0000000000018000 RDI: 0000000000017000
RBP: 0000000000018000 R08: ffffffff907a427f R09: 1ffffffff20f484f
R10: dffffc0000000000 R11: fffffbfff20f4850 R12: 0000000000017000
R13: 1ffff1100a311310 R14: dffffc0000000000 R15: ffff888051889880
FS: 00007fea4d1d46c0(0000) GS:ffff88808c2ca000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fea4d191fe8 CR3: 0000000043f36000 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:4228 [inline]
btrfs_chunk_alloc+0x106e/0x1330 fs/btrfs/block-group.c:4449
find_free_extent_update_loop fs/btrfs/extent-tree.c:4387 [inline]
find_free_extent+0x31f0/0x5cd0 fs/btrfs/extent-tree.c:4810
btrfs_reserve_extent+0x349/0x850 fs/btrfs/extent-tree.c:4904
btrfs_alloc_tree_block+0x1ed/0x1160 fs/btrfs/extent-tree.c:5375
btrfs_force_cow_block+0x562/0x1bf0 fs/btrfs/ctree.c:501
btrfs_cow_block+0x3f1/0xaf0 fs/btrfs/ctree.c:696
btrfs_search_slot+0xd70/0x2d20 fs/btrfs/ctree.c:-1
btrfs_insert_empty_items+0xa3/0x1a0 fs/btrfs/ctree.c:4310
btrfs_create_new_inode+0xec2/0x1ee0 fs/btrfs/inode.c:6764
btrfs_create_common+0x189/0x310 fs/btrfs/inode.c:6993
lookup_open+0xc0d/0x1a40 fs/namei.c:4567
open_last_lookups fs/namei.c:4767 [inline]
path_openat+0x677/0x1d60 fs/namei.c:4997
do_file_open+0x23e/0x4a0 fs/namei.c:5029
do_sys_openat2+0x115/0x200 fs/open.c:1417
do_sys_open fs/open.c:1423 [inline]
__do_sys_openat fs/open.c:1439 [inline]
__se_sys_openat fs/open.c:1434 [inline]
__x64_sys_openat+0x138/0x170 fs/open.c:1434
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fea50d9e159
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:00007fea4d1d3fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fea51026090 RCX: 00007fea50d9e159
RDX: 000000000000275a RSI: 0000200000000840 RDI: ffffffffffffff9c
RBP: 00007fea4d1d4050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007fea51026128 R14: 00007fea51026090 R15: 00007fff3f81f6f8