All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Wieczorkiewicz, Pawel" <wipawel@amazon.de>
To: Sergey Dyasli <sergey.dyasli@citrix.com>
Cc: "Paraschiv, Andra-Irina" <andraprs@amazon.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	"Wieczorkiewicz, Pawel" <wipawel@amazon.de>,
	"Pohlack,  Martin" <mpohlack@amazon.de>,
	Ross Lagerwall <ross.lagerwall@citrix.com>,
	"Manthey, Norbert" <nmanthey@amazon.de>,
	Martin Mazein <amazein@amazon.de>,
	Xen-devel <xen-devel@lists.xenproject.org>,
	"Doebel, Bjoern" <doebel@amazon.de>
Subject: Re: [Xen-devel] livepatch-build-tools regression
Date: Tue, 26 Nov 2019 18:37:47 +0000	[thread overview]
Message-ID: <CF690FB1-DF59-44B3-AB3F-B2101617826E@amazon.com> (raw)
In-Reply-To: <60D2D242-4806-402F-99BC-F0CE572E5925@amazon.com>

It looks like gcc plays the usual dirty tricks with local variables renaming:

- xen-syms
  7529: ffff82d0805fed50     8 OBJECT  LOCAL  DEFAULT 4230 lastpage.22857
- livepatch
   289: 0000000000000000     8 OBJECT  GLOBAL DEFAULT  UND hvm.c#lastpage.22856

Then, symbols resolution by name fails..

Can you please try to build the livepatch module with additional option '—prelink' and give it a try ?

> On 26. Nov 2019, at 18:51, Wieczorkiewicz, Pawel <wipawel@amazon.de> wrote:
> 
> 
> 
>> On 20. Nov 2019, at 12:42, Sergey Dyasli <sergey.dyasli@citrix.com> wrote:
>> 
>> On 19/11/2019 17:21, Wieczorkiewicz, Pawel wrote:
>>> 
>>> 
>>>> On 18. Nov 2019, at 18:41, Sergey Dyasli <sergey.dyasli@citrix.com> wrote:
>>>> 
>>>> On 18/11/2019 17:28, Wieczorkiewicz, Pawel wrote:
>>>>> 
>>>>> Could you build the lp with debug (-d) and provide me with the create-diff-object.log file?
>>>>> 
>>>> 
>>>> I've attached the log. Btw, I think I provided all the necessary information
>>>> for others to repeat my experiment.
>>>> 
>>> 
>>> Sorry for another request, but I do not seem to be able to reproduce this locally.
>>> Could you send me the livepatch module binary that fails to upload?
>> 
>> That's interesting. I've attached the binary that my system produces.
>> What version of gcc do you use?
> 
> The version used was: gcc (GCC) 7.2.1 20170915
> 
> But I have finally managed to reproduce the issue with:
> 1. gcc (Ubuntu 6.5.0-2ubuntu1~18.04) 6.5.0 20181026
> 2. gcc-7 (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
> 
> I think it is not related to the commit:
> commit 854a7ca60e35 "create-diff-object: Do not include all .rodata sections"
> 
> I managed to reproduce it also with earlier version commit:
> "0c10457 Remove section alignment requirement"
> 
> But this time a different symbol causes the failure:
> 
> (XEN) livepatch: 0001-live-patch: Unknown symbol: hvm.c#lastpage.22856
> 
>> 
>> --
>> Thanks,
>> Sergey
>> <0001-live-patch-stripped.livepatch>
> 
> Best Regards,
> Pawel Wieczorkiewicz

Best Regards,
Pawel Wieczorkiewicz






Amazon Development Center Germany GmbH
Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Ralf Herbrich
Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
Sitz: Berlin
Ust-ID: DE 289 237 879


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2019-11-26 18:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-18 16:42 [Xen-devel] livepatch-build-tools regression Sergey Dyasli
2019-11-18 16:47 ` Wieczorkiewicz, Pawel
2019-11-18 17:09   ` Sergey Dyasli
2019-11-18 17:28     ` Wieczorkiewicz, Pawel
2019-11-18 17:41       ` Sergey Dyasli
2019-11-19 17:21         ` Wieczorkiewicz, Pawel
2019-11-20 11:42           ` Sergey Dyasli
2019-11-26 17:51             ` Wieczorkiewicz, Pawel
2019-11-26 18:37               ` Wieczorkiewicz, Pawel [this message]
2019-11-27 11:16                 ` Sergey Dyasli
2019-11-27 15:22                   ` Wieczorkiewicz, Pawel
2019-11-27 15:56                     ` Sergey Dyasli
2019-12-02  8:26                       ` Wieczorkiewicz, Pawel

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=CF690FB1-DF59-44B3-AB3F-B2101617826E@amazon.com \
    --to=wipawel@amazon.de \
    --cc=amazein@amazon.de \
    --cc=andraprs@amazon.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=doebel@amazon.de \
    --cc=konrad.wilk@oracle.com \
    --cc=mpohlack@amazon.de \
    --cc=nmanthey@amazon.de \
    --cc=ross.lagerwall@citrix.com \
    --cc=sergey.dyasli@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.