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 (5314) BTRFS info (device loop0): first mount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d BTRFS info (device loop0): using sha256 (sha256-avx2) checksum algorithm BTRFS info (device loop0): using free-space-tree BTRFS info (device loop0): rebuilding free space tree FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 Not tainted 6.15.0-rc5-syzkaller-00032-g0d8d44db295c #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:4100 [inline] slab_alloc_node mm/slub.c:4176 [inline] __kmalloc_cache_noprof+0x70/0x3d0 mm/slub.c:4353 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:216 [inline] clear_state_bit+0x175/0x380 fs/btrfs/extent-io-tree.c:583 __clear_extent_bit+0x60e/0xec0 fs/btrfs/extent-io-tree.c:752 clear_record_extent_bits+0x4d/0x90 fs/btrfs/extent-io-tree.c:1829 __btrfs_qgroup_release_data+0x21c/0xa20 fs/btrfs/qgroup.c:4365 alloc_ordered_extent+0xef/0x570 fs/btrfs/ordered-data.c:168 btrfs_alloc_ordered_extent+0x200/0xab0 fs/btrfs/ordered-data.c:-1 cow_file_range+0x799/0xf30 fs/btrfs/inode.c:1413 btrfs_run_delalloc_range+0x3d4/0xea0 fs/btrfs/inode.c:2359 writepage_delalloc+0xb14/0x1320 fs/btrfs/extent_io.c:1426 extent_writepage fs/btrfs/extent_io.c:1757 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2422 [inline] btrfs_writepages+0x1334/0x2170 fs/btrfs/extent_io.c:2555 do_writepages+0x3ae/0x7b0 mm/page-writeback.c:2656 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] filemap_fdatawrite_range+0x19d/0x240 mm/filemap.c:437 btrfs_fdatawrite_range+0x54/0xf0 fs/btrfs/file.c:3706 btrfs_wait_ordered_range+0x59/0x260 fs/btrfs/ordered-data.c:911 btrfs_fallocate+0x988/0x1ba0 fs/btrfs/file.c:3013 vfs_fallocate+0x6a0/0x830 fs/open.c:338 ksys_fallocate fs/open.c:362 [inline] __do_sys_fallocate fs/open.c:367 [inline] __se_sys_fallocate fs/open.c:365 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:365 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd3bf78e969 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:00007fd3c0598038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fd3bf9b5fa0 RCX: 00007fd3bf78e969 RDX: 0000000000000d5a RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fd3c0598090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008040c62 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007fd3bf9b5fa0 R15: 00007fff284451e8 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:584! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 Not tainted 6.15.0-rc5-syzkaller-00032-g0d8d44db295c #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+0x37b/0x380 fs/btrfs/extent-io-tree.c:584 Code: fe e9 77 fd ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c ad fe ff ff 4c 89 e7 e8 70 d9 3d fe e9 a0 fe ff ff e8 06 e5 db fd 90 <0f> 0b 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 RSP: 0018:ffffc9000d6cead8 EFLAGS: 00010293 RAX: ffffffff83e3eb4a RBX: ffff88803f354b40 RCX: ffff88801f6e4880 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: 0000000000001000 R08: 0000000000000820 R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1c0b8bf R12: 00000000fffffff4 R13: 0000000000000fff R14: 0000000000000000 R15: dffffc0000000000 FS: 00007fd3c05986c0(0000) GS:ffff88808d6cb000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056427b9db338 CR3: 00000000414fe000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __clear_extent_bit+0x60e/0xec0 fs/btrfs/extent-io-tree.c:752 clear_record_extent_bits+0x4d/0x90 fs/btrfs/extent-io-tree.c:1829 __btrfs_qgroup_release_data+0x21c/0xa20 fs/btrfs/qgroup.c:4365 alloc_ordered_extent+0xef/0x570 fs/btrfs/ordered-data.c:168 btrfs_alloc_ordered_extent+0x200/0xab0 fs/btrfs/ordered-data.c:-1 cow_file_range+0x799/0xf30 fs/btrfs/inode.c:1413 btrfs_run_delalloc_range+0x3d4/0xea0 fs/btrfs/inode.c:2359 writepage_delalloc+0xb14/0x1320 fs/btrfs/extent_io.c:1426 extent_writepage fs/btrfs/extent_io.c:1757 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2422 [inline] btrfs_writepages+0x1334/0x2170 fs/btrfs/extent_io.c:2555 do_writepages+0x3ae/0x7b0 mm/page-writeback.c:2656 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] filemap_fdatawrite_range+0x19d/0x240 mm/filemap.c:437 btrfs_fdatawrite_range+0x54/0xf0 fs/btrfs/file.c:3706 btrfs_wait_ordered_range+0x59/0x260 fs/btrfs/ordered-data.c:911 btrfs_fallocate+0x988/0x1ba0 fs/btrfs/file.c:3013 vfs_fallocate+0x6a0/0x830 fs/open.c:338 ksys_fallocate fs/open.c:362 [inline] __do_sys_fallocate fs/open.c:367 [inline] __se_sys_fallocate fs/open.c:365 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:365 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd3bf78e969 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:00007fd3c0598038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fd3bf9b5fa0 RCX: 00007fd3bf78e969 RDX: 0000000000000d5a RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fd3c0598090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008040c62 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007fd3bf9b5fa0 R15: 00007fff284451e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:clear_state_bit+0x37b/0x380 fs/btrfs/extent-io-tree.c:584 Code: fe e9 77 fd ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c ad fe ff ff 4c 89 e7 e8 70 d9 3d fe e9 a0 fe ff ff e8 06 e5 db fd 90 <0f> 0b 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 RSP: 0018:ffffc9000d6cead8 EFLAGS: 00010293 RAX: ffffffff83e3eb4a RBX: ffff88803f354b40 RCX: ffff88801f6e4880 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: 0000000000001000 R08: 0000000000000820 R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1c0b8bf R12: 00000000fffffff4 R13: 0000000000000fff R14: 0000000000000000 R15: dffffc0000000000 FS: 00007fd3c05986c0(0000) GS:ffff88808d6cb000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056427b9db338 CR3: 00000000414fe000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400