------------[ cut here ]------------ kernel BUG at mm/khugepaged.c:1785! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 7375 Comm: syz.1.1069 Not tainted 6.1.147-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:collapse_file mm/khugepaged.c:1785 [inline] RIP: 0010:hpage_collapse_scan_file+0x53c0/0x6320 mm/khugepaged.c:2248 Code: 48 89 c7 48 c7 c6 20 4c 98 8a e8 cb fa e4 ff 0f 0b e8 c4 6e aa ff 49 bc 00 00 00 00 00 fc ff df e9 9f fb ff ff e8 b0 6e aa ff <0f> 0b e8 a9 6e aa ff 0f 0b e8 a2 6e aa ff 0f 0b e8 9b 6e aa ff e9 RSP: 0018:ffffc900039a7660 EFLAGS: 00010287 RAX: ffffffff81d65830 RBX: ffffc900039a77e0 RCX: 0000000000080000 RDX: ffffc90005af9000 RSI: 0000000000000102 RDI: 0000000000000103 RBP: ffffc900039a7908 R08: dffffc0000000000 R09: ffffc900039a7800 R10: fffff52000734f03 R11: 1ffff92000734f00 R12: dffffc0000000000 R13: ffff88802ce4d000 R14: 0000000000000001 R15: 00000000000ffffc FS: 00007f2ea37ff6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5532750000 CR3: 0000000063d04000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: madvise_collapse+0x69c/0xc50 mm/khugepaged.c:2703 madvise_vma_behavior mm/madvise.c:1085 [inline] madvise_walk_vmas mm/madvise.c:1259 [inline] do_madvise+0x6a4/0x33d0 mm/madvise.c:1438 __do_sys_madvise mm/madvise.c:1451 [inline] __se_sys_madvise mm/madvise.c:1449 [inline] __x64_sys_madvise+0xa2/0xb0 mm/madvise.c:1449 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f2ea398eb69 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2ea37ff038 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007f2ea3bb5fa0 RCX: 00007f2ea398eb69 RDX: 0000000000000019 RSI: 0000000000400000 RDI: 0000200000000000 RBP: 00007f2ea3a11df1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f2ea3bb5fa0 R15: 00007ffc46c468c8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:collapse_file mm/khugepaged.c:1785 [inline] RIP: 0010:hpage_collapse_scan_file+0x53c0/0x6320 mm/khugepaged.c:2248 Code: 48 89 c7 48 c7 c6 20 4c 98 8a e8 cb fa e4 ff 0f 0b e8 c4 6e aa ff 49 bc 00 00 00 00 00 fc ff df e9 9f fb ff ff e8 b0 6e aa ff <0f> 0b e8 a9 6e aa ff 0f 0b e8 a2 6e aa ff 0f 0b e8 9b 6e aa ff e9 RSP: 0018:ffffc900039a7660 EFLAGS: 00010287 RAX: ffffffff81d65830 RBX: ffffc900039a77e0 RCX: 0000000000080000 RDX: ffffc90005af9000 RSI: 0000000000000102 RDI: 0000000000000103 RBP: ffffc900039a7908 R08: dffffc0000000000 R09: ffffc900039a7800 R10: fffff52000734f03 R11: 1ffff92000734f00 R12: dffffc0000000000 R13: ffff88802ce4d000 R14: 0000000000000001 R15: 00000000000ffffc FS: 00007f2ea37ff6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5ba228b440 CR3: 0000000063d04000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400