loop0: detected capacity change from 0 to 262144
BTRFS: device fsid ee456214-da33-4366-8ba0-b289b748333f devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5324)
BTRFS info (device loop0): first mount of filesystem ee456214-da33-4366-8ba0-b289b748333f
BTRFS info (device loop0): using xxhash64 checksum algorithm
BTRFS info (device loop0): deleted orphan free space tree entries
BTRFS info (device loop0): enabling ssd optimizations
BTRFS info (device loop0): turning on async discard
BTRFS info (device loop0): enabling free space tree
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 0 UID: 0 PID: 5324 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:4561 [inline]
slab_alloc_node mm/slub.c:4916 [inline]
kmem_cache_alloc_noprof+0x87/0x650 mm/slub.c:4946
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
find_free_extent_update_loop fs/btrfs/extent-tree.c:4387 [inline]
find_free_extent+0x31ae/0x5c70 fs/btrfs/extent-tree.c:4810
btrfs_reserve_extent+0x349/0x850 fs/btrfs/extent-tree.c:4904
__btrfs_prealloc_file_range+0x2bf/0xe70 fs/btrfs/inode.c:9044
btrfs_prealloc_file_range+0x40/0x60 fs/btrfs/inode.c:9165
btrfs_fallocate+0x14c4/0x1c30 fs/btrfs/file.c:3242
vfs_fallocate+0x65a/0x7e0 fs/open.c:338
ksys_fallocate fs/open.c:362 [inline]
__do_sys_fallocate fs/open.c:367 [inline]
__se_sys_fallocate fs/open.c:365 [inline]
__x64_sys_fallocate+0xbf/0x110 fs/open.c:365
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:0x7f1aa779ce59
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:00007f1aa8680fe8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f1aa7a15fa0 RCX: 00007f1aa779ce59
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007f1aa8681050 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000001001f0 R11: 0000000000000246 R12: 0000000000000002
R13: 00007f1aa7a16038 R14: 00007f1aa7a15fa0 R15: 00007ffc62b8ce38
BTRFS error (device loop0 state A): Transaction 9 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/5324
Modules linked in:
CPU: 0 UID: 0 PID: 5324 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 a6 62 18 fe 4d 8b 27 4c 89 e7 48 8b 6c 24 18 48 89 ee e8 c3 41 a9 fd 49 39 ec 73 1c e8 59 3f a9 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:ffffc9000e0ff2e8 EFLAGS: 00010293
RAX: ffffffff841d01e7 RBX: fffffffffffe8000 RCX: ffff888039854a80
RDX: 0000000000000000 RSI: 0000000000018000 RDI: 0000000000017000
RBP: 0000000000018000 R08: ffffffff9031d8f7 R09: 1ffffffff2063b1e
R10: dffffc0000000000 R11: fffffbfff2063b1f R12: 0000000000017000
R13: 1ffff11002655f10 R14: dffffc0000000000 R15: ffff8880132af880
FS: 00007f1aa86816c0(0000) GS:ffff88808c846000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0dd0b7e000 CR3: 000000000e50c000 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
find_free_extent_update_loop fs/btrfs/extent-tree.c:4387 [inline]
find_free_extent+0x31ae/0x5c70 fs/btrfs/extent-tree.c:4810
btrfs_reserve_extent+0x349/0x850 fs/btrfs/extent-tree.c:4904
__btrfs_prealloc_file_range+0x2bf/0xe70 fs/btrfs/inode.c:9044
btrfs_prealloc_file_range+0x40/0x60 fs/btrfs/inode.c:9165
btrfs_fallocate+0x14c4/0x1c30 fs/btrfs/file.c:3242
vfs_fallocate+0x65a/0x7e0 fs/open.c:338
ksys_fallocate fs/open.c:362 [inline]
__do_sys_fallocate fs/open.c:367 [inline]
__se_sys_fallocate fs/open.c:365 [inline]
__x64_sys_fallocate+0xbf/0x110 fs/open.c:365
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:0x7f1aa779ce59
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:00007f1aa8680fe8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f1aa7a15fa0 RCX: 00007f1aa779ce59
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007f1aa8681050 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000001001f0 R11: 0000000000000246 R12: 0000000000000002
R13: 00007f1aa7a16038 R14: 00007f1aa7a15fa0 R15: 00007ffc62b8ce38