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:3017! Internal error: Oops - BUG: 0 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 5909 Comm: syz-executor.0 Not tainted 5.15.133-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : submit_bh_wbc+0x578/0x610 fs/buffer.c:3017 lr : submit_bh_wbc+0x578/0x610 fs/buffer.c:3017 sp : ffff800020947510 x29: ffff800020947540 x28: ffff800008a66b34 x27: 0000000000000000 x26: ffff800008a66d54 x25: 1fffe0001b7e7b3f x24: dfff800000000000 x23: 0000000000000000 x22: ffff0000dbf3d9f8 x21: 0000000000000000 x20: 0000000000000000 x19: 0000000000000004 x18: 1fffe00036902f8e x17: 1fffe00036902f8e x16: ffff800011963fa4 x15: ffff80001499efe0 x14: 1ffff0000292006a x13: ffffffffffffffff x12: 0000000000040000 x11: 000000000001a009 x10: ffff80001d82b000 x9 : ffff800008a703c8 x8 : 000000000001a00a x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : 0000000000000000 x2 : ffff0000dbf3d9f8 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: submit_bh_wbc+0x578/0x610 fs/buffer.c:3017 ll_rw_block+0x1f0/0x35c __block_write_begin_int+0xb44/0x1608 fs/buffer.c:2042 __block_write_begin fs/buffer.c:2062 [inline] block_write_begin+0x60/0xdc fs/buffer.c:2122 nilfs_write_begin+0xb4/0x124 fs/nilfs2/inode.c:263 generic_perform_write+0x24c/0x520 mm/filemap.c:3776 __generic_file_write_iter+0x230/0x454 mm/filemap.c:3903 generic_file_write_iter+0xb4/0x1b8 mm/filemap.c:3935 call_write_iter include/linux/fs.h:2103 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x87c/0xb3c fs/read_write.c:594 ksys_write+0x15c/0x26c fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:656 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: 17ffff44 97e94632 d4210000 97e94630 (d4210000) ---[ end trace 7df82862b7715ec6 ]---