------------[ cut here ]------------ kernel BUG at mm/khugepaged.c:1920! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5105 Comm: syz-executor202 Not tainted 6.2.0-rc8-next-20230217-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:collapse_file+0x3414/0x5880 mm/khugepaged.c:1920 Code: ff 48 c7 c2 00 5a 5a 8a be cf 00 00 00 48 c7 c7 60 5a 5a 8a c6 05 09 ed 86 0c 01 e8 76 58 89 ff e9 b7 e6 ff ff e8 1c a8 a8 ff <0f> 0b e8 15 a8 a8 ff 0f 0b e9 ef ce ff ff e8 09 a8 a8 ff 4c 8b 65 RSP: 0018:ffffc90003d0f7e8 EFLAGS: 00010093 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: ffff888027848000 RSI: ffffffff81dbeb44 RDI: 0000000000000006 RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000280 R10: 0000000000000281 R11: 0000000000000000 R12: 0000000000000280 R13: ffff88801daf67e8 R14: 0000000000000400 R15: 0000000000000281 FS: 00007fb1ce955700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb1cea31904 CR3: 000000007e1dd000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hpage_collapse_scan_file+0xcd3/0x1680 mm/khugepaged.c:2346 madvise_collapse+0x52f/0xb70 mm/khugepaged.c:2806 madvise_vma_behavior+0x63d/0x20c0 mm/madvise.c:1086 madvise_walk_vmas+0x1c7/0x2b0 mm/madvise.c:1260 do_madvise.part.0+0x24a/0x340 mm/madvise.c:1439 do_madvise mm/madvise.c:1452 [inline] __do_sys_madvise mm/madvise.c:1452 [inline] __se_sys_madvise mm/madvise.c:1450 [inline] __x64_sys_madvise+0x117/0x150 mm/madvise.c:1450 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:0x7fb1ce9c4c49 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:00007fb1ce9552f8 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007fb1cea4d4b8 RCX: 00007fb1ce9c4c49 RDX: 0000000000000019 RSI: 000000000060005f RDI: 0000000020000000 RBP: 00007fb1cea4d4b0 R08: 0000000000000001 R09: 0000000000000034 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb1ce955300 R13: 0000000000000001 R14: 00007fb1ce955400 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:collapse_file+0x3414/0x5880 mm/khugepaged.c:1920 Code: ff 48 c7 c2 00 5a 5a 8a be cf 00 00 00 48 c7 c7 60 5a 5a 8a c6 05 09 ed 86 0c 01 e8 76 58 89 ff e9 b7 e6 ff ff e8 1c a8 a8 ff <0f> 0b e8 15 a8 a8 ff 0f 0b e9 ef ce ff ff e8 09 a8 a8 ff 4c 8b 65 RSP: 0018:ffffc90003d0f7e8 EFLAGS: 00010093 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: ffff888027848000 RSI: ffffffff81dbeb44 RDI: 0000000000000006 RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000280 R10: 0000000000000281 R11: 0000000000000000 R12: 0000000000000280 R13: ffff88801daf67e8 R14: 0000000000000400 R15: 0000000000000281 FS: 00007fb1ce955700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb1cea31904 CR3: 000000007e1dd000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400