NILFS (loop0): nilfs_get_block (ino=19): a race condition while inserting a data block at offset=0 ------------[ cut here ]------------ kernel BUG at fs/buffer.c:2741! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5053 Comm: syz-executor419 Not tainted 6.4.0-rc1-syzkaller-00011-g1dc3731daf1f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:submit_bh_wbc+0x4c0/0x4e0 fs/buffer.c:2741 Code: 02 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c be fe ff ff 48 89 ef e8 71 a0 df ff e9 b1 fe ff ff e8 a7 d2 87 ff 0f 0b e8 a0 d2 87 ff <0f> 0b e8 99 d2 87 ff 0f 0b e8 92 d2 87 ff 0f 0b e8 8b d2 87 ff 0f RSP: 0018:ffffc90003c1f860 EFLAGS: 00010293 RAX: ffffffff820394a0 RBX: 0000000000000000 RCX: ffff888022e40000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90003c1fa48 R08: ffffffff8203907d R09: ffffed100ea760e9 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100ea760e8 R13: ffff8880753b0740 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f025bafa700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f02537d9718 CR3: 000000001f3e4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: submit_bh fs/buffer.c:2782 [inline] __bh_read fs/buffer.c:3047 [inline] bh_read_nowait include/linux/buffer_head.h:436 [inline] __block_write_begin_int+0x12c9/0x1a50 fs/buffer.c:2094 __block_write_begin fs/buffer.c:2114 [inline] block_write_begin+0x9c/0x1f0 fs/buffer.c:2175 nilfs_write_begin+0xa0/0x110 fs/nilfs2/inode.c:261 generic_perform_write+0x300/0x5e0 mm/filemap.c:3923 __generic_file_write_iter+0x29b/0x400 mm/filemap.c:4019 generic_file_write_iter+0xaf/0x310 mm/filemap.c:4083 call_write_iter include/linux/fs.h:1868 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x790/0xb20 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f025c350929 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f025bafa208 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f025c3d67a8 RCX: 00007f025c350929 RDX: 00000000000000a0 RSI: 0000000020000380 RDI: 0000000000000006 RBP: 00007f025c3d67a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000098 R11: 0000000000000246 R12: 00007f025c3d67ac R13: 00007ffee1f5f8ff R14: 00007f025bafa300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:submit_bh_wbc+0x4c0/0x4e0 fs/buffer.c:2741 Code: 02 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c be fe ff ff 48 89 ef e8 71 a0 df ff e9 b1 fe ff ff e8 a7 d2 87 ff 0f 0b e8 a0 d2 87 ff <0f> 0b e8 99 d2 87 ff 0f 0b e8 92 d2 87 ff 0f 0b e8 8b d2 87 ff 0f RSP: 0018:ffffc90003c1f860 EFLAGS: 00010293 RAX: ffffffff820394a0 RBX: 0000000000000000 RCX: ffff888022e40000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90003c1fa48 R08: ffffffff8203907d R09: ffffed100ea760e9 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100ea760e8 R13: ffff8880753b0740 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f025bafa700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f025c392060 CR3: 000000001f3e4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400