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:2782! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5066 Comm: syz-executor109 Not tainted 6.6.0-rc3-syzkaller-00055-g9ed22ae6be81 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:submit_bh_wbc+0x515/0x530 fs/buffer.c:2782 Code: e8 f0 93 84 ff be 00 10 00 00 48 c7 c7 80 d6 45 8d 4c 89 ea e8 2c 3b 6e 02 e9 b1 fe ff ff e8 d2 93 84 ff 0f 0b e8 cb 93 84 ff <0f> 0b e8 c4 93 84 ff 0f 0b e8 bd 93 84 ff 0f 0b e8 b6 93 84 ff 0f RSP: 0018:ffffc90003ddf858 EFLAGS: 00010293 RAX: ffffffff820976a5 RBX: 0000000000000000 RCX: ffff888027e48000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff82097234 R09: 1ffff1100ff5f8cb R10: dffffc0000000000 R11: ffffed100ff5f8cc R12: ffff88807fafc658 R13: 1ffff1100ff5f8cb R14: 0000000000000000 R15: ffff88807fafc658 FS: 00007fbc3c7126c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbc44aec112 CR3: 000000007366f000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: submit_bh fs/buffer.c:2822 [inline] __bh_read fs/buffer.c:3087 [inline] bh_read_nowait include/linux/buffer_head.h:415 [inline] __block_write_begin_int+0x12c0/0x1a50 fs/buffer.c:2140 __block_write_begin fs/buffer.c:2160 [inline] block_write_begin+0x9b/0x1e0 fs/buffer.c:2219 nilfs_write_begin+0xa0/0x110 fs/nilfs2/inode.c:261 generic_perform_write+0x31b/0x630 mm/filemap.c:3969 __generic_file_write_iter+0x1b4/0x230 mm/filemap.c:4061 generic_file_write_iter+0xaf/0x310 mm/filemap.c:4090 call_write_iter include/linux/fs.h:1956 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x782/0xaf0 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:0x7fbc44a9fb69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 1b 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbc3c712168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbc44b20628 RCX: 00007fbc44a9fb69 RDX: 00000000000000a0 RSI: 0000000020000380 RDI: 0000000000000006 RBP: 00007fbc44b20620 R08: 00007ffd94a68bd7 R09: 0000000000000000 R10: 0000000000000098 R11: 0000000000000246 R12: 00007fbc44b2062c R13: 000000000000006e R14: 00007ffd94a68af0 R15: 00007ffd94a68bd8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:submit_bh_wbc+0x515/0x530 fs/buffer.c:2782 Code: e8 f0 93 84 ff be 00 10 00 00 48 c7 c7 80 d6 45 8d 4c 89 ea e8 2c 3b 6e 02 e9 b1 fe ff ff e8 d2 93 84 ff 0f 0b e8 cb 93 84 ff <0f> 0b e8 c4 93 84 ff 0f 0b e8 bd 93 84 ff 0f 0b e8 b6 93 84 ff 0f RSP: 0018:ffffc90003ddf858 EFLAGS: 00010293 RAX: ffffffff820976a5 RBX: 0000000000000000 RCX: ffff888027e48000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff82097234 R09: 1ffff1100ff5f8cb R10: dffffc0000000000 R11: ffffed100ff5f8cc R12: ffff88807fafc658 R13: 1ffff1100ff5f8cb R14: 0000000000000000 R15: ffff88807fafc658 FS: 00007fbc3c7126c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbc44aeb858 CR3: 000000007366f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400