BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2)
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): enabling disk space caching
BTRFS info (device loop0): force clearing of disk cache
BTRFS info (device loop0): enabling auto defrag
BTRFS info (device loop0): max_inline set to 0
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 0 UID: 0 PID: 5328 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~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
fail_dump lib/fault-inject.c:73 [inline]
should_fail_ex+0x414/0x560 lib/fault-inject.c:174
should_failslab+0xa8/0x100 mm/failslab.c:46
slab_pre_alloc_hook mm/slub.c:4915 [inline]
slab_alloc_node mm/slub.c:5248 [inline]
__kmalloc_cache_noprof+0x6f/0x6f0 mm/slub.c:5750
kmalloc_noprof include/linux/slab.h:957 [inline]
ulist_add_merge+0x196/0x4c0 fs/btrfs/ulist.c:222
add_extent_changeset fs/btrfs/extent-io-tree.c:199 [inline]
clear_state_bit+0x15f/0x3c0 fs/btrfs/extent-io-tree.c:572
btrfs_clear_extent_bit_changeset+0x97b/0xf00 fs/btrfs/extent-io-tree.c:749
__btrfs_qgroup_release_data+0x21c/0xa20 fs/btrfs/qgroup.c:4355
alloc_ordered_extent+0xd5/0x680 fs/btrfs/ordered-data.c:168
btrfs_alloc_ordered_extent+0x200/0xab0 fs/btrfs/ordered-data.c:-1
btrfs_create_dio_extent+0x7c/0x170 fs/btrfs/direct-io.c:153
btrfs_get_blocks_direct_write+0x3b1/0xc20 fs/btrfs/direct-io.c:276
btrfs_dio_iomap_begin+0xa58/0x1030 fs/btrfs/direct-io.c:524
iomap_iter+0x534/0xde0 fs/iomap/iter.c:108
__iomap_dio_rw+0xc57/0x1e50 fs/iomap/direct-io.c:731
btrfs_dio_write fs/btrfs/direct-io.c:774 [inline]
btrfs_direct_write+0x820/0xba0 fs/btrfs/direct-io.c:907
btrfs_do_write_iter+0x25f/0x710 fs/btrfs/file.c:1459
iter_file_splice_write+0x975/0x10e0 fs/splice.c:738
do_splice_from fs/splice.c:938 [inline]
direct_splice_actor+0x101/0x160 fs/splice.c:1161
splice_direct_to_actor+0x5a8/0xcc0 fs/splice.c:1105
do_splice_direct_actor fs/splice.c:1204 [inline]
do_splice_direct+0x181/0x270 fs/splice.c:1230
do_sendfile+0x4da/0x7e0 fs/read_write.c:1370
__do_sys_sendfile64 fs/read_write.c:1431 [inline]
__se_sys_sendfile64+0x13e/0x190 fs/read_write.c:1417
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb327b8efc9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb328ae7038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fb327de5fa0 RCX: 00007fb327b8efc9
RDX: 0000000000000000 RSI: 000000000000000a RDI: 000000000000000a
RBP: 00007fb328ae7090 R08: 0000000000000000 R09: 0000000000000000
R10: 0001000200201005 R11: 0000000000000246 R12: 0000000000000002
R13: 00007fb327de6038 R14: 00007fb327de5fa0 R15: 00007fffeb53b238
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent-io-tree.c:573!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5328 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~bpo12+1 04/01/2014
RIP: 0010:clear_state_bit+0x3be/0x3c0 fs/btrfs/extent-io-tree.c:573
Code: fe e9 27 fd ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c 3e fe ff ff 4c 89 ef e8 dd 31 31 fe e9 31 fe ff ff e8 53 f6 c9 fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6
RSP: 0018:ffffc9000d4369d8 EFLAGS: 00010293
RAX: ffffffff83f65d3d RBX: ffff888052396d80 RCX: ffff888033bf8000
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: 0000000000001000 R08: 0000000000000820 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff1c4c3b7 R12: 0000000000000000
R13: ffffc9000d436c58 R14: 0000000000000000 R15: 00000000fffffff4
FS: 00007fb328ae76c0(0000) GS:ffff88808d302000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbce5f38004 CR3: 0000000042b1b000 CR4: 0000000000352ef0
Call Trace:
btrfs_clear_extent_bit_changeset+0x97b/0xf00 fs/btrfs/extent-io-tree.c:749
__btrfs_qgroup_release_data+0x21c/0xa20 fs/btrfs/qgroup.c:4355
alloc_ordered_extent+0xd5/0x680 fs/btrfs/ordered-data.c:168
btrfs_alloc_ordered_extent+0x200/0xab0 fs/btrfs/ordered-data.c:-1
btrfs_create_dio_extent+0x7c/0x170 fs/btrfs/direct-io.c:153
btrfs_get_blocks_direct_write+0x3b1/0xc20 fs/btrfs/direct-io.c:276
btrfs_dio_iomap_begin+0xa58/0x1030 fs/btrfs/direct-io.c:524
iomap_iter+0x534/0xde0 fs/iomap/iter.c:108
__iomap_dio_rw+0xc57/0x1e50 fs/iomap/direct-io.c:731
btrfs_dio_write fs/btrfs/direct-io.c:774 [inline]
btrfs_direct_write+0x820/0xba0 fs/btrfs/direct-io.c:907
btrfs_do_write_iter+0x25f/0x710 fs/btrfs/file.c:1459
iter_file_splice_write+0x975/0x10e0 fs/splice.c:738
do_splice_from fs/splice.c:938 [inline]
direct_splice_actor+0x101/0x160 fs/splice.c:1161
splice_direct_to_actor+0x5a8/0xcc0 fs/splice.c:1105
do_splice_direct_actor fs/splice.c:1204 [inline]
do_splice_direct+0x181/0x270 fs/splice.c:1230
do_sendfile+0x4da/0x7e0 fs/read_write.c:1370
__do_sys_sendfile64 fs/read_write.c:1431 [inline]
__se_sys_sendfile64+0x13e/0x190 fs/read_write.c:1417
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb327b8efc9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb328ae7038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fb327de5fa0 RCX: 00007fb327b8efc9
RDX: 0000000000000000 RSI: 000000000000000a RDI: 000000000000000a
RBP: 00007fb328ae7090 R08: 0000000000000000 R09: 0000000000000000
R10: 0001000200201005 R11: 0000000000000246 R12: 0000000000000002
R13: 00007fb327de6038 R14: 00007fb327de5fa0 R15: 00007fffeb53b238
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:clear_state_bit+0x3be/0x3c0 fs/btrfs/extent-io-tree.c:573
Code: fe e9 27 fd ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c 3e fe ff ff 4c 89 ef e8 dd 31 31 fe e9 31 fe ff ff e8 53 f6 c9 fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6
RSP: 0018:ffffc9000d4369d8 EFLAGS: 00010293
RAX: ffffffff83f65d3d RBX: ffff888052396d80 RCX: ffff888033bf8000
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: 0000000000001000 R08: 0000000000000820 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff1c4c3b7 R12: 0000000000000000
R13: ffffc9000d436c58 R14: 0000000000000000 R15: 00000000fffffff4
FS: 00007fb328ae76c0(0000) GS:ffff88808d302000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbce5f38004 CR3: 0000000042b1b000 CR4: 0000000000352ef0