loop0: detected capacity change from 0 to 32768 BTRFS: device fsid ed167579-eb65-4e76-9a50-61ac97e9b59d devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5326) BTRFS info (device loop0): first mount of filesystem ed167579-eb65-4e76-9a50-61ac97e9b59d BTRFS info (device loop0): using sha256 (sha256-avx2) checksum algorithm BTRFS info (device loop0): disk space caching is enabled BTRFS warning (device loop0): space cache v1 is being deprecated and will be removed in a future release, please use -o space_cache=v2 BTRFS info (device loop0): rebuilding free space tree BTRFS info (device loop0): disabling free space tree BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1) BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2) BTRFS info (device loop0): balance: start -d -m FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 UID: 0 PID: 5326 Comm: syz.0.0 Not tainted 6.15.0-rc1-syzkaller-00025-gbec7dcbc242c #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 lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 fail_dump lib/fault-inject.c:73 [inline] should_fail_ex+0x424/0x570 lib/fault-inject.c:174 should_failslab+0xac/0x100 mm/failslab.c:46 slab_pre_alloc_hook mm/slub.c:4104 [inline] slab_alloc_node mm/slub.c:4180 [inline] kmem_cache_alloc_noprof+0x78/0x390 mm/slub.c:4207 add_delayed_ref+0x1c1/0x1e90 fs/btrfs/delayed-ref.c:1011 btrfs_free_tree_block+0x361/0xd10 fs/btrfs/extent-tree.c:3434 btrfs_force_cow_block+0xf6c/0x2010 fs/btrfs/ctree.c:555 btrfs_cow_block+0x377/0x840 fs/btrfs/ctree.c:688 btrfs_search_slot+0xc12/0x31c0 fs/btrfs/ctree.c:2088 btrfs_insert_empty_items+0x9c/0x1a0 fs/btrfs/ctree.c:4287 btrfs_insert_empty_item fs/btrfs/ctree.h:673 [inline] btrfs_insert_empty_inode+0x1de/0x2f0 fs/btrfs/inode-item.c:391 __insert_orphan_inode fs/btrfs/relocation.c:3714 [inline] create_reloc_inode+0x408/0xa50 fs/btrfs/relocation.c:3785 btrfs_relocate_block_group+0x554/0xd80 fs/btrfs/relocation.c:3991 btrfs_relocate_chunk+0x12c/0x3b0 fs/btrfs/volumes.c:3511 __btrfs_balance+0x1a93/0x25e0 fs/btrfs/volumes.c:4292 btrfs_balance+0xbde/0x10c0 fs/btrfs/volumes.c:4669 btrfs_ioctl_balance+0x3f5/0x660 fs/btrfs/ioctl.c:3586 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc842d8d169 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:00007fc843cc5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc842fa5fa0 RCX: 00007fc842d8d169 RDX: 0000200000000180 RSI: 00000000c4009420 RDI: 0000000000000004 RBP: 00007fc843cc5090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007fc842fa5fa0 R15: 00007fff4fc8ae18 BTRFS error (device loop0 state A): Transaction aborted (error -12) BTRFS: error (device loop0 state A) in btrfs_force_cow_block:560: errno=-12 Out of memory BTRFS info (device loop0 state EA): forced readonly BTRFS info (device loop0 state EA): relocating block group 6881280 flags data|metadata Oops: general protection fault, probably for non-canonical address 0xdffffc000000008c: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000460-0x0000000000000467] CPU: 0 UID: 0 PID: 5326 Comm: syz.0.0 Not tainted 6.15.0-rc1-syzkaller-00025-gbec7dcbc242c #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:iput+0x3b/0xa50 fs/inode.c:1914 Code: 38 49 89 fe e8 46 01 7c ff 4d 85 f6 0f 84 8c 03 00 00 49 bd 00 00 00 00 00 fc ff df 4d 8d be d0 00 00 00 4c 89 fb 48 c1 eb 03 <42> 0f b6 04 2b 84 c0 0f 85 c4 08 00 00 48 89 5c 24 10 41 8b 1f bd RSP: 0018:ffffc9000d2ef9c0 EFLAGS: 00010203 RAX: ffffffff8247542a RBX: 000000000000008c RCX: ffff8880002da440 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000394 RBP: ffff8880413f9010 R08: ffff8880529e980b R09: 1ffff1100a53d301 R10: dffffc0000000000 R11: ffffed100a53d302 R12: ffff8880529eb000 R13: dffffc0000000000 R14: 0000000000000394 R15: 0000000000000464 FS: 00007fc843cc56c0(0000) GS:ffff88808c596000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001000 CR3: 0000000040344000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_relocate_block_group+0xb86/0xd80 fs/btrfs/relocation.c:4052 btrfs_relocate_chunk+0x12c/0x3b0 fs/btrfs/volumes.c:3511 __btrfs_balance+0x1a93/0x25e0 fs/btrfs/volumes.c:4292 btrfs_balance+0xbde/0x10c0 fs/btrfs/volumes.c:4669 btrfs_ioctl_balance+0x3f5/0x660 fs/btrfs/ioctl.c:3586 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc842d8d169 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:00007fc843cc5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc842fa5fa0 RCX: 00007fc842d8d169 RDX: 0000200000000180 RSI: 00000000c4009420 RDI: 0000000000000004 RBP: 00007fc843cc5090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007fc842fa5fa0 R15: 00007fff4fc8ae18 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:iput+0x3b/0xa50 fs/inode.c:1914 Code: 38 49 89 fe e8 46 01 7c ff 4d 85 f6 0f 84 8c 03 00 00 49 bd 00 00 00 00 00 fc ff df 4d 8d be d0 00 00 00 4c 89 fb 48 c1 eb 03 <42> 0f b6 04 2b 84 c0 0f 85 c4 08 00 00 48 89 5c 24 10 41 8b 1f bd RSP: 0018:ffffc9000d2ef9c0 EFLAGS: 00010203 RAX: ffffffff8247542a RBX: 000000000000008c RCX: ffff8880002da440 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000394 RBP: ffff8880413f9010 R08: ffff8880529e980b R09: 1ffff1100a53d301 R10: dffffc0000000000 R11: ffffed100a53d302 R12: ffff8880529eb000 R13: dffffc0000000000 R14: 0000000000000394 R15: 0000000000000464 FS: 00007fc843cc56c0(0000) GS:ffff88808c596000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc843ca3fd8 CR3: 0000000040344000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 49 89 fe mov %rdi,%r14 3: e8 46 01 7c ff call 0xff7c014e 8: 4d 85 f6 test %r14,%r14 b: 0f 84 8c 03 00 00 je 0x39d 11: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13 18: fc ff df 1b: 4d 8d be d0 00 00 00 lea 0xd0(%r14),%r15 22: 4c 89 fb mov %r15,%rbx 25: 48 c1 eb 03 shr $0x3,%rbx * 29: 42 0f b6 04 2b movzbl (%rbx,%r13,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 c4 08 00 00 jne 0x8fa 36: 48 89 5c 24 10 mov %rbx,0x10(%rsp) 3b: 41 8b 1f mov (%r15),%ebx 3e: bd .byte 0xbd