FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 0 UID: 0 PID: 5337 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]
__do_kmalloc_node mm/slub.c:5361 [inline]
__kmalloc_flags_noprof+0x129/0x7f0 mm/slub.c:5554
_kmalloc_flags_noprof mm/slab.h:38 [inline]
__alloc_empty_sheaf+0x28/0x40 mm/slub.c:2779
alloc_empty_sheaf mm/slub.c:2799 [inline]
__pcs_replace_empty_main+0x430/0x6b0 mm/slub.c:4698
alloc_from_pcs mm/slub.c:4801 [inline]
slab_alloc_node mm/slub.c:4933 [inline]
kmem_cache_alloc_noprof+0x382/0x5f0 mm/slub.c:4959
btrfs_alloc_extent_map+0x21/0xf0 fs/btrfs/extent_map.c:48
btrfs_get_extent+0x296/0x1700 fs/btrfs/inode.c:7060
btrfs_cont_expand+0x244/0xb40 fs/btrfs/inode.c:5143
btrfs_write_check+0x263/0x340 fs/btrfs/file.c:1072
btrfs_direct_write+0x389/0xc20 fs/btrfs/direct-io.c:898
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:0x7f5b9ab9de59
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:00007f5b9ba9cfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f5b9ae26090 RCX: 00007f5b9ab9de59
RDX: 0000000000000001 RSI: 0000200000000240 RDI: 0000000000000005
RBP: 00007f5b9ba9d050 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000003000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f5b9ae26128 R14: 00007f5b9ae26090 R15: 00007fff75016b78
BTRFS critical (device loop0): panic in insert_ordered_extent:264: overlapping ordered extents, existing oe file_offset 20480 num_bytes 425984 flags 0x1089, new oe file_offset 20480 num_bytes 425984 flags 0x80 (errno=-17 Object already exists)
------------[ cut here ]------------
kernel BUG at fs/btrfs/ordered-data.c:264!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5337 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:insert_ordered_extent fs/btrfs/ordered-data.c:261 [inline]
RIP: 0010:btrfs_alloc_ordered_extent+0x943/0xad0 fs/btrfs/ordered-data.c:336
Code: 21 8e ba 08 01 00 00 b9 ef ff ff ff 49 c7 c0 60 e0 38 8c 4d 89 f9 ff 75 00 41 54 41 55 41 56 53 e8 d2 34 12 fd 48 83 c4 28 90 <0f> 0b e8 36 1e ae fd 48 c7 c7 c0 d7 38 8c 48 c7 c6 20 d8 38 8c 48
RSP: 0018:ffffc9000f43e890 EFLAGS: 00010296
RAX: 52460d6606881d00 RBX: 0000000000068000 RCX: 1ffff92001e87cf0
RDX: 0000000000000002 RSI: ffffffff8e4b34e1 RDI: ffff888033512540
RBP: ffff88801f520320 R08: ffffc9000f43e307 R09: 1ffff92001e87c60
R10: dffffc0000000000 R11: fffff52001e87c61 R12: 0000000000068000
R13: 0000000000005000 R14: 0000000000001089 R15: 0000000000005000
FS: 00007f5b9ba9d6c0(0000) GS:ffff88808c54a000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f35f95ea000 CR3: 0000000012b6c000 CR4: 0000000000352ef0
Call Trace:
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+0xbe4/0x1c20 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_direct_write+0x69d/0xc20 fs/btrfs/direct-io.c:1038
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:0x7f5b9ab9de59
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:00007f5b9ba9cfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f5b9ae26090 RCX: 00007f5b9ab9de59
RDX: 0000000000000001 RSI: 0000200000000240 RDI: 0000000000000005
RBP: 00007f5b9ba9d050 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000003000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f5b9ae26128 R14: 00007f5b9ae26090 R15: 00007fff75016b78
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:insert_ordered_extent fs/btrfs/ordered-data.c:261 [inline]
RIP: 0010:btrfs_alloc_ordered_extent+0x943/0xad0 fs/btrfs/ordered-data.c:336
Code: 21 8e ba 08 01 00 00 b9 ef ff ff ff 49 c7 c0 60 e0 38 8c 4d 89 f9 ff 75 00 41 54 41 55 41 56 53 e8 d2 34 12 fd 48 83 c4 28 90 <0f> 0b e8 36 1e ae fd 48 c7 c7 c0 d7 38 8c 48 c7 c6 20 d8 38 8c 48
RSP: 0018:ffffc9000f43e890 EFLAGS: 00010296
RAX: 52460d6606881d00 RBX: 0000000000068000 RCX: 1ffff92001e87cf0
RDX: 0000000000000002 RSI: ffffffff8e4b34e1 RDI: ffff888033512540
RBP: ffff88801f520320 R08: ffffc9000f43e307 R09: 1ffff92001e87c60
R10: dffffc0000000000 R11: fffff52001e87c61 R12: 0000000000068000
R13: 0000000000005000 R14: 0000000000001089 R15: 0000000000005000
FS: 00007f5b9ba9d6c0(0000) GS:ffff88808c54a000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f35f95ea000 CR3: 0000000012b6c000 CR4: 0000000000352ef0