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 off barriers
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+0x412/0x560 lib/fault-inject.c:174
should_failslab+0xa8/0x100 mm/failslab.c:46
slab_pre_alloc_hook mm/slub.c:4522 [inline]
slab_alloc_node mm/slub.c:4875 [inline]
kmem_cache_alloc_noprof+0x87/0x650 mm/slub.c:4905
btrfs_alloc_extent_map+0x21/0xf0 fs/btrfs/extent_map.c:48
btrfs_create_io_em+0x22b/0x6d0 fs/btrfs/inode.c:7570
btrfs_create_dio_extent+0x4b/0x160 fs/btrfs/direct-io.c:150
btrfs_new_extent_direct fs/btrfs/direct-io.c:205 [inline]
btrfs_get_blocks_direct_write+0x851/0xcd0 fs/btrfs/direct-io.c:322
btrfs_dio_iomap_begin+0xa80/0x1010 fs/btrfs/direct-io.c:526
iomap_iter+0x600/0xf90 fs/iomap/iter.c:110
__iomap_dio_rw+0xcd7/0x1e40 fs/iomap/direct-io.c:806
btrfs_dio_write fs/btrfs/direct-io.c:773 [inline]
btrfs_direct_write+0x81f/0xb70 fs/btrfs/direct-io.c:905
btrfs_do_write_iter+0x330/0x840 fs/btrfs/file.c:1458
aio_write+0x5cd/0x870 fs/aio.c:1688
__io_submit_one fs/aio.c:-1 [inline]
io_submit_one+0x7bb/0x14c0 fs/aio.c:2107
__do_sys_io_submit fs/aio.c:2166 [inline]
__se_sys_io_submit+0x195/0x340 fs/aio.c:2136
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f89bbf9cdd9
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:00007f89bcdd9fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1
RAX: ffffffffffffffda RBX: 00007f89bc215fa0 RCX: 00007f89bbf9cdd9
RDX: 0000200000000540 RSI: 000000000000003b RDI: 00007f89bcd90000
RBP: 00007f89bcdda050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007f89bc216038 R14: 00007f89bc215fa0 R15: 00007ffcb3944468
------------[ cut here ]------------
1
WARNING: fs/btrfs/space-info.h:275 at btrfs_space_info_update_bytes_may_use fs/btrfs/space-info.h:275 [inline], CPU#0: syz.0.0/5329
WARNING: fs/btrfs/space-info.h:275 at btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:312 [inline], CPU#0: syz.0.0/5329
WARNING: fs/btrfs/space-info.h:275 at btrfs_free_reserved_data_space_noquota+0x3f6/0x6b0 fs/btrfs/delalloc-space.c:189, 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:275 [inline]
RIP: 0010:btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:312 [inline]
RIP: 0010:btrfs_free_reserved_data_space_noquota+0x3f6/0x6b0 fs/btrfs/delalloc-space.c:189
Code: 00 00 74 08 48 89 df e8 48 6c 1c fe 4c 8b 3b 4c 89 ff 4c 8b 64 24 10 4c 89 e6 e8 35 a3 af fd 4d 39 e7 73 16 e8 cb a0 af fd 90 <0f> 0b 90 45 31 ff 41 80 7c 2d 00 00 75 95 eb 9b e8 b5 a0 af fd 41
RSP: 0018:ffffc90004f272a0 EFLAGS: 00010293
RAX: ffffffff84163075 RBX: ffff888043329880 RCX: ffff8880388aa500
RDX: 0000000000000000 RSI: 0000000000800000 RDI: 000000000053e000
RBP: dffffc0000000000 R08: ffffffff9030d9f7 R09: 1ffffffff2061b3e
R10: dffffc0000000000 R11: fffffbfff2061b3f R12: 0000000000800000
R13: 1ffff11008665310 R14: ffff888043329800 R15: 000000000053e000
FS: 00007f89bcdda6c0(0000) GS:ffff88808c881000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f892514c000 CR3: 0000000012096000 CR4: 0000000000352ef0
Call Trace:
btrfs_free_reserved_data_space+0x9f/0xe0 fs/btrfs/delalloc-space.c:209
btrfs_dio_iomap_begin+0x8bd/0x1010 fs/btrfs/direct-io.c:599
iomap_iter+0x600/0xf90 fs/iomap/iter.c:110
__iomap_dio_rw+0xcd7/0x1e40 fs/iomap/direct-io.c:806
btrfs_dio_write fs/btrfs/direct-io.c:773 [inline]
btrfs_direct_write+0x81f/0xb70 fs/btrfs/direct-io.c:905
btrfs_do_write_iter+0x330/0x840 fs/btrfs/file.c:1458
aio_write+0x5cd/0x870 fs/aio.c:1688
__io_submit_one fs/aio.c:-1 [inline]
io_submit_one+0x7bb/0x14c0 fs/aio.c:2107
__do_sys_io_submit fs/aio.c:2166 [inline]
__se_sys_io_submit+0x195/0x340 fs/aio.c:2136
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f89bbf9cdd9
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:00007f89bcdd9fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1
RAX: ffffffffffffffda RBX: 00007f89bc215fa0 RCX: 00007f89bbf9cdd9
RDX: 0000200000000540 RSI: 000000000000003b RDI: 00007f89bcd90000
RBP: 00007f89bcdda050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007f89bc216038 R14: 00007f89bc215fa0 R15: 00007ffcb3944468