------------[ cut here ]------------ CPA refuse W^X violation: 8000000000000163 -> 0000000000000163 range: 0xffffffffa0401000 - 0xffffffffa0401fff PFN 79fb8 WARNING: CPU: 1 PID: 9429 at arch/x86/mm/pat/set_memory.c:601 verify_rwx arch/x86/mm/pat/set_memory.c:601 [inline] WARNING: CPU: 1 PID: 9429 at arch/x86/mm/pat/set_memory.c:601 __change_page_attr arch/x86/mm/pat/set_memory.c:1570 [inline] WARNING: CPU: 1 PID: 9429 at arch/x86/mm/pat/set_memory.c:601 __change_page_attr_set_clr+0x1faa/0x2080 arch/x86/mm/pat/set_memory.c:1692 Modules linked in: CPU: 1 PID: 9429 Comm: syz-executor.2 Not tainted 6.0.0-rc6-next-20220923-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:verify_rwx arch/x86/mm/pat/set_memory.c:601 [inline] RIP: 0010:__change_page_attr arch/x86/mm/pat/set_memory.c:1570 [inline] RIP: 0010:__change_page_attr_set_clr+0x1faa/0x2080 arch/x86/mm/pat/set_memory.c:1692 Code: 8b 44 24 50 4d 89 f1 4c 89 e2 4c 89 ee 48 c7 c7 80 0c ea 89 c6 05 68 26 94 0c 01 4c 8d 80 ff 0f 00 00 48 89 c1 e8 56 a4 10 08 <0f> 0b e9 68 fc ff ff e8 6a b3 91 00 e9 be f7 ff ff 48 8b 7c 24 08 RSP: 0018:ffffc90015907630 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 8000000079fb8163 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff81620008 RDI: fffff52002b20eb8 RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 7566657220415043 R12: 0000000000000163 R13: 8000000000000163 R14: 0000000000079fb8 R15: 0000000000000000 FS: 00007f1dc65ff700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fca66ee53be CR3: 000000006e615000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: change_page_attr_set_clr+0x333/0x500 arch/x86/mm/pat/set_memory.c:1785 change_page_attr_clear arch/x86/mm/pat/set_memory.c:1822 [inline] set_memory_x+0xb2/0x110 arch/x86/mm/pat/set_memory.c:2000 bpf_jit_alloc_exec_page+0x69/0x80 kernel/bpf/trampoline.c:131 bpf_dispatcher_change_prog+0x303/0x8f0 kernel/bpf/dispatcher.c:143 dev_xdp_install+0x198/0x2b0 net/core/dev.c:9134 dev_xdp_attach+0xa30/0x12a0 net/core/dev.c:9274 dev_xdp_attach_link net/core/dev.c:9293 [inline] bpf_xdp_link_attach+0x26d/0x430 net/core/dev.c:9462 link_create kernel/bpf/syscall.c:4602 [inline] __sys_bpf+0x3f77/0x4cf0 kernel/bpf/syscall.c:5035 __do_sys_bpf kernel/bpf/syscall.c:5069 [inline] __se_sys_bpf kernel/bpf/syscall.c:5067 [inline] __x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:5067 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1dc6e8b5a9 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1dc65ff168 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f1dc6fabf80 RCX: 00007f1dc6e8b5a9 RDX: 0000000000000040 RSI: 0000000020000240 RDI: 000000000000001c RBP: 00007f1dc6ee6580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd85fe955f R14: 00007f1dc65ff300 R15: 0000000000022000