From: Wei Liu <wei.liu2@citrix.com>
To: Ross Lagerwall <ross.lagerwall@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>, Jan Beulich <jbeulich@suse.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH] xsplice: Prevent new symbols duplicating core symbols
Date: Tue, 10 May 2016 10:32:52 +0100 [thread overview]
Message-ID: <20160510093252.GV12241@citrix.com> (raw)
In-Reply-To: <1462871402-8413-1-git-send-email-ross.lagerwall@citrix.com>
On Tue, May 10, 2016 at 10:10:02AM +0100, Ross Lagerwall wrote:
> When loading patches, the code prevents loading a patch containing a new
> symbol that duplicates a symbol from another loaded patch. However, the
> check should also prevent loading a new symbol that duplicates a symbol
> from the core hypervisor.
>
> Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
> ---
>
> Wei, can you consider this for 4.7? Thanks
>
This looks like a valid and simple bug fix, I'm fine with this going
into 4.7.
Wei.
> xen/common/xsplice.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/xen/common/xsplice.c b/xen/common/xsplice.c
> index c9fc53a..21b9ec0 100644
> --- a/xen/common/xsplice.c
> +++ b/xen/common/xsplice.c
> @@ -748,7 +748,8 @@ static int build_symbol_table(struct payload *payload,
>
> if ( !found )
> {
> - if ( xsplice_symbols_lookup_by_name(symtab[i].name) )
> + if ( symbols_lookup_by_name(symtab[i].name) ||
> + xsplice_symbols_lookup_by_name(symtab[i].name) )
> {
> dprintk(XENLOG_ERR, XSPLICE "%s: duplicate new symbol: %s\n",
> elf->name, symtab[i].name);
> --
> 2.4.11
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
prev parent reply other threads:[~2016-05-10 9:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-10 9:10 [PATCH] xsplice: Prevent new symbols duplicating core symbols Ross Lagerwall
2016-05-10 9:32 ` Wei Liu [this message]
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=20160510093252.GV12241@citrix.com \
--to=wei.liu2@citrix.com \
--cc=jbeulich@suse.com \
--cc=ross.lagerwall@citrix.com \
--cc=xen-devel@lists.xen.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.