do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f07c35a9b59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f07c43c5fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f07c3835fa0 RCX: 00007f07c35a9b59 RDX: 0000000000000000 RSI: 000020000000f600 RDI: 0000000000000000 RBP: 00007f07c363a18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000021 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f07c3836038 R14: 00007f07c3835fa0 R15: 00007ffe992bd378 BTRFS error (device loop0 state A): Transaction 9 aborted (-ENOMEM) BTRFS: error (device loop0 state A) in __btrfs_update_delayed_inode:1027: errno=-12 Out of memory BTRFS info (device loop0 state EA): forced readonly BTRFS: error (device loop0 state EA) in __btrfs_run_delayed_items:1160: errno=-12 Out of memory BTRFS warning (device loop0 state EA): Skipping commit of aborted transaction. BTRFS: error (device loop0 state EA) in cleanup_transaction:2089: errno=-12 Out of memory FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 5, space 0, times 90 CPU: 0 UID: 0 PID: 5346 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 04/01/2014 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 fail_dump lib/fault-inject.c:80 [inline] should_fail_ex+0x3eb/0x540 lib/fault-inject.c:181 should_failslab+0xa8/0x100 mm/failslab.c:46 slab_pre_alloc_hook mm/slub.c:4675 [inline] slab_alloc_node mm/slub.c:5011 [inline] kmem_cache_alloc_noprof+0x9c/0x600 mm/slub.c:5047 alloc_extent_state+0x22/0x2e0 fs/btrfs/extent-io-tree.c:154 btrfs_clear_extent_bit_changeset+0x212/0x1780 fs/btrfs/extent-io-tree.c:685 btrfs_clear_extent_bit fs/btrfs/extent-io-tree.h:185 [inline] btrfs_destroy_marked_extents fs/btrfs/disk-io.c:4855 [inline] btrfs_cleanup_one_transaction+0x4ce/0xa70 fs/btrfs/disk-io.c:4980 cleanup_transaction+0x4bc/0x740 fs/btrfs/transaction.c:2127 btrfs_commit_transaction+0x2648/0x2f90 fs/btrfs/transaction.c:2680 sync_filesystem+0x1d2/0x240 fs/sync.c:66 btrfs_reconfigure+0x2fa/0x1f80 fs/btrfs/super.c:1502 reconfigure_super+0x232/0x8f0 fs/super.c:1097 do_remount fs/namespace.c:3538 [inline] path_mount+0xd51/0x1050 fs/namespace.c:4329 do_mount fs/namespace.c:4350 [inline] __do_sys_mount fs/namespace.c:4563 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4540 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f07c35a9b59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f07c43c5fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f07c3835fa0 RCX: 00007f07c35a9b59 RDX: 0000000000000000 RSI: 000020000000f600 RDI: 0000000000000000 RBP: 00007f07c363a18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000021 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f07c3836038 R14: 00007f07c3835fa0 R15: 00007ffe992bd378 ------------[ cut here ]------------ !xa_empty(&transaction->delayed_refs.head_refs) WARNING: fs/btrfs/transaction.c:174 at btrfs_put_transaction+0x537/0x570 fs/btrfs/transaction.c:174, CPU#0: syz.0.0/5346 Modules linked in: CPU: 0 UID: 0 PID: 5346 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 04/01/2014 RIP: 0010:btrfs_put_transaction+0x537/0x570 fs/btrfs/transaction.c:174 Code: fd fb ff ff e8 8a 11 9e fd 4c 89 f7 be 03 00 00 00 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d e9 6f 8c c8 00 e8 6a 11 9e fd 90 <0f> 0b 90 e9 65 fb ff ff e8 5c 11 9e fd 90 0f 0b 90 e9 82 fb ff ff RSP: 0018:ffffc9000e69f750 EFLAGS: 00010283 RAX: ffffffff842b4de6 RBX: ffff88803563d000 RCX: 0000000000100000 RDX: ffffc9000ef02000 RSI: 0000000000024242 RDI: 0000000000024243 RBP: dffffc0000000000 R08: ffff88803563d013 R09: 1ffff11006ac7a02 R10: dffffc0000000000 R11: ffffed1006ac7a03 R12: ffff888051eb8000 R13: ffff88805447a758 R14: ffff88803563d340 R15: ffff88803563d000 FS: 00007f07c43c66c0(0000) GS:ffff88808a9e5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe30a933b50 CR3: 0000000051e19000 CR4: 0000000000352ef0 Call Trace: cleanup_transaction+0x53c/0x740 fs/btrfs/transaction.c:2132 btrfs_commit_transaction+0x2648/0x2f90 fs/btrfs/transaction.c:2680 sync_filesystem+0x1d2/0x240 fs/sync.c:66 btrfs_reconfigure+0x2fa/0x1f80 fs/btrfs/super.c:1502 reconfigure_super+0x232/0x8f0 fs/super.c:1097 do_remount fs/namespace.c:3538 [inline] path_mount+0xd51/0x1050 fs/namespace.c:4329 do_mount fs/namespace.c:4350 [inline] __do_sys_mount fs/namespace.c:4563 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4540 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f07c35a9b59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f07c43c5fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f07c3835fa0 RCX: 00007f07c35a9b59 RDX: 0000000000000000 RSI: 000020000000f600 RDI: 0000000000000000 RBP: 00007f07c363a18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000021 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f07c3836038 R14: 00007f07c3835fa0 R15: 00007ffe992bd378