------------[ cut here ]------------ pte_uffd_wp(pte) && pte_write(pte) WARNING: mm/page_table_check.c:194 at page_table_check_pte_flags mm/page_table_check.c:194 [inline], CPU#2: syz.1.4931/22131 WARNING: mm/page_table_check.c:194 at __page_table_check_ptes_set+0x233/0x4e0 mm/page_table_check.c:210, CPU#2: syz.1.4931/22131 Modules linked in: CPU: 2 UID: 0 PID: 22131 Comm: syz.1.4931 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:page_table_check_pte_flags mm/page_table_check.c:194 [inline] RIP: 0010:__page_table_check_ptes_set+0x233/0x4e0 mm/page_table_check.c:210 Code: 84 e5 fe ff ff e8 4d ce 87 ff 48 8b 2c 24 31 ff 83 e5 02 48 89 ee e8 1c c9 87 ff 48 85 ed 0f 84 2d 02 00 00 e8 2e ce 87 ff 90 <0f> 0b 90 e9 b8 fe ff ff e8 20 ce 87 ff 48 8b 2c 24 31 ff bb 01 00 RSP: 0000:ffffc9000601e9d0 EFLAGS: 00010246 RAX: 0000000000080000 RBX: ffff88806c03e448 RCX: ffffc9002eb10000 RDX: 0000000000080000 RSI: ffffffff828029b2 RDI: ffff88805e8f8000 RBP: 0000000000000002 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000001 R14: 1ffff92000c03d4f R15: 1ffff92000c03d3c FS: 0000000000000000(0000) GS:ffff88809735a000(0063) knlGS:00000000f5406b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f72f5ae8 CR3: 00000000795fe000 CR4: 0000000000352ef0 Call Trace: page_table_check_ptes_set include/linux/page_table_check.h:83 [inline] set_ptes+0x199/0x1d0 include/linux/pgtable.h:432 do_swap_page+0x2e58/0x68e0 mm/memory.c:5046 handle_pte_fault mm/memory.c:6311 [inline] __handle_mm_fault+0x18c1/0x2b60 mm/memory.c:6446 handle_mm_fault+0x36d/0xa20 mm/memory.c:6615 faultin_page mm/gup.c:1126 [inline] __get_user_pages+0xf9c/0x34d0 mm/gup.c:1428 __get_user_pages_locked mm/gup.c:1692 [inline] get_dump_page+0x27e/0x3d0 mm/gup.c:2192 dump_user_range+0x18d/0xb50 fs/coredump.c:1367 elf_core_dump+0x31b0/0x4250 fs/binfmt_elf.c:2111 coredump_write fs/coredump.c:1050 [inline] do_coredump fs/coredump.c:1127 [inline] vfs_coredump+0x27b4/0x5570 fs/coredump.c:1201 get_signal+0x1f2a/0x21e0 kernel/signal.c:3019 arch_do_signal_or_restart+0x91/0x770 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline] exit_to_user_mode_loop+0x86/0x4a0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] __do_fast_syscall_32+0x578/0x8c0 arch/x86/entry/syscall_32.c:310 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:332 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7f45f6c Code: d2 74 05 c1 e8 0c 89 02 8b 5d fc 31 c0 c9 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 58 b8 77 00 00 00 cd 80 0f 0b 8d b6 00 00 00 00 b8 ad RSP: 002b:00000000f54065cc EFLAGS: 00000246 ORIG_RAX: 00000000000000f0 RAX: ffffffffffffffda RBX: 00000000f7404f8c RCX: 0000000000000081 RDX: 00000000000f4240 RSI: 0000000020646165 RDI: 0000000063617473 RBP: 0000000000203a6b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: d2 74 05 c1 shlb %cl,-0x3f(%rbp,%rax,1) 4: e8 0c 89 02 8b call 0x8b028915 9: 5d pop %rbp a: fc cld b: 31 c0 xor %eax,%eax d: c9 leave e: c3 ret f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 0f 1f 00 nopl (%rax) 21: 51 push %rcx 22: 52 push %rdx 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 ret 2e: 58 pop %rax 2f: b8 77 00 00 00 mov $0x77,%eax 34: cd 80 int $0x80 36: 0f 0b ud2 38: 8d b6 00 00 00 00 lea 0x0(%rsi),%esi 3e: b8 .byte 0xb8 3f: ad lods %ds:(%rsi),%eax