NILFS (loop1): nilfs_get_block (ino=18): 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: 14008 Comm: syz-executor.1 Not tainted 6.1.22-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/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 : ffff800021096f70 x29: ffff800021096f80 x28: fffffc0003d52e40 x27: dfff800000000000 x26: fffffc0003d52e48 x25: 0000000000000000 x24: 1fffe00022a84457 x23: 0000000000000000 x22: 0000000000000001 x21: 0000000000000000 x20: ffff0001154222b8 x19: 0000000000000004 x18: 1fffe000368bab76 x17: ffff80001557d000 x16: ffff800008300ec0 x15: ffff0001b45d5bbc x14: 1ffff00002ab00b0 x13: dfff800000000000 x12: 0000000000040000 x11: 0000000000008402 x10: ffff8000278d9000 x9 : ffff800008b28794 x8 : 0000000000008403 x7 : ffff80000827b520 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000002 x3 : ffff800008b294b4 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+0x250/0x388 mm/filemap.c:3850 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:3914 do_iter_write+0x534/0x964 fs/read_write.c:861 vfs_iter_write+0x88/0xac fs/read_write.c:902 iter_file_splice_write+0x618/0xc48 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0xe4/0x1c0 fs/splice.c:931 splice_direct_to_actor+0x3c4/0x944 fs/splice.c:886 do_splice_direct+0x1f4/0x334 fs/splice.c:974 do_sendfile+0x4bc/0xc70 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __arm64_sys_sendfile64+0x160/0x3b4 fs/read_write.c:1309 __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:581 Code: 17ffffad 97e73a52 d4210000 97e73a50 (d4210000) ---[ end trace 0000000000000000 ]---