On 05/03/2024 12:11 pm, Andrew Cooper wrote:
> diff --git a/xen/common/virtual_region.c b/xen/common/virtual_region.c
> index d2efe9e11492..f45812483b8e 100644
> --- a/xen/common/virtual_region.c
> +++ b/xen/common/virtual_region.c
> @@ -91,9 +91,15 @@ void relax_virtual_region_perms(void)
>
> rcu_read_lock(&rcu_virtual_region_lock);
> list_for_each_entry_rcu( region, &virtual_region_list, list )
> + {
> modify_xen_mappings_lite((unsigned long)region->text_start,
> PAGE_ALIGN((unsigned long)region->text_end),
> PAGE_HYPERVISOR_RWX);
> + if ( region->rodata_start )
> + modify_xen_mappings_lite((unsigned long)region->rodata_start,
> + ROUNDUP((unsigned
> long)region->rodata_end, PAGE_SIZE),
I missed the final refresh to turn this to PAGE_ALIGN(). Fixed locally.
~Andrew