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:00007f7aaf2bffe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f7aae625fa0 RCX: 00007f7aae39fb19
RDX: 0000200000005f80 RSI: 0000000050009417 RDI: 0000000000000006
RBP: 00007f7aae437b70 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f7aae626038 R14: 00007f7aae625fa0 R15: 00007ffd9ba41d08
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 5, space 0, times 96
CPU: 0 UID: 0 PID: 5349 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_copy_root+0x45f/0xcc0 fs/btrfs/ctree.c:269
create_pending_snapshot+0xa10/0x27c0 fs/btrfs/transaction.c:1838
create_pending_snapshots+0x17c/0x1c0 fs/btrfs/transaction.c:1988
btrfs_commit_transaction+0xf8c/0x3010 fs/btrfs/transaction.c:2485
create_snapshot fs/btrfs/ioctl.c:851 [inline]
btrfs_mksubvol+0xa4a/0x10c0 fs/btrfs/ioctl.c:928
btrfs_mksnapshot+0xa3/0xe0 fs/btrfs/ioctl.c:970
__btrfs_ioctl_snap_create+0x4db/0x7c0 fs/btrfs/ioctl.c:1232
btrfs_ioctl_snap_create_v2+0x1a8/0x330 fs/btrfs/ioctl.c:1301
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:0x7f7aae39fb19
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:00007f7aaf2bffe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f7aae625fa0 RCX: 00007f7aae39fb19
RDX: 0000200000005f80 RSI: 0000000050009417 RDI: 0000000000000006
RBP: 00007f7aae437b70 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f7aae626038 R14: 00007f7aae625fa0 R15: 00007ffd9ba41d08
BTRFS error (device loop0 state A): Transaction 9 aborted (-ENOMEM)
BTRFS: error (device loop0 state A) in create_pending_snapshot:1842: 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/5349
Modules linked in:
CPU: 0 UID: 0 PID: 5349 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 3a 09 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 8f 54 c8 00 e8 1a 09 a0 fd 90 <0f> 0b 90 e9 65 fb ff ff e8 0c 09 a0 fd 90 0f 0b 90 e9 82 fb ff ff
RSP: 0018:ffffc9000d6977f0 EFLAGS: 00010283
RAX: ffffffff842916a6 RBX: ffff888053f51000 RCX: 0000000000100000
RDX: ffffc9000ef1a000 RSI: 00000000000249e4 RDI: 00000000000249e5
RBP: dffffc0000000000 R08: ffff888053f51013 R09: 1ffff1100a7ea202
R10: dffffc0000000000 R11: ffffed100a7ea203 R12: ffff888044f5c758
R13: ffff888053ca4d40 R14: ffff888053f51340 R15: dffffc0000000000
FS: 00007f7aaf2c06c0(0000) GS:ffff88808a9fa000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd14d0b930 CR3: 0000000053b30000 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:851 [inline]
btrfs_mksubvol+0xa4a/0x10c0 fs/btrfs/ioctl.c:928
btrfs_mksnapshot+0xa3/0xe0 fs/btrfs/ioctl.c:970
__btrfs_ioctl_snap_create+0x4db/0x7c0 fs/btrfs/ioctl.c:1232
btrfs_ioctl_snap_create_v2+0x1a8/0x330 fs/btrfs/ioctl.c:1301
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:0x7f7aae39fb19
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:00007f7aaf2bffe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f7aae625fa0 RCX: 00007f7aae39fb19
RDX: 0000200000005f80 RSI: 0000000050009417 RDI: 0000000000000006
RBP: 00007f7aae437b70 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f7aae626038 R14: 00007f7aae625fa0 R15: 00007ffd9ba41d08
----------------
Code disassembly (best guess):
0: ff c3 inc %ebx
2: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
9: 00 00 00
c: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
11: 48 89 f8 mov %rdi,%rax
14: 48 89 f7 mov %rsi,%rdi
17: 48 89 d6 mov %rdx,%rsi
1a: 48 89 ca mov %rcx,%rdx
1d: 4d 89 c2 mov %r8,%r10
20: 4d 89 c8 mov %r9,%r8
23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9
28: 0f 05 syscall
* 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction
30: 73 01 jae 0x33
32: c3 ret
33: 48 c7 c1 e8 ff ff ff mov $0xffffffffffffffe8,%rcx
3a: f7 d8 neg %eax
3c: 64 89 01 mov %eax,%fs:(%rcx)
3f: 48 rex.W