From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Ross Lagerwall <ross.lagerwall@citrix.com>,
Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCH 3/3] x86/livepatch: Relax permissions on rodata too
Date: Tue, 5 Mar 2024 14:48:48 +0100 [thread overview]
Message-ID: <ZeciwKlNPM9XoqrF@macbook> (raw)
In-Reply-To: <d6448913-8f22-40ee-b703-4d154906eab7@citrix.com>
On Tue, Mar 05, 2024 at 01:02:37PM +0000, Andrew Cooper wrote:
> 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.
With that:
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Thanks, Roger.
next prev parent reply other threads:[~2024-03-05 13:49 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-05 12:11 [PATCH 0/3] x86/livepatch: Reinstate the ability to patch .rodata Andrew Cooper
2024-03-05 12:11 ` [PATCH 1/3] xen/virtual-region: Rename start/end fields Andrew Cooper
2024-03-05 13:35 ` Roger Pau Monné
2024-03-07 13:05 ` Ross Lagerwall
2024-03-05 12:11 ` [PATCH 2/3] xen/virtual-region: Include rodata pointers Andrew Cooper
2024-03-05 13:46 ` Roger Pau Monné
2024-03-05 14:17 ` Jan Beulich
2024-03-06 17:09 ` Ross Lagerwall
2024-03-06 17:21 ` Andrew Cooper
2024-03-07 7:39 ` Jan Beulich
2024-03-07 11:31 ` Andrew Cooper
2024-03-07 11:58 ` Jan Beulich
2024-03-07 12:16 ` Andrew Cooper
2024-03-07 13:03 ` Ross Lagerwall
2024-03-07 13:10 ` Andrew Cooper
2024-03-05 12:11 ` [PATCH 3/3] x86/livepatch: Relax permissions on rodata too Andrew Cooper
2024-03-05 13:02 ` Andrew Cooper
2024-03-05 13:48 ` Roger Pau Monné [this message]
2024-03-07 13:04 ` Ross Lagerwall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZeciwKlNPM9XoqrF@macbook \
--to=roger.pau@citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=konrad.wilk@oracle.com \
--cc=ross.lagerwall@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.