xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: Tim Deegan <tim@xen.org>, Keir Fraser <keir@xen.org>,
	Jan Beulich <JBeulich@suse.com>,
	Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [Patch v3 0/4] Xen stack trace printing improvements
Date: Tue, 19 Nov 2013 10:50:16 +0000	[thread overview]
Message-ID: <528B4268.3060403@citrix.com> (raw)
In-Reply-To: <CAFLBxZYrAwYcjs8Coaa=S_Am8Mp3GbHr7m_okohoOT5tjE7kDA@mail.gmail.com>

On 19/11/2013 10:10, George Dunlap wrote:
> On Mon, Nov 18, 2013 at 7:34 PM, Andrew Cooper
> <andrew.cooper3@citrix.com> wrote:
>> This series consists of improvements to Xen's ability to print traces of its
>> own stack, and specifically for the stack overflow case to be able to use
>> frame pointers in a debug build.
>>
>> I have dev tested the series in debug and non-debug cases, with and without
>> memory guards, and I believe that all the stack traces look correct (given the
>> available information Xen has), and that the boundaries are now correct. This
>> series has had a substantial rebase on top of the %pS series.
>>
>> George: Regarding the 4.4 code, I would like to argue this as a bugfix rather
>> than feature, therefore being exempt from the freeze at the moment.
> Well that argument is BS.  It's not a bug fix; it's clearly exactly
> what the series summary describes it as -- an improvement.
>
> The questions you need to answer are:
> * What are the benefits to 4.4 of accepting this patch?
> * What are the risks in accepting this patch if it turned out to be
> not quite correct?
>
> Re the benefits, I'm guessing the main one is to be able to use frame
> pointers in an extra case, making the stack more readable on a crash.
>
> The risk, it seems to me, would be if there were other crashes that
> might have garbled stacks that are no longer useful; or, more
> importantly, that if someone was using a debug key to print out the
> hypervisor stack, that, it might cause the whole host to crash.
>
> I'm kind of on the fence on this one -- Jan / Keir, any thoughts?
>
>  -George

Benefits:
* Use frame pointers in the stack overflow case
* Correct boundaries for frame pointer traces
* Wild function pointer semantics in the common case now

Risks:
* Issues with printing stack traces (although if you notice, I haven't
actually changed either of the printing algorithms)

This series seemed accepted-in-principle at v1 ages ago, pending me
confirming the boundaries. (which have admittedly be tweaked in this
latest series).

~Andrew

  reply	other threads:[~2013-11-19 10:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-18 19:34 [Patch v3 0/4] Xen stack trace printing improvements Andrew Cooper
2013-11-18 19:34 ` [Patch v3 1/4] x86/stack: Refactor show_trace() Andrew Cooper
2013-11-20  9:43   ` Jan Beulich
2013-11-18 19:34 ` [Patch v3 2/4] x86/stack: Adjust boundary conditions for printed stacks Andrew Cooper
2013-11-20  9:49   ` Jan Beulich
2013-11-18 19:34 ` [Patch v3 3/4] x86/stack: Change show_stack_overflow() to use frame pointers if available Andrew Cooper
2013-11-20  9:51   ` Jan Beulich
2013-11-18 19:34 ` [Patch v3 4/4] DO NOT APPLY: Test code for interesting stack overflows Andrew Cooper
2013-11-19 10:10 ` [Patch v3 0/4] Xen stack trace printing improvements George Dunlap
2013-11-19 10:50   ` Andrew Cooper [this message]
2013-11-19 11:01     ` George Dunlap
2013-11-19 16:07       ` Keir Fraser
2013-11-19 16:10         ` 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=528B4268.3060403@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=keir@xen.org \
    --cc=tim@xen.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).