|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xsplice: Prevent new symbols duplicating core symbols
commit fec659aa2dd9cfc9f35f05266179bbdde75203f0
Author: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
AuthorDate: Tue May 10 10:10:02 2016 +0100
Commit: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
CommitDate: Tue May 10 13:38:10 2016 -0400
xsplice: Prevent new symbols duplicating core symbols
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@xxxxxxxxxx>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Release-acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
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);
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |