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: 4228 Comm: syz-executor399 Not tainted 6.1.79-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 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: fffffc000620fb40 x27: dfff800000000000 x26: fffffc000620fb48 x25: 0000000000000000 x24: 1fffe0001c4934ae x23: 0000000000000000 x22: 0000000000000001 x21: 0000000000000000 x20: ffff0000e249a570 x19: 0000000000000004 x18: 1fffe0003686f976 x17: ffff80001583d000 x16: ffff800008302fb0 x15: ffff0001b437cbbc x14: 1ffff00002b080b0 x13: dfff800000000000 x12: 0000000000000001 x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff800008b3ab24 x8 : ffff0000c2f30000 x7 : ffff80000827c520 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000002 x3 : ffff800008b3b844 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:3817 __generic_file_write_iter+0x168/0x388 mm/filemap.c:3945 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:3977 call_write_iter include/linux/fs.h:2249 [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 97e6fc99 d4210000 97e6fc97 (d4210000) ---[ end trace 0000000000000000 ]---