WARNING: at arch/x86/mm/pat/set_memory.c:626 __change_page_attr()
Issue
- RHEL 9.3 guest(with UEFI) running on ESXI reporting below WARNING during boot.
[ 0.120325] ------------[ cut here ]------------
[ 0.120328] CPA detected W^X violation: 8000000000000063 -> 0000000000000063 range: 0x000000000ff06000 - 0x000000000ff06fff PFN ff06
[ 0.120334] WARNING: CPU: 0 PID: 0 at arch/x86/mm/pat/set_memory.c:626 __change_page_attr+0x2bf/0x2f0
..
[ 0.120406] Call Trace:
[ 0.120415] <TASK>
[ 0.120418] ? show_trace_log_lvl+0x1c4/0x2df
[ 0.120424] ? show_trace_log_lvl+0x1c4/0x2df
[ 0.120428] ? __change_page_attr_set_clr+0x4b/0xb0
[ 0.120432] ? __change_page_attr+0x2bf/0x2f0
[ 0.120436] ? __warn+0x81/0x110
[ 0.120428] ? __change_page_attr_set_clr+0x4b/0xb0
[ 0.120432] ? __change_page_attr+0x2bf/0x2f0
[ 0.120436] ? __warn+0x81/0x110
[ 0.120440] ? __change_page_attr+0x2bf/0x2f0
[ 0.120443] ? report_bug+0x10a/0x140
[ 0.120448] ? console_unlock+0xec/0x320
[ 0.120453] ? handle_bug+0x3c/0x70
[ 0.120457] ? exc_invalid_op+0x14/0x70
[ 0.120459] ? asm_exc_invalid_op+0x16/0x20
[ 0.120464] ? __change_page_attr+0x2bf/0x2f0
[ 0.120467] ? __change_page_attr+0x2bf/0x2f0
[ 0.120470] __change_page_attr_set_clr+0x4b/0xb0
[ 0.120473] kernel_map_pages_in_pgd+0xcd/0xf9
[ 0.120479] efi_update_mappings+0x36/0x95
[ 0.120482] efi_memattr_apply_permissions+0x226/0x27f
[ 0.120487] ? __pfx_efi_update_mem_attr+0x10/0x10
[ 0.120490] ? efi_free_boot_services+0x231/0x269
[ 0.120493] __efi_enter_virtual_mode+0x1bc/0x1eb
[ 0.120496] efi_enter_virtual_mode+0x34/0x3e
[ 0.120498] start_kernel+0x42b/0x4c2
[ 0.120502] secondary_startup_64_no_verify+0xe5/0xeb
[ 0.120507] </TASK>
[ 0.120509] ---[ end trace 8728f3f24e5d439a ]---
Environment
- Red Hat Enterprise Linux 9.3
- Guest vm running on
ESXI 7.0U2
- UEFI
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.