BTRFS warning (device loop0): couldn't read tree root
BTRFS warning (device loop0): try to load backup roots slot 2
BTRFS warning (device loop0): couldn't read tree root
BTRFS warning (device loop0): try to load backup roots slot 3
BTRFS info (device loop0): rebuilding free space tree
BTRFS info (device loop0): disabling free space tree
BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1)
BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2)
BTRFS info (device loop0): checking UUID tree
BTRFS info (device loop0): setting nodatasum
BTRFS info (device loop0): setting nodatacow
BTRFS info (device loop0): enabling ssd optimizations
BTRFS info (device loop0): turning on async discard
BTRFS info (device loop0): force clearing of disk cache
BTRFS info (device loop0): trying to use backup root at mount time
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 0 UID: 0 PID: 5329 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
btrfs_alloc_extent_map+0x21/0xf0 fs/btrfs/extent_map.c:48
btrfs_create_io_em+0x22b/0x6d0 fs/btrfs/inode.c:7386
btrfs_create_dio_extent+0x4b/0x160 fs/btrfs/direct-io.c:152
btrfs_new_extent_direct fs/btrfs/direct-io.c:207 [inline]
btrfs_get_blocks_direct_write+0x8fb/0xe90 fs/btrfs/direct-io.c:325
btrfs_dio_iomap_begin+0xa85/0x1010 fs/btrfs/direct-io.c:535
iomap_iter+0x5f5/0xf80 fs/iomap/iter.c:110
__iomap_dio_rw+0xcab/0x1de0 fs/iomap/direct-io.c:808
btrfs_dio_write fs/btrfs/direct-io.c:825 [inline]
btrfs_direct_write+0x8a3/0xc20 fs/btrfs/direct-io.c:957
btrfs_do_write_iter+0x325/0x790 fs/btrfs/file.c:1449
do_iter_readv_writev+0x612/0x8c0 fs/read_write.c:-1
vfs_writev+0x343/0x990 fs/read_write.c:1058
do_pwritev fs/read_write.c:1154 [inline]
__do_sys_pwritev2 fs/read_write.c:1212 [inline]
__se_sys_pwritev2+0x177/0x2a0 fs/read_write.c:1203
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:0x7fed9979de59
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:00007fed9a6c0fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007fed99a25fa0 RCX: 00007fed9979de59
RDX: 0000000000000001 RSI: 0000200000000240 RDI: 0000000000000006
RBP: 00007fed9a6c1050 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000007000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007fed99a26038 R14: 00007fed99a25fa0 R15: 00007ffcb081c708
------------[ cut here ]------------
1
WARNING: fs/btrfs/space-info.h:286 at btrfs_space_info_update_bytes_may_use fs/btrfs/space-info.h:286 [inline], CPU#0: syz.0.0/5329
WARNING: fs/btrfs/space-info.h:286 at btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:323 [inline], CPU#0: syz.0.0/5329
WARNING: fs/btrfs/space-info.h:286 at btrfs_free_reserved_data_space_noquota+0x3df/0x680 fs/btrfs/delalloc-space.c:191, CPU#0: syz.0.0/5329
Modules linked in:
CPU: 0 UID: 0 PID: 5329 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 fs/btrfs/space-info.h:286 [inline]
RIP: 0010:btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:323 [inline]
RIP: 0010:btrfs_free_reserved_data_space_noquota+0x3df/0x680 fs/btrfs/delalloc-space.c:191
Code: 00 74 08 48 89 ef e8 a0 05 fe fd 4c 8b 7d 00 4c 89 ff 4c 8b 64 24 08 4c 89 e6 e8 2c e3 8e fd 4d 39 e7 73 16 e8 c2 e0 8e fd 90 <0f> 0b 90 45 31 ff 41 80 7c 1d 00 00 75 94 eb 9a e8 ac e0 8e fd 41
RSP: 0018:ffffc9000e407368 EFLAGS: 00010293
RAX: ffffffff8437a10e RBX: dffffc0000000000 RCX: ffff88803701a540
RDX: 0000000000000000 RSI: 0000000000140000 RDI: 0000000000138000
RBP: ffff88805248f880 R08: ffffffff9057a5f7 R09: 1ffffffff20af4be
R10: dffffc0000000000 R11: fffffbfff20af4bf R12: 0000000000140000
R13: 1ffff1100a491f10 R14: ffff88805248f800 R15: 0000000000138000
FS: 00007fed9a6c16c0(0000) GS:ffff88808c54a000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005569370c2530 CR3: 0000000012581000 CR4: 0000000000352ef0
Call Trace:
btrfs_free_reserved_data_space+0x9f/0xe0 fs/btrfs/delalloc-space.c:211
btrfs_dio_iomap_begin+0x8c2/0x1010 fs/btrfs/direct-io.c:608
iomap_iter+0x5f5/0xf80 fs/iomap/iter.c:110
__iomap_dio_rw+0xcab/0x1de0 fs/iomap/direct-io.c:808
btrfs_dio_write fs/btrfs/direct-io.c:825 [inline]
btrfs_direct_write+0x8a3/0xc20 fs/btrfs/direct-io.c:957
btrfs_do_write_iter+0x325/0x790 fs/btrfs/file.c:1449
do_iter_readv_writev+0x612/0x8c0 fs/read_write.c:-1
vfs_writev+0x343/0x990 fs/read_write.c:1058
do_pwritev fs/read_write.c:1154 [inline]
__do_sys_pwritev2 fs/read_write.c:1212 [inline]
__se_sys_pwritev2+0x177/0x2a0 fs/read_write.c:1203
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:0x7fed9979de59
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:00007fed9a6c0fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007fed99a25fa0 RCX: 00007fed9979de59
RDX: 0000000000000001 RSI: 0000200000000240 RDI: 0000000000000006
RBP: 00007fed9a6c1050 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000007000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007fed99a26038 R14: 00007fed99a25fa0 R15: 00007ffcb081c708