NILFS (loop4): nilfs_get_block (ino=15): a race condition while inserting a data block at offset=0 ------------[ cut here ]------------ kernel BUG at fs/buffer.c:2765! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 6869 Comm: syz-executor.4 Not tainted 6.8.0-rc7-syzkaller-g707081b61156 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : submit_bh_wbc+0x430/0x49c fs/buffer.c:2765 lr : submit_bh_wbc+0x430/0x49c fs/buffer.c:2765 sp : ffff800098877630 x29: ffff800098877640 x28: 000000000000000b x27: dfff800000000000 x26: 0000000000000000 x25: fffffdffc381fe40 x24: 0000000000000000 x23: ffff0000e1d26d98 x22: 0000000000000004 x21: 0000000000000000 x20: ffff0000e1d26d98 x19: 1fffe0001c3a4db3 x18: 1fffe000367fff96 x17: ffff80008ec9d000 x16: ffff80008031f6c4 x15: 0000000000000001 x14: 1fffe0001c3a4dbf x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000040000 x10: 00000000000072e4 x9 : ffff80009e81e000 x8 : 00000000000072e5 x7 : ffff800080297c0c x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000002 x3 : ffff800080bdf0c4 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: submit_bh_wbc+0x430/0x49c fs/buffer.c:2765 submit_bh fs/buffer.c:2805 [inline] __bh_read fs/buffer.c:3070 [inline] bh_read_nowait include/linux/buffer_head.h:417 [inline] __block_write_begin_int+0xa40/0x16a0 fs/buffer.c:2132 __block_write_begin fs/buffer.c:2152 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2211 nilfs_write_begin+0xa8/0x114 fs/nilfs2/inode.c:262 generic_perform_write+0x28c/0x588 mm/filemap.c:3930 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4025 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4051 call_write_iter include/linux/fs.h:2087 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0x968/0xc3c fs/read_write.c:590 ksys_write+0x15c/0x26c fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:652 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: 17ffffaf 97e52d4c d4210000 97e52d4a (d4210000) ---[ end trace 0000000000000000 ]---