From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Julien Grall <julien@xen.org>,
Bertrand Marquis <bertrand.marquis@arm.com>,
Michal Orzel <michal.orzel@amd.com>,
Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
George Dunlap <george.dunlap@citrix.com>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH v2 1/2] xen: introduce header file with section related symbols
Date: Tue, 23 Apr 2024 15:17:49 +0200 [thread overview]
Message-ID: <Zie0_SLfkPGgiPHR@macbook> (raw)
In-Reply-To: <94da8512-2a02-4109-90f5-627715e48f1e@suse.com>
On Tue, Apr 23, 2024 at 02:25:16PM +0200, Jan Beulich wrote:
> On 19.04.2024 12:02, Roger Pau Monne wrote:
> Then I wonder why it was this rather than ...
>
> > --- a/xen/arch/x86/setup.c
> > +++ b/xen/arch/x86/setup.c
> > @@ -5,6 +5,7 @@
> > #include <xen/param.h>
> > #include <xen/sched.h>
> > #include <xen/domain.h>
> > +#include <xen/sections.h>
> > #include <xen/serial.h>
> > #include <xen/softirq.h>
> > #include <xen/acpi.h>
> > @@ -309,8 +310,6 @@ void __init discard_initial_images(void)
> > initial_images = NULL;
> > }
> >
> > -extern unsigned char __init_begin[], __init_end[];
>
> ... this ...
>
> > --- /dev/null
> > +++ b/xen/include/xen/sections.h
> > @@ -0,0 +1,17 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> > +
> > +#ifndef __XEN_SECTIONS_H__
> > +#define __XEN_SECTIONS_H__
> > +
> > +/* SAF-0-safe */
> > +extern char __init_begin[], __init_end[];
>
> ... that was moved. "unsigned char" is generally preferred over
> declaring binary stuff "strings".
OK, noted.
> I further wonder why the opportunity
> wasn't taken to make both array-of-const.
Hm, yes. The sections are mapped RWX IIRC, but there's no reason to
not make the markers const.
> And finally I'm slightly
> puzzled by the SAF comment appearing with no mention at all in the
> description; of course I don't mind its addition.
I could have noted it in the commit message indeed, sorry.
Thanks, Roger.
next prev parent reply other threads:[~2024-04-23 13:18 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-19 10:02 [PATCH v2 0/2] livepatch: make symbol resolution more robust Roger Pau Monne
2024-04-19 10:02 ` [PATCH v2 1/2] xen: introduce header file with section related symbols Roger Pau Monne
2024-04-19 10:08 ` Andrew Cooper
2024-04-19 10:12 ` Jan Beulich
2024-04-19 10:16 ` Andrew Cooper
2024-04-19 14:32 ` Jan Beulich
2024-04-23 12:25 ` Jan Beulich
2024-04-23 13:17 ` Roger Pau Monné [this message]
2024-04-19 10:02 ` [PATCH v2 2/2] livepatch: refuse to resolve symbols that belong to init sections Roger Pau Monne
2024-04-19 10:10 ` Andrew Cooper
2024-04-19 10:48 ` Roger Pau Monné
2024-04-19 10:15 ` Jan Beulich
2024-04-19 10:50 ` Roger Pau Monné
2024-04-19 14:34 ` Jan Beulich
2024-04-22 7:54 ` Roger Pau Monné
2024-04-22 8:25 ` Jan Beulich
2024-04-22 10:49 ` Roger Pau Monné
2024-04-22 10:57 ` Jan Beulich
2024-04-22 11:34 ` Roger Pau Monné
2024-04-22 11:51 ` Jan Beulich
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=Zie0_SLfkPGgiPHR@macbook \
--to=roger.pau@citrix.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=andrew.cooper3@citrix.com \
--cc=bertrand.marquis@arm.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=sstabellini@kernel.org \
--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.