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 (5325)
BTRFS info (device loop0): first mount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d
BTRFS info (device loop0): using sha256 (sha256-x86_64) checksum algorithm
BTRFS info (device loop0): using free-space-tree
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted 6.16.0-rc3-syzkaller-00042-g78f4e737a53e #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:4101 [inline]
slab_alloc_node mm/slub.c:4177 [inline]
__kmalloc_cache_noprof+0x70/0x3d0 mm/slub.c:4354
kmalloc_noprof include/linux/slab.h:905 [inline]
ulist_add_merge+0x18e/0x4b0 fs/btrfs/ulist.c:223
add_extent_changeset fs/btrfs/extent-io-tree.c:198 [inline]
clear_state_bit+0x15f/0x3c0 fs/btrfs/extent-io-tree.c:571
btrfs_clear_extent_bit_changeset+0x978/0xf00 fs/btrfs/extent-io-tree.c:748
__btrfs_qgroup_release_data+0x21c/0xa20 fs/btrfs/qgroup.c:4366
alloc_ordered_extent+0xed/0x680 fs/btrfs/ordered-data.c:170
btrfs_alloc_ordered_extent+0x200/0xab0 fs/btrfs/ordered-data.c:-1
cow_file_range+0x799/0xf40 fs/btrfs/inode.c:1403
btrfs_run_delalloc_range+0x41b/0xef0 fs/btrfs/inode.c:2348
writepage_delalloc+0xb2f/0x1370 fs/btrfs/extent_io.c:1386
extent_writepage fs/btrfs/extent_io.c:1717 [inline]
extent_write_cache_pages fs/btrfs/extent_io.c:2403 [inline]
btrfs_writepages+0x1362/0x21a0 fs/btrfs/extent_io.c:2536
do_writepages+0x32e/0x550 mm/page-writeback.c:2636
filemap_fdatawrite_wbc mm/filemap.c:386 [inline]
__filemap_fdatawrite_range mm/filemap.c:419 [inline]
filemap_write_and_wait_range+0x217/0x310 mm/filemap.c:691
__iomap_dio_rw+0x927/0x1e40 fs/iomap/direct-io.c:654
iomap_dio_rw+0x45/0xb0 fs/iomap/direct-io.c:823
btrfs_dio_read fs/btrfs/direct-io.c:765 [inline]
btrfs_direct_read+0x31c/0x620 fs/btrfs/direct-io.c:1047
btrfs_file_read_iter+0x81/0x1a0 fs/btrfs/file.c:3753
copy_splice_read+0x552/0x9b0 fs/splice.c:363
do_splice_read fs/splice.c:978 [inline]
splice_direct_to_actor+0x4d0/0xcc0 fs/splice.c:1083
do_splice_direct_actor fs/splice.c:1201 [inline]
do_splice_direct+0x181/0x270 fs/splice.c:1227
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/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc8a838e929
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:00007fc8a91de038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fc8a85b5fa0 RCX: 00007fc8a838e929
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004
RBP: 00007fc8a91de090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000800000009 R11: 0000000000000246 R12: 0000000000000002
R13: 0000000000000000 R14: 00007fc8a85b5fa0 R15: 00007ffd3b97ffd8
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent-io-tree.c:572!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted 6.16.0-rc3-syzkaller-00042-g78f4e737a53e #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:572
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 9d d1 39 fe e9 31 fe ff ff e8 f3 4e d6 fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00
RSP: 0018:ffffc9000d3b6438 EFLAGS: 00010293
RAX: ffffffff83e9fe2d RBX: ffff888052fcc0c0 RCX: ffff8880330b2440
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: 0000000000000800 R08: 0000000000000820 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff1c4c257 R12: 0000000000000000
R13: ffffc9000d3b66b8 R14: 0000000000000000 R15: 00000000fffffff4
FS: 00007fc8a91de6c0(0000) GS:ffff88808d251000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe164088000 CR3: 00000000438f6000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
btrfs_clear_extent_bit_changeset+0x978/0xf00 fs/btrfs/extent-io-tree.c:748
__btrfs_qgroup_release_data+0x21c/0xa20 fs/btrfs/qgroup.c:4366
alloc_ordered_extent+0xed/0x680 fs/btrfs/ordered-data.c:170
btrfs_alloc_ordered_extent+0x200/0xab0 fs/btrfs/ordered-data.c:-1
cow_file_range+0x799/0xf40 fs/btrfs/inode.c:1403
btrfs_run_delalloc_range+0x41b/0xef0 fs/btrfs/inode.c:2348
writepage_delalloc+0xb2f/0x1370 fs/btrfs/extent_io.c:1386
extent_writepage fs/btrfs/extent_io.c:1717 [inline]
extent_write_cache_pages fs/btrfs/extent_io.c:2403 [inline]
btrfs_writepages+0x1362/0x21a0 fs/btrfs/extent_io.c:2536
do_writepages+0x32e/0x550 mm/page-writeback.c:2636
filemap_fdatawrite_wbc mm/filemap.c:386 [inline]
__filemap_fdatawrite_range mm/filemap.c:419 [inline]
filemap_write_and_wait_range+0x217/0x310 mm/filemap.c:691
__iomap_dio_rw+0x927/0x1e40 fs/iomap/direct-io.c:654
iomap_dio_rw+0x45/0xb0 fs/iomap/direct-io.c:823
btrfs_dio_read fs/btrfs/direct-io.c:765 [inline]
btrfs_direct_read+0x31c/0x620 fs/btrfs/direct-io.c:1047
btrfs_file_read_iter+0x81/0x1a0 fs/btrfs/file.c:3753
copy_splice_read+0x552/0x9b0 fs/splice.c:363
do_splice_read fs/splice.c:978 [inline]
splice_direct_to_actor+0x4d0/0xcc0 fs/splice.c:1083
do_splice_direct_actor fs/splice.c:1201 [inline]
do_splice_direct+0x181/0x270 fs/splice.c:1227
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/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc8a838e929
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:00007fc8a91de038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fc8a85b5fa0 RCX: 00007fc8a838e929
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004
RBP: 00007fc8a91de090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000800000009 R11: 0000000000000246 R12: 0000000000000002
R13: 0000000000000000 R14: 00007fc8a85b5fa0 R15: 00007ffd3b97ffd8
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:clear_state_bit+0x3be/0x3c0 fs/btrfs/extent-io-tree.c:572
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 9d d1 39 fe e9 31 fe ff ff e8 f3 4e d6 fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00
RSP: 0018:ffffc9000d3b6438 EFLAGS: 00010293
RAX: ffffffff83e9fe2d RBX: ffff888052fcc0c0 RCX: ffff8880330b2440
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: 0000000000000800 R08: 0000000000000820 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff1c4c257 R12: 0000000000000000
R13: ffffc9000d3b66b8 R14: 0000000000000000 R15: 00000000fffffff4
FS: 00007fc8a91de6c0(0000) GS:ffff88808d251000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe164088000 CR3: 00000000438f6000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400