NILFS (loop0): nilfs_get_block (ino=15): a race condition while inserting a data block at offset=0 ------------[ cut here ]------------ kernel BUG at fs/buffer.c:2666! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 4220 Comm: syz-executor314 Not tainted 6.1.63-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : submit_bh_wbc+0x3f4/0x468 fs/buffer.c:2666 lr : submit_bh_wbc+0x3f4/0x468 fs/buffer.c:2666 sp : ffff80001dc87610 x29: ffff80001dc87620 x28: fffffc0003812540 x27: dfff800000000000 x26: fffffc0003812548 x25: 0000000000000000 x24: 1fffe0001be3ece8 x23: 0000000000000000 x22: 0000000000000002 x21: 0000000000000000 x20: ffff0000df1f6740 x19: 0000000000000004 x18: 1fffe000368b0376 x17: ffff80001581d000 x16: ffff8000083049b4 x15: ffff0001b4581bbc x14: 1ffff00002b040b0 x13: dfff800000000000 x12: 0000000000000001 x11: ff80800008b39af0 x10: 0000000000000000 x9 : ffff800008b39af0 x8 : ffff0000c60d3780 x7 : ffff80000827dc80 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000002 x3 : ffff800008b3a810 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: submit_bh_wbc+0x3f4/0x468 fs/buffer.c:2666 submit_bh fs/buffer.c:2707 [inline] __bh_read fs/buffer.c:2972 [inline] bh_read_nowait include/linux/buffer_head.h:427 [inline] __block_write_begin_int+0x83c/0x13b4 fs/buffer.c:2021 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2102 nilfs_write_begin+0xa8/0x114 fs/nilfs2/inode.c:261 generic_perform_write+0x278/0x55c mm/filemap.c:3808 __generic_file_write_iter+0x168/0x388 mm/filemap.c:3936 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:3968 call_write_iter include/linux/fs.h:2205 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x610/0x914 fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: 17ffffad 97e71286 d4210000 97e71284 (d4210000) ---[ end trace 0000000000000000 ]---