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 (5323) 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 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Not tainted 6.12.0-rc5-syzkaller-00299-g11066801dd4b #0 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 lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 fail_dump lib/fault-inject.c:53 [inline] should_fail_ex+0x3b0/0x4e0 lib/fault-inject.c:154 should_failslab+0xac/0x100 mm/failslab.c:46 slab_pre_alloc_hook mm/slub.c:4038 [inline] slab_alloc_node mm/slub.c:4114 [inline] __kmalloc_cache_noprof+0x6c/0x2c0 mm/slub.c:4290 kmalloc_noprof include/linux/slab.h:878 [inline] ulist_add_merge+0x18c/0x4b0 fs/btrfs/ulist.c:223 add_extent_changeset fs/btrfs/extent-io-tree.c:216 [inline] clear_state_bit+0x170/0x370 fs/btrfs/extent-io-tree.c:583 __clear_extent_bit+0x51c/0xc20 fs/btrfs/extent-io-tree.c:752 clear_record_extent_bits+0x4d/0x90 fs/btrfs/extent-io-tree.c:1829 __btrfs_qgroup_release_data+0x5a9/0xab0 fs/btrfs/qgroup.c:4370 insert_prealloc_file_extent fs/btrfs/inode.c:8709 [inline] __btrfs_prealloc_file_range+0x599/0x1410 fs/btrfs/inode.c:8806 btrfs_prealloc_file_range+0x40/0x60 fs/btrfs/inode.c:8884 btrfs_fallocate+0x1b87/0x2000 fs/btrfs/file.c:3203 vfs_fallocate+0x569/0x6e0 fs/open.c:333 ksys_fallocate fs/open.c:356 [inline] __do_sys_fallocate fs/open.c:364 [inline] __se_sys_fallocate fs/open.c:362 [inline] __x64_sys_fallocate+0xbd/0x110 fs/open.c:362 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f05b877e719 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:00007f05b949a038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f05b8935f80 RCX: 00007f05b877e719 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f05b949a090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007f05b8935f80 R15: 00007ffe7ab9f3a8 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:584! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Not tainted 6.12.0-rc5-syzkaller-00299-g11066801dd4b #0 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+0x364/0x370 fs/btrfs/extent-io-tree.c:584 Code: 20 fe e9 89 fd ff ff 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c b0 fe ff ff 48 89 ef e8 27 75 20 fe e9 a3 fe ff ff e8 8d b6 b6 fd 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90001797598 EFLAGS: 00010293 RAX: ffffffff83de2393 RBX: 00000000fffffff4 RCX: ffff8880001dc880 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff83de21ab R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1d4a423 R12: ffffc90001797798 R13: ffff88804f513c00 R14: 0000000000001000 R15: 0000000000000000 FS: 00007f05b949a6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000004fc4a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __clear_extent_bit+0x51c/0xc20 fs/btrfs/extent-io-tree.c:752 clear_record_extent_bits+0x4d/0x90 fs/btrfs/extent-io-tree.c:1829 __btrfs_qgroup_release_data+0x5a9/0xab0 fs/btrfs/qgroup.c:4370 insert_prealloc_file_extent fs/btrfs/inode.c:8709 [inline] __btrfs_prealloc_file_range+0x599/0x1410 fs/btrfs/inode.c:8806 btrfs_prealloc_file_range+0x40/0x60 fs/btrfs/inode.c:8884 btrfs_fallocate+0x1b87/0x2000 fs/btrfs/file.c:3203 vfs_fallocate+0x569/0x6e0 fs/open.c:333 ksys_fallocate fs/open.c:356 [inline] __do_sys_fallocate fs/open.c:364 [inline] __se_sys_fallocate fs/open.c:362 [inline] __x64_sys_fallocate+0xbd/0x110 fs/open.c:362 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f05b877e719 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:00007f05b949a038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f05b8935f80 RCX: 00007f05b877e719 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f05b949a090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007f05b8935f80 R15: 00007ffe7ab9f3a8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:clear_state_bit+0x364/0x370 fs/btrfs/extent-io-tree.c:584 Code: 20 fe e9 89 fd ff ff 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c b0 fe ff ff 48 89 ef e8 27 75 20 fe e9 a3 fe ff ff e8 8d b6 b6 fd 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90001797598 EFLAGS: 00010293 RAX: ffffffff83de2393 RBX: 00000000fffffff4 RCX: ffff8880001dc880 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff83de21ab R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1d4a423 R12: ffffc90001797798 R13: ffff88804f513c00 R14: 0000000000001000 R15: 0000000000000000 FS: 00007f05b949a6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000004fc4a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400