exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168 exit_to_user_mode_prepare+0xb1/0x150 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x69/0x2a0 kernel/entry/common.c:296 do_syscall_64+0x52/0x110 arch/x86/entry/common.c:88 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:1577! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5736 Comm: segctord Not tainted 6.7.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:folio_end_writeback+0x424/0x6f0 mm/filemap.c:1577 Code: 25 ff 0f 00 00 0f 84 f0 00 00 00 e8 c6 28 cd ff e9 52 fc ff ff e8 bc 28 cd ff 4c 89 ff 48 c7 c6 80 1e 73 8b e8 1d 05 10 00 90 <0f> 0b e8 a5 28 cd ff 4c 89 ff 48 c7 c6 60 29 73 8b e8 06 05 10 00 RSP: 0018:ffffc9000b85f6a0 EFLAGS: 00010246 RAX: 857b0309cd7b4e00 RBX: dffffc0000000000 RCX: ffffc9000b85f503 RDX: 0000000000000001 RSI: ffffffff8b6ac0c0 RDI: ffffffff8bbdf380 RBP: 0000000000000000 R08: ffffffff8f00c0af R09: 1ffffffff1e01815 R10: dffffc0000000000 R11: fffffbfff1e01816 R12: ffff888059faf920 R13: 1ffffd4000145941 R14: ffffea0000a2ca08 R15: ffffea0000a2ca00 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe7e921b88 CR3: 0000000027788000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nilfs_segctor_complete_write fs/nilfs2/segment.c:1875 [inline] nilfs_segctor_wait fs/nilfs2/segment.c:1962 [inline] nilfs_segctor_do_construct+0x511a/0x6e40 fs/nilfs2/segment.c:2128 nilfs_segctor_construct+0x145/0x8c0 fs/nilfs2/segment.c:2415 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2523 [inline] nilfs_segctor_thread+0x53a/0x1140 fs/nilfs2/segment.c:2606 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_end_writeback+0x424/0x6f0 mm/filemap.c:1577 Code: 25 ff 0f 00 00 0f 84 f0 00 00 00 e8 c6 28 cd ff e9 52 fc ff ff e8 bc 28 cd ff 4c 89 ff 48 c7 c6 80 1e 73 8b e8 1d 05 10 00 90 <0f> 0b e8 a5 28 cd ff 4c 89 ff 48 c7 c6 60 29 73 8b e8 06 05 10 00 RSP: 0018:ffffc9000b85f6a0 EFLAGS: 00010246 RAX: 857b0309cd7b4e00 RBX: dffffc0000000000 RCX: ffffc9000b85f503 RDX: 0000000000000001 RSI: ffffffff8b6ac0c0 RDI: ffffffff8bbdf380 RBP: 0000000000000000 R08: ffffffff8f00c0af R09: 1ffffffff1e01815 R10: dffffc0000000000 R11: fffffbfff1e01816 R12: ffff888059faf920 R13: 1ffffd4000145941 R14: ffffea0000a2ca08 R15: ffffea0000a2ca00 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561b71a4d950 CR3: 000000007b191000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400