Kernel bug: kernel BUG in __block_write_begin_int (3)
Subsystem: nilfs
Status: fixed

Crash report:
NILFS (loop0): mounting fs with errors
------------[ cut here ]------------
kernel BUG at fs/buffer.c:2099!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5101 Comm: syz-executor142 Not tainted 6.12.0-rc3-syzkaller-00044-g2f87d0916ce0 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:__block_write_begin_int+0x19a7/0x1a70 fs/buffer.c:2099
Code: 31 ff e8 cc 58 71 ff 48 89 d8 48 25 ff 0f 00 00 74 27 e8 dc 53 71 ff e9 c6 e7 ff ff e8 d2 53 71 ff 90 0f 0b e8 ca 53 71 ff 90 <0f> 0b e8 c2 53 71 ff 90 0f 0b e8 6a b2 a2 09 48 8b 5c 24 08 48 89
RSP: 0000:ffffc90002e5f9e0 EFLAGS: 00010293
RAX: ffffffff82239386 RBX: 0000000000007372 RCX: ffff88801f022440
RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000000007372
RBP: ffffc90002e5fb50 R08: ffffffff82237bb3 R09: 1ffffd4000097f50
R10: dffffc0000000000 R11: fffff94000097f51 R12: 00fff6000000462d
R13: 0000000000000000 R14: 0000000000001000 R15: 0000000000007372
FS:  000055557cd0c380(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f84454ac000 CR3: 000000003c97a000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 nilfs_prepare_chunk fs/nilfs2/dir.c:86 [inline]
 nilfs_add_link+0x66e/0xb50 fs/nilfs2/dir.c:486
 nilfs_mkdir+0x1f9/0x340 fs/nilfs2/namei.c:233
 vfs_mkdir+0x2f9/0x4f0 fs/namei.c:4257
 do_mkdirat+0x264/0x3a0 fs/namei.c:4280
 __do_sys_mkdir fs/namei.c:4300 [inline]
 __se_sys_mkdir fs/namei.c:4298 [inline]
 __x64_sys_mkdir+0x6c/0x80 fs/namei.c:4298
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f844d920557
Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 53 00 00 00 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:00007fff22b77478 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f844d920557
RDX: 0000000000000004 RSI: 00000000000001ff RDI: 0000000020000780
RBP: 0000000020000780 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff22b77510 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__block_write_begin_int+0x19a7/0x1a70 fs/buffer.c:2099
Code: 31 ff e8 cc 58 71 ff 48 89 d8 48 25 ff 0f 00 00 74 27 e8 dc 53 71 ff e9 c6 e7 ff ff e8 d2 53 71 ff 90 0f 0b e8 ca 53 71 ff 90 <0f> 0b e8 c2 53 71 ff 90 0f 0b e8 6a b2 a2 09 48 8b 5c 24 08 48 89
RSP: 0000:ffffc90002e5f9e0 EFLAGS: 00010293
RAX: ffffffff82239386 RBX: 0000000000007372 RCX: ffff88801f022440
RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000000007372
RBP: ffffc90002e5fb50 R08: ffffffff82237bb3 R09: 1ffffd4000097f50
R10: dffffc0000000000 R11: fffff94000097f51 R12: 00fff6000000462d
R13: 0000000000000000 R14: 0000000000001000 R15: 0000000000007372
FS:  000055557cd0c380(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000003c97a000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400