RBP: 00007fdb84837af8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fdb84a26038 R14: 00007fdb84a25fa0 R15: 00007ffea387a788 ERROR: Out of memory at tomoyo_realpath_from_path. FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 5, space 0, times 91 CPU: 0 UID: 0 PID: 5352 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:74 [inline] should_fail_ex+0x3eb/0x540 lib/fault-inject.c:175 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_lru_noprof+0xa2/0x5f0 mm/slub.c:5066 __xas_nomem+0x33d/0x420 lib/xarray.c:341 __xa_cmpxchg_raw lib/xarray.c:1789 [inline] __xa_cmpxchg+0x138/0x1f0 lib/xarray.c:1769 xa_cmpxchg include/linux/xarray.h:699 [inline] xa_reserve include/linux/xarray.h:1088 [inline] add_delayed_ref+0x2a7/0x1ec0 fs/btrfs/delayed-ref.c:1073 btrfs_alloc_tree_block+0xce7/0x1160 fs/btrfs/extent-tree.c:5423 btrfs_force_cow_block+0x562/0x1bf0 fs/btrfs/ctree.c:501 btrfs_cow_block+0x3f1/0xaf0 fs/btrfs/ctree.c:696 btrfs_search_slot+0xd6b/0x2d20 fs/btrfs/ctree.c:-1 btrfs_insert_empty_items+0xa3/0x1a0 fs/btrfs/ctree.c:4310 btrfs_insert_delayed_item fs/btrfs/delayed-inode.c:755 [inline] btrfs_insert_delayed_items fs/btrfs/delayed-inode.c:832 [inline] __btrfs_commit_inode_delayed_items+0xb0e/0x1ec0 fs/btrfs/delayed-inode.c:1115 __btrfs_run_delayed_items+0x1d0/0x420 fs/btrfs/delayed-inode.c:1158 btrfs_commit_transaction+0x854/0x3010 fs/btrfs/transaction.c:2397 create_snapshot fs/btrfs/ioctl.c:838 [inline] btrfs_mksubvol+0xa4a/0x10c0 fs/btrfs/ioctl.c:915 btrfs_mksnapshot+0xa3/0xe0 fs/btrfs/ioctl.c:957 __btrfs_ioctl_snap_create+0x4db/0x7c0 fs/btrfs/ioctl.c:1219 btrfs_ioctl_snap_create_v2+0x1a8/0x330 fs/btrfs/ioctl.c:1288 btrfs_ioctl+0x8eb/0xd50 fs/btrfs/ioctl.c:-1 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdb8479fb19 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:00007fdb80bf4fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fdb84a25fa0 RCX: 00007fdb8479fb19 RDX: 000020000000a280 RSI: 0000000050009417 RDI: 0000000000000006 RBP: 00007fdb84837af8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fdb84a26038 R14: 00007fdb84a25fa0 R15: 00007ffea387a788 BTRFS error (device loop0 state A): Transaction 9 aborted (-ENOMEM) BTRFS: error (device loop0 state A) in __btrfs_run_delayed_items:1161: errno=-12 Out of memory BTRFS info (device loop0 state EA): forced readonly 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 ------------[ 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/5352 Modules linked in: CPU: 0 UID: 0 PID: 5352 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 6a f7 a0 fd 4c 89 f7 be 03 00 00 00 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d e9 9f 3f c8 00 e8 4a f7 a0 fd 90 <0f> 0b 90 e9 65 fb ff ff e8 3c f7 a0 fd 90 0f 0b 90 e9 82 fb ff ff RSP: 0000:ffffc9000f8b77f0 EFLAGS: 00010283 RAX: ffffffff84282a56 RBX: ffff888013495000 RCX: 0000000000100000 RDX: ffffc9000ef39000 RSI: 00000000000212b5 RDI: 00000000000212b6 RBP: dffffc0000000000 R08: ffff888013495013 R09: 1ffff11002692a02 R10: dffffc0000000000 R11: ffffed1002692a03 R12: ffff88801422c758 R13: ffff8880542d0d40 R14: ffff888013495340 R15: dffffc0000000000 FS: 00007fdb80bf56c0(0000) GS:ffff88808aa01000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f054f66f680 CR3: 000000001f8e1000 CR4: 0000000000352ef0 Call Trace: cleanup_transaction+0x5bf/0x7b0 fs/btrfs/transaction.c:2137 btrfs_commit_transaction+0x253c/0x3010 fs/btrfs/transaction.c:2685 create_snapshot fs/btrfs/ioctl.c:838 [inline] btrfs_mksubvol+0xa4a/0x10c0 fs/btrfs/ioctl.c:915 btrfs_mksnapshot+0xa3/0xe0 fs/btrfs/ioctl.c:957 __btrfs_ioctl_snap_create+0x4db/0x7c0 fs/btrfs/ioctl.c:1219 btrfs_ioctl_snap_create_v2+0x1a8/0x330 fs/btrfs/ioctl.c:1288 btrfs_ioctl+0x8eb/0xd50 fs/btrfs/ioctl.c:-1 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdb8479fb19 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:00007fdb80bf4fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fdb84a25fa0 RCX: 00007fdb8479fb19 RDX: 000020000000a280 RSI: 0000000050009417 RDI: 0000000000000006 RBP: 00007fdb84837af8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fdb84a26038 R14: 00007fdb84a25fa0 R15: 00007ffea387a788