NILFS (loop2): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop2): nilfs_get_block (ino=15): a race condition while inserting a data block at offset=131117 ------------[ cut here ]------------ kernel BUG at fs/buffer.c:2765! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 10210 Comm: syz-executor.2 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 : ffff8000980c7670 x29: ffff8000980c7680 x28: 00000000000005ec x27: dfff800000000000 x26: 000000000002002d x25: fffffdffc3a46780 x24: 0000000000000000 x23: ffff0000e1d9d2b8 x22: 0000000000000004 x21: 0000000000000000 x20: ffff0000de57ee80 x19: 1fffe0001bcafdd0 x18: ffff8000980c6a80 x17: 20656c696877206e x16: ffff80008031f6c4 x15: 0000000000000001 x14: 1fffe0001bcafddc x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001bcafddd x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000d427da00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000980c6d58 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+0x184/0x204 mm/filemap.c:4022 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_pwrite64 fs/read_write.c:705 [inline] __do_sys_pwrite64 fs/read_write.c:715 [inline] __se_sys_pwrite64 fs/read_write.c:712 [inline] __arm64_sys_pwrite64+0x188/0x220 fs/read_write.c:712 __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 ]---