loop0: detected capacity change from 0 to 32768
BTRFS: device fsid 395ef67a-297e-477c-816d-cd80a5b93e5d devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5338)
BTRFS info (device loop0): first mount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d
BTRFS info (device loop0): using sha256 (sha256-lib) checksum algorithm
BTRFS info (device loop0): enabling ssd optimizations
BTRFS info (device loop0): turning on async discard
BTRFS info (device loop0): enabling free space tree
loop0: detected capacity change from 32768 to 0
BTRFS error (device loop0 state A): Transaction aborted (error -5)
BTRFS: error (device loop0 state A) in __btrfs_run_delayed_items:1176: errno=-5 IO failure
BTRFS info (device loop0 state EA): forced readonly
BTRFS warning (device loop0 state EA): Skipping commit of aborted transaction.
BTRFS: error (device loop0 state EA) in cleanup_transaction:2036: errno=-5 IO failure
BTRFS error (device loop0 state EMA): remounting read-write after error is not allowed
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~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:4901 [inline]
slab_alloc_node mm/slub.c:5234 [inline]
__kmalloc_cache_noprof+0x84/0x700 mm/slub.c:5766
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+0x946/0xed0 fs/btrfs/extent-io-tree.c:749
qgroup_free_reserved_data fs/btrfs/qgroup.c:4301 [inline]
__btrfs_qgroup_release_data+0x49d/0x9f0 fs/btrfs/qgroup.c:4336
btrfs_truncate_block+0x992/0x1520 fs/btrfs/inode.c:5014
btrfs_fallocate+0x839/0x1c10 fs/btrfs/file.c:3167
vfs_fallocate+0x669/0x7e0 fs/open.c:339
ksys_fallocate fs/open.c:363 [inline]
__do_sys_fallocate fs/open.c:368 [inline]
__se_sys_fallocate fs/open.c:366 [inline]
__x64_sys_fallocate+0xc0/0x110 fs/open.c:366
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fae1b78f7c9
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:00007fae1c57d038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007fae1b9e5fa0 RCX: 00007fae1b78f7c9
RDX: 0000000000000003 RSI: 0000000000000010 RDI: 0000000000000007
RBP: 00007fae1c57d090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000a57 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fae1b9e6038 R14: 00007fae1b9e5fa0 R15: 00007fffb3cb2e78
------------[ 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: 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~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 7d dc 2e fe e9 31 fe ff ff e8 73 00 c7 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:ffffc9000e85f738 EFLAGS: 00010293
RAX: ffffffff83fac01d RBX: ffff888000aa3f00 RCX: ffff888035ea8000
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: 0000000000001000 R08: 0000000000000820 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff1c4d83b R12: 0000000000000000
R13: ffffc9000e85f968 R14: 0000000000000000 R15: 00000000fffffff4
FS: 00007fae1c57d6c0(0000) GS:ffff88808d239000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055702776f130 CR3: 0000000011691000 CR4: 0000000000352ef0
Call Trace:
btrfs_clear_extent_bit_changeset+0x946/0xed0 fs/btrfs/extent-io-tree.c:749
qgroup_free_reserved_data fs/btrfs/qgroup.c:4301 [inline]
__btrfs_qgroup_release_data+0x49d/0x9f0 fs/btrfs/qgroup.c:4336
btrfs_truncate_block+0x992/0x1520 fs/btrfs/inode.c:5014
btrfs_fallocate+0x839/0x1c10 fs/btrfs/file.c:3167
vfs_fallocate+0x669/0x7e0 fs/open.c:339
ksys_fallocate fs/open.c:363 [inline]
__do_sys_fallocate fs/open.c:368 [inline]
__se_sys_fallocate fs/open.c:366 [inline]
__x64_sys_fallocate+0xc0/0x110 fs/open.c:366
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fae1b78f7c9
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:00007fae1c57d038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007fae1b9e5fa0 RCX: 00007fae1b78f7c9
RDX: 0000000000000003 RSI: 0000000000000010 RDI: 0000000000000007
RBP: 00007fae1c57d090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000a57 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fae1b9e6038 R14: 00007fae1b9e5fa0 R15: 00007fffb3cb2e78
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 7d dc 2e fe e9 31 fe ff ff e8 73 00 c7 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:ffffc9000e85f738 EFLAGS: 00010293
RAX: ffffffff83fac01d RBX: ffff888000aa3f00 RCX: ffff888035ea8000
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: 0000000000001000 R08: 0000000000000820 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff1c4d83b R12: 0000000000000000
R13: ffffc9000e85f968 R14: 0000000000000000 R15: 00000000fffffff4
FS: 00007fae1c57d6c0(0000) GS:ffff88808d239000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055702776f130 CR3: 0000000011691000 CR4: 0000000000352ef0