------------[ cut here ]------------ kernel BUG at mm/khugepaged.c:1794! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5122 Comm: syz-executor301 Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:collapse_file+0x3707/0x57d0 mm/khugepaged.c:1794 Code: ff 48 c7 c2 a0 0f 3a 8a be ce 00 00 00 48 c7 c7 00 10 3a 8a c6 05 f2 5f 68 0c 01 e8 1d 2e de 07 e9 8a e1 ff ff e8 09 6b ac ff <0f> 0b e8 02 6b ac ff 48 8b 7c 24 30 4c 89 fe e8 75 3b db 07 48 89 RSP: 0018:ffffc90003d6f810 EFLAGS: 00010093 RAX: 0000000000000000 RBX: 0000000000000300 RCX: 0000000000000000 RDX: ffff888029800000 RSI: ffffffff81d4e5f7 RDI: 0000000000000006 RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000300 R10: 0000000000000301 R11: 0000000000000000 R12: 0000000000000301 R13: 0000000000000043 R14: ffff88802bfb4238 R15: dffffc0000000000 FS: 00007fb44cb7e700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb44cc201f0 CR3: 000000001d1f4000 CR4: 0000000000350ee0 Call Trace: hpage_collapse_scan_file+0xdba/0x18e0 mm/khugepaged.c:2204 madvise_collapse+0x523/0xb60 mm/khugepaged.c:2663 madvise_vma_behavior+0x63d/0x2020 mm/madvise.c:1091 madvise_walk_vmas+0x1c7/0x2b0 mm/madvise.c:1265 do_madvise.part.0+0x24a/0x340 mm/madvise.c:1444 do_madvise mm/madvise.c:1457 [inline] __do_sys_madvise mm/madvise.c:1457 [inline] __se_sys_madvise mm/madvise.c:1455 [inline] __x64_sys_madvise+0x117/0x150 mm/madvise.c:1455 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb44cbedc49 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 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:00007fb44cb7e2f8 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007fb44cc764b8 RCX: 00007fb44cbedc49 RDX: 0000000000000019 RSI: 000000000060005f RDI: 0000000020000000 RBP: 00007fb44cc764b0 R08: 0000000000000001 R09: 0000000000000034 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb44cb7e300 R13: 0000000000000001 R14: 00007fb44cb7e400 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:collapse_file+0x3707/0x57d0 mm/khugepaged.c:1794 Code: ff 48 c7 c2 a0 0f 3a 8a be ce 00 00 00 48 c7 c7 00 10 3a 8a c6 05 f2 5f 68 0c 01 e8 1d 2e de 07 e9 8a e1 ff ff e8 09 6b ac ff <0f> 0b e8 02 6b ac ff 48 8b 7c 24 30 4c 89 fe e8 75 3b db 07 48 89 RSP: 0018:ffffc90003d6f810 EFLAGS: 00010093 RAX: 0000000000000000 RBX: 0000000000000300 RCX: 0000000000000000 RDX: ffff888029800000 RSI: ffffffff81d4e5f7 RDI: 0000000000000006 RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000300 R10: 0000000000000301 R11: 0000000000000000 R12: 0000000000000301 R13: 0000000000000043 R14: ffff88802bfb4238 R15: dffffc0000000000 FS: 00007fb44cb7e700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb44cc201f0 CR3: 000000001d1f4000 CR4: 0000000000350ee0