R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007f203cb35f80 R15: 00007fff72cc3528 </TASK> ------------[ cut here ]------------ kernel BUG at mm/page_table_check.c:87! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 3 UID: 0 PID: 8701 Comm: syz.0.1098 Not tainted 6.12.0-rc3-syzkaller-00007-g6485cf5ea253 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:page_table_check_clear.part.0+0x47e/0x540 mm/page_table_check.c:87 Code: 0f 84 b0 fc ff ff e8 31 8d 92 ff 49 8d 5e ff e9 a2 fc ff ff e8 23 8d 92 ff 90 0f 0b e8 1b 8d 92 ff 90 0f 0b e8 13 8d 92 ff 90 <0f> 0b e8 0b 8d 92 ff 90 0f 0b e8 03 8d 92 ff 49 8d 5e ff 49 83 c6 RSP: 0018:ffffc90022f0f3d8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 00000000ffffffff RCX: ffffffff81faf308 RDX: ffff888036672440 RSI: ffffffff81faf58d RDI: 0000000000000005 RBP: ffff88801dcfa050 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000200 R14: 0000000000000001 R15: dffffc0000000000 FS: 00007f203d7266c0(0000) GS:ffff88806a900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020ff7000 CR3: 0000000052ec0000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> page_table_check_clear arch/x86/include/asm/pgtable.h:274 [inline] __page_table_check_pmd_clear+0x3a9/0x600 mm/page_table_check.c:180 page_table_check_pmd_clear include/linux/page_table_check.h:57 [inline] pmdp_huge_get_and_clear arch/x86/include/asm/pgtable.h:1390 [inline] pmdp_huge_get_and_clear_full include/linux/pgtable.h:636 [inline] zap_huge_pmd+0x264/0x1380 mm/huge_memory.c:2071 zap_pmd_range mm/memory.c:1719 [inline] zap_pud_range mm/memory.c:1768 [inline] zap_p4d_range mm/memory.c:1789 [inline] unmap_page_range+0x1603/0x3cf0 mm/memory.c:1810 unmap_single_vma+0x194/0x2b0 mm/memory.c:1856 unmap_vmas+0x22f/0x490 mm/memory.c:1900 unmap_region+0x201/0x480 mm/vma.c:354 mmap_region+0x1c0a/0x2a60 mm/mmap.c:1573 do_mmap+0xc00/0xfc0 mm/mmap.c:496 vm_mmap_pgoff+0x1ba/0x360 mm/util.c:588 ksys_mmap_pgoff+0x7d/0x5c0 mm/mmap.c:542 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:79 [inline] __x64_sys_mmap+0x125/0x190 arch/x86/kernel/sys_x86_64.c:79 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f203c97dff9 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:00007f203d726038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f203cb35f80 RCX: 00007f203c97dff9 RDX: 0000000000000000 RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007f203d726090 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007f203cb35f80 R15: 00007fff72cc3528 </TASK> Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:page_table_check_clear.part.0+0x47e/0x540 mm/page_table_check.c:87 Code: 0f 84 b0 fc ff ff e8 31 8d 92 ff 49 8d 5e ff e9 a2 fc ff ff e8 23 8d 92 ff 90 0f 0b e8 1b 8d 92 ff 90 0f 0b e8 13 8d 92 ff 90 <0f> 0b e8 0b 8d 92 ff 90 0f 0b e8 03 8d 92 ff 49 8d 5e ff 49 83 c6 RSP: 0018:ffffc90022f0f3d8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 00000000ffffffff RCX: ffffffff81faf308 RDX: ffff888036672440 RSI: ffffffff81faf58d RDI: 0000000000000005 RBP: ffff88801dcfa050 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000200 R14: 0000000000000001 R15: dffffc0000000000 FS: 00007f203d7266c0(0000) GS:ffff88806a900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020ff7000 CR3: 0000000052ec0000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400