RBP: 00007fb5f1ad51d0 R08: 0000000000000002 R09: 0000000000000000 R10: 0000000020000280 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffd0df90c0f R14: 00007fb5f1ad5300 R15: 0000000000022000 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 15583 at fs/btrfs/inode.c:9522 btrfs_rename_exchange fs/btrfs/inode.c:9522 [inline] WARNING: CPU: 0 PID: 15583 at fs/btrfs/inode.c:9522 btrfs_rename2+0x3676/0x4b00 fs/btrfs/inode.c:9963 Modules linked in: CPU: 0 PID: 15583 Comm: syz-executor.4 Not tainted 5.15.107-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:btrfs_rename_exchange fs/btrfs/inode.c:9522 [inline] RIP: 0010:btrfs_rename2+0x3676/0x4b00 fs/btrfs/inode.c:9963 Code: a2 1e fe 0f 1f 44 00 00 e8 87 a2 1e fe 8b 5c 24 10 eb 19 e8 7c a2 1e fe 48 c7 c7 00 94 c9 8a 8b 5c 24 10 89 de e8 7a 84 ea fd <0f> 0b 48 8b 7c 24 18 48 c7 c6 c0 bb c9 8a ba 32 25 00 00 89 d9 e8 RSP: 0018:ffffc900058f78a0 EFLAGS: 00010246 RAX: f2dfa1469c5aa700 RBX: 00000000fffffff4 RCX: 0000000000040000 RDX: ffffc90006819000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc900058f7ad0 R08: ffffffff816612ec R09: ffffed1017344f24 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100ec7e6fd R13: ffff888023d38001 R14: ffff8880763f37e8 R15: ffff888073277a80 FS: 00007fb5f1ad5700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c00e352000 CR3: 000000001ebe4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vfs_rename+0xd8f/0x1190 fs/namei.c:4736 do_renameat2+0xb97/0x13b0 fs/namei.c:4887 __do_sys_renameat2 fs/namei.c:4920 [inline] __se_sys_renameat2 fs/namei.c:4917 [inline] __x64_sys_renameat2+0xce/0xe0 fs/namei.c:4917 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fb5f3563169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb5f1ad5168 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007fb5f3682f80 RCX: 00007fb5f3563169 RDX: 0000000000000004 RSI: 0000000020000140 RDI: 0000000000000005 RBP: 00007fb5f1ad51d0 R08: 0000000000000002 R09: 0000000000000000 R10: 0000000020000280 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffd0df90c0f R14: 00007fb5f1ad5300 R15: 0000000000022000