All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
	Wei Liu <wei.liu2@citrix.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	George Dunlap <George.Dunlap@eu.citrix.com>,
	Tim Deegan <tim@xen.org>, Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Julien Grall <julien.grall@arm.com>,
	xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH] fix uninitialized variable error in do_poll()
Date: Fri, 05 Oct 2018 05:56:52 -0600	[thread overview]
Message-ID: <5BB7518402000078001EED34@prv1-mh.provo.novell.com> (raw)
In-Reply-To: <4d37e20b-4465-4138-0712-df0de2fa57e7@citrix.com>

>>> On 05.10.18 at 13:43, <andrew.cooper3@citrix.com> wrote:
> On 05/10/18 12:25, Wei Liu wrote:
>> On Fri, Oct 05, 2018 at 05:22:29AM -0600, Jan Beulich wrote:
>>>>>> On 05.10.18 at 12:28, <wei.liu2@citrix.com> wrote:
>>>> On Fri, Oct 05, 2018 at 04:12:10AM -0600, Jan Beulich wrote:
>>>>> Now that CONFIG_HVM can (and should) be turned off for the shim, gcc 8.2
>>>>> apparently is no longer sure that "port" is indeed initialized at
>>>>>
>>>>>     if ( sched_poll->nr_ports == 1 )
>>>>>         v->poll_evtchn = port;
>>>>>
>>>>> It doesn't look to be impossible for the compiler to prove it is not,
>>>>> but we also can't rely on that to be the case. Add an initializer.
>>>>>
>>>>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>>>> TBH I fail to see how CONFIG_HVM would affect do_poll. Also there is
>>>> already build test with gcc 8.2 which never discovered the issue you
>>>> described.
>>> I can't explain the sudden diagnostic too (without taking apart what
>>> exactly the compiler does), but the same config (just with HVM=y)
>>> built fine before. Without any further insight (which I don't think is
>>> worth the time) I don't see how I could improve the description.
>> Oh well.
>>
>> Acked-by: Wei Liu <wei.liu2@citrix.com>
> 
> TBH, I'm not sure that relying on DCE is a good longterm option.

Well, we'll have too see how well it fares. If we get into increasing
trouble, we may indeed want to ...

> It will almost certainly break the build at -O0,

... allow for this.

> and our code really should build at all optimisation levels.

I'd say it is us to establish how much optimization we want to
support being enabled.

Jan



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

      reply	other threads:[~2018-10-05 11:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-05 10:12 [PATCH] fix uninitialized variable error in do_poll() Jan Beulich
2018-10-05 10:28 ` Wei Liu
2018-10-05 11:22   ` Jan Beulich
2018-10-05 11:25     ` Wei Liu
2018-10-05 11:43       ` Andrew Cooper
2018-10-05 11:56         ` Jan Beulich [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=5BB7518402000078001EED34@prv1-mh.provo.novell.com \
    --to=jbeulich@suse.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=julien.grall@arm.com \
    --cc=konrad.wilk@oracle.com \
    --cc=sstabellini@kernel.org \
    --cc=tim@xen.org \
    --cc=wei.liu2@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.