FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 0 UID: 0 PID: 5338 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:4539 [inline]
slab_alloc_node mm/slub.c:4897 [inline]
kmem_cache_alloc_noprof+0xa6/0x5f0 mm/slub.c:4931
alloc_ordered_extent+0x273/0x8a0 fs/btrfs/ordered-data.c:189
btrfs_alloc_ordered_extent+0x1f1/0xad0 fs/btrfs/ordered-data.c:-1
cow_one_range fs/btrfs/inode.c:1241 [inline]
cow_file_range+0x744/0x12a0 fs/btrfs/inode.c:1403
fallback_to_cow+0x5ea/0xa00 fs/btrfs/inode.c:1751
run_delalloc_nocow+0x110c/0x17a0 fs/btrfs/inode.c:2181
btrfs_run_delalloc_range+0x8ba/0x1fd0 fs/btrfs/inode.c:2419
writepage_delalloc+0x104d/0x1ba0 fs/btrfs/extent_io.c:1558
extent_writepage fs/btrfs/extent_io.c:1930 [inline]
extent_write_cache_pages fs/btrfs/extent_io.c:2593 [inline]
btrfs_writepages+0x1667/0x28b0 fs/btrfs/extent_io.c:2725
do_writepages+0x338/0x560 mm/page-writeback.c:2571
filemap_writeback mm/filemap.c:387 [inline]
filemap_fdatawrite_range+0x1ef/0x2f0 mm/filemap.c:412
btrfs_fdatawrite_range+0x54/0xf0 fs/btrfs/file.c:3884
btrfs_wait_ordered_range+0x59/0x260 fs/btrfs/ordered-data.c:929
btrfs_truncate fs/btrfs/inode.c:7663 [inline]
btrfs_setsize fs/btrfs/inode.c:5275 [inline]
btrfs_setattr+0x8c5/0x1220 fs/btrfs/inode.c:5310
notify_change+0xbba/0xea0 fs/attr.c:556
do_truncate+0x1c2/0x250 fs/open.c:68
vfs_truncate+0x4b4/0x540 fs/open.c:118
ksys_truncate+0xf3/0x1c0 fs/open.c:142
__do_sys_truncate fs/open.c:154 [inline]
__se_sys_truncate fs/open.c:152 [inline]
__x64_sys_truncate+0x5b/0x70 fs/open.c:152
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:0x7effe439de99
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:00007effe524ffe8 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 00007effe4626180 RCX: 00007effe439de99
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000200000000280
RBP: 00007effe5250050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007effe4626218 R14: 00007effe4626180 R15: 00007ffcfb78f648
BTRFS error (device loop0): cow_file_range failed, root=5 inode=260 start=28672 len=4096 cur_offset=28672 cur_alloc_size=4096: -12
BTRFS error (device loop0): run_delalloc_nocow failed, root=5 inode=260 start=28672 len=4096 cur_offset=65536 oe_cleanup=28672 oe_cleanup_len=0 untouched_start=32768 untouched_len=0: -12
BTRFS error (device loop0): failed to run delalloc range, root=5 ino=260 folio=0 submit_bitmap=0,7 start=28672 len=4096: -12
assertion failed: !btrfs_extent_map_is_compressed(em), in fs/btrfs/extent_io.c:1720
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent_io.c:1720!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5338 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:submit_one_sector fs/btrfs/extent_io.c:1720 [inline]
RIP: 0010:extent_writepage_io+0x1022/0x11a0 fs/btrfs/extent_io.c:1826
Code: 0d fd 90 0f 0b e8 2e ba ac fd 48 c7 c7 20 e7 38 8c 48 c7 c6 e0 fd 38 8c 48 c7 c2 a0 e7 38 8c b9 b8 06 00 00 e8 1f 68 0d fd 90 <0f> 0b e8 07 ba ac fd 48 c7 c7 20 e7 38 8c 48 c7 c6 80 fe 38 8c 48
RSP: 0000:ffffc9000f617100 EFLAGS: 00010246
RAX: 0000000000000053 RBX: 0000000000000002 RCX: fe0965fb6e528400
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffea0001501000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff1d3ca24 R12: 0000000000001000
R13: dffffc0000000000 R14: ffff88803fdeda28 R15: 000000000051b000
FS: 00007effe52506c0(0000) GS:ffff88808c545000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f974aa90000 CR3: 00000000120a2000 CR4: 0000000000352ef0
Call Trace:
extent_writepage fs/btrfs/extent_io.c:1936 [inline]
extent_write_cache_pages fs/btrfs/extent_io.c:2593 [inline]
btrfs_writepages+0x17a1/0x28b0 fs/btrfs/extent_io.c:2725
do_writepages+0x338/0x560 mm/page-writeback.c:2571
filemap_writeback mm/filemap.c:387 [inline]
filemap_fdatawrite_range+0x1ef/0x2f0 mm/filemap.c:412
btrfs_fdatawrite_range+0x54/0xf0 fs/btrfs/file.c:3884
btrfs_wait_ordered_range+0x59/0x260 fs/btrfs/ordered-data.c:929
btrfs_truncate fs/btrfs/inode.c:7663 [inline]
btrfs_setsize fs/btrfs/inode.c:5275 [inline]
btrfs_setattr+0x8c5/0x1220 fs/btrfs/inode.c:5310
notify_change+0xbba/0xea0 fs/attr.c:556
do_truncate+0x1c2/0x250 fs/open.c:68
vfs_truncate+0x4b4/0x540 fs/open.c:118
ksys_truncate+0xf3/0x1c0 fs/open.c:142
__do_sys_truncate fs/open.c:154 [inline]
__se_sys_truncate fs/open.c:152 [inline]
__x64_sys_truncate+0x5b/0x70 fs/open.c:152
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:0x7effe439de99
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:00007effe524ffe8 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 00007effe4626180 RCX: 00007effe439de99
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000200000000280
RBP: 00007effe5250050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007effe4626218 R14: 00007effe4626180 R15: 00007ffcfb78f648
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:submit_one_sector fs/btrfs/extent_io.c:1720 [inline]
RIP: 0010:extent_writepage_io+0x1022/0x11a0 fs/btrfs/extent_io.c:1826
Code: 0d fd 90 0f 0b e8 2e ba ac fd 48 c7 c7 20 e7 38 8c 48 c7 c6 e0 fd 38 8c 48 c7 c2 a0 e7 38 8c b9 b8 06 00 00 e8 1f 68 0d fd 90 <0f> 0b e8 07 ba ac fd 48 c7 c7 20 e7 38 8c 48 c7 c6 80 fe 38 8c 48
RSP: 0000:ffffc9000f617100 EFLAGS: 00010246
RAX: 0000000000000053 RBX: 0000000000000002 RCX: fe0965fb6e528400
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffea0001501000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff1d3ca24 R12: 0000000000001000
R13: dffffc0000000000 R14: ffff88803fdeda28 R15: 000000000051b000
FS: 00007effe52506c0(0000) GS:ffff88808c545000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055bd30f63168 CR3: 00000000120a2000 CR4: 0000000000352ef0