NILFS (loop3): 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: 15519 Comm: syz-executor.3 Not tainted 6.1.58-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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 : ffff80002c047610 x29: ffff80002c047620 x28: fffffc0004b23d00 x27: dfff800000000000 x26: fffffc0004b23d08 x25: 0000000000000000 x24: 1fffe0001bee4fb3 x23: 0000000000000000 x22: 0000000000000001 x21: 0000000000000000 x20: ffff0000df727d98 x19: 0000000000000004 x18: 1fffe000368adf76 x17: ffff8000158ad000 x16: ffff800008304758 x15: ffff0001b456fbbc x14: 1ffff00002b160b0 x13: dfff800000000000 x12: 0000000000040000 x11: 000000000001d6a0 x10: ffff80002841d000 x9 : ffff800008b37534 x8 : 000000000001d6a1 x7 : ffff80000827db20 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000002 x3 : ffff800008b38254 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:3754 __generic_file_write_iter+0x168/0x388 mm/filemap.c:3882 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:3914 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 97e714c3 d4210000 97e714c1 (d4210000) ---[ end trace 0000000000000000 ]---