loop2: detected capacity change from 0 to 4096
------------[ cut here ]------------
kernel BUG at fs/buffer.c:1967!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 9415 Comm: syz.2.1486 Not tainted 6.1.99-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:__block_write_begin_int+0x195a/0x1a30 fs/buffer.c:1967
Code: 00 00 31 ff e8 47 c9 88 ff 48 89 d8 48 25 ff 0f 00 00 74 24 e8 57 c5 88 ff e9 00 e8 ff ff e8 4d c5 88 ff 0f 0b e8 46 c5 88 ff <0f> 0b e8 3f c5 88 ff 0f 0b e8 68 68 89 08 48 8b 5c 24 18 48 89 df
RSP: 0018:ffffc900034df780 EFLAGS: 00010287
RAX: ffffffff8201d10a RBX: 00fff4000000245f RCX: 0000000000040000
RDX: ffffc90005c32000 RSI: 0000000000008bed RDI: 0000000000008bee
RBP: ffffc900034df908 R08: ffffffff8201b963 R09: fffff940002c4471
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 000000000000d0ca R14: dffffc0000000000 R15: 000000000000d0ca
FS: 00007f30c90e26c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb8b16a63b0 CR3: 000000007e870000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
nilfs_prepare_chunk fs/nilfs2/dir.c:92 [inline]
nilfs_set_link+0xbd/0x2b0 fs/nilfs2/dir.c:431
nilfs_rename+0x68f/0x770 fs/nilfs2/namei.c:414
vfs_rename+0xd32/0x10f0 fs/namei.c:4876
do_renameat2+0xde0/0x1440 fs/namei.c:5029
__do_sys_renameat2 fs/namei.c:5062 [inline]
__se_sys_renameat2 fs/namei.c:5059 [inline]
__x64_sys_renameat2+0xce/0xe0 fs/namei.c:5059
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f30c8375ad9
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:00007f30c90e2048 EFLAGS: 00000246 ORIG_RAX: 000000000000013c
RAX: ffffffffffffffda RBX: 00007f30c8503f60 RCX: 00007f30c8375ad9
RDX: 0000000000000005 RSI: 00000000200001c0 RDI: 0000000000000005
RBP: 00007f30c83e4e5d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020000200 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f30c8503f60 R15: 00007fff18363528
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__block_write_begin_int+0x195a/0x1a30 fs/buffer.c:1967
Code: 00 00 31 ff e8 47 c9 88 ff 48 89 d8 48 25 ff 0f 00 00 74 24 e8 57 c5 88 ff e9 00 e8 ff ff e8 4d c5 88 ff 0f 0b e8 46 c5 88 ff <0f> 0b e8 3f c5 88 ff 0f 0b e8 68 68 89 08 48 8b 5c 24 18 48 89 df
RSP: 0018:ffffc900034df780 EFLAGS: 00010287
RAX: ffffffff8201d10a RBX: 00fff4000000245f RCX: 0000000000040000
RDX: ffffc90005c32000 RSI: 0000000000008bed RDI: 0000000000008bee
RBP: ffffc900034df908 R08: ffffffff8201b963 R09: fffff940002c4471
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 000000000000d0ca R14: dffffc0000000000 R15: 000000000000d0ca
FS: 00007f30c90e26c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055aecf58a000 CR3: 000000007e870000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400