NILFS (loop2): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop2): nilfs_get_block (ino=16): 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: 5390 Comm: syz-executor.2 Tainted: G B 6.8.0-rc4-syzkaller-g905b00721763 #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+0x430/0x49c fs/buffer.c:2765 lr : submit_bh_wbc+0x430/0x49c fs/buffer.c:2765 sp : ffff8000a7ae7630 x29: ffff8000a7ae7640 x28: 0000000000000009 x27: dfff800000000000 x26: 0000000000000000 x25: fffffdffc431a840 x24: 0000000000000000 x23: ffff00013bb1be88 x22: 0000000000000004 x21: 0000000000000000 x20: ffff00013bb1be88 x19: 1fffe000277637d1 x18: 1fffe00036800396 x17: ffff80008ec8d000 x16: ffff80008ad624a4 x15: 0000000000000001 x14: 1fffe000277637dd x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000040000 x10: 0000000000001ac4 x9 : ffff8000a12b3000 x8 : 0000000000001ac5 x7 : 1fffe00036800397 x6 : ffff8000802963d0 x5 : 0000000000000000 x4 : 0000000000000002 x3 : ffff800080bdc53c 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:2085 [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:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: 17ffffaf 97e535ea d4210000 97e535e8 (d4210000) ---[ end trace 0000000000000000 ]---