do_splice_direct+0x1af/0x280 fs/splice.c:1194 do_sendfile+0xb3a/0x1310 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x1d6/0x220 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x62/0x6a ------------[ cut here ]------------ kernel BUG at mm/filemap.c:1577! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5765 Comm: segctord Not tainted 6.6.0-next-20231103-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:folio_end_writeback+0x344/0x3f0 mm/filemap.c:1577 Code: a2 70 d1 ff be 01 00 00 00 48 89 df e8 05 b0 ff ff e9 1c fe ff ff e8 8b 70 d1 ff 48 c7 c6 e0 60 d7 8a 48 89 df e8 dc 73 10 00 <0f> 0b e8 75 70 d1 ff 48 c7 c6 40 61 d7 8a 48 89 df e8 c6 73 10 00 RSP: 0000:ffffc90009f579f8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffea0001fab600 RCX: ffffc90009f57858 RDX: ffff88807b4c1dc0 RSI: ffffffff81b78e64 RDI: ffffffff8b2efd80 RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff1e341ba R10: ffffffff8f1a0dd7 R11: 0000000000000000 R12: ffff88806663aaf0 R13: ffffea0001a3ca00 R14: ffffea0001fab600 R15: ffff8880667d46e0 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055af44038fe8 CR3: 000000001cb24000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nilfs_segctor_complete_write fs/nilfs2/segment.c:1901 [inline] nilfs_segctor_wait fs/nilfs2/segment.c:1962 [inline] nilfs_segctor_do_construct+0x5bea/0x8bf0 fs/nilfs2/segment.c:2128 nilfs_segctor_construct+0x924/0xb50 fs/nilfs2/segment.c:2415 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2523 [inline] nilfs_segctor_thread+0x38d/0xe90 fs/nilfs2/segment.c:2606 kthread+0x337/0x440 kernel/kthread.c:388 ret_from_fork+0x45/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+0x344/0x3f0 mm/filemap.c:1577 Code: a2 70 d1 ff be 01 00 00 00 48 89 df e8 05 b0 ff ff e9 1c fe ff ff e8 8b 70 d1 ff 48 c7 c6 e0 60 d7 8a 48 89 df e8 dc 73 10 00 <0f> 0b e8 75 70 d1 ff 48 c7 c6 40 61 d7 8a 48 89 df e8 c6 73 10 00 RSP: 0000:ffffc90009f579f8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffea0001fab600 RCX: ffffc90009f57858 RDX: ffff88807b4c1dc0 RSI: ffffffff81b78e64 RDI: ffffffff8b2efd80 RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff1e341ba R10: ffffffff8f1a0dd7 R11: 0000000000000000 R12: ffff88806663aaf0 R13: ffffea0001a3ca00 R14: ffffea0001fab600 R15: ffff8880667d46e0 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f53e8776538 CR3: 000000001c98a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400