From: Ingo Molnar <mingo@elte.hu>
To: Alexander van Heukelum <heukelum@mailshack.com>
Cc: jia zhang <jia.zhang2008@gmail.com>,
linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com
Subject: Re: [PATCH] x86: remove the confusing entry in call trace
Date: Sun, 23 Nov 2008 20:04:44 +0100 [thread overview]
Message-ID: <20081123190444.GE21106@elte.hu> (raw)
In-Reply-To: <20081123173058.GA32147@mailshack.com>
* Alexander van Heukelum <heukelum@mailshack.com> wrote:
> On Sun, Nov 23, 2008 at 10:47:10PM +0800, jia zhang wrote:
> >
> > avoid the confusion in call trace because of the lack of padding at the tail of
> > function.
> >
> > Signed-off-by: jia zhang <jia.zhang2008@gmail.com> --- When do_exit get call,
> > the return address behind call instruction is pushed into stack. If something
> > get wrong in do_exit, for x86_64, the entry "kernel_execve +0x00/0xXX" rather
> > than "child_rip +0xYY/0xZZ" is remained in call trace. It looks confused.
>
> It's valuable to know from where do_exit is called, so that's the
> only reason why using "call" is important. Otherwise it could just
> be changed to a jmp as do_exit does not return. It's maybe a bit
> ugly to add the padding, but it does give better traces. Maybe
> a 'ret', 'int3', or 'ud2' would be slightly less offensive?
>
> Anyhow, I don't have a problem with the added padding, so:
>
> Acked-by: Alexander van Heukelum <heukelum@fastmail.fm>
applied to tip/x86/debug, thanks guys!
i changed it to u2d based on your suggestion - that makes it not only
easier to understand, but also more robust, should do_exit() return.
(which it should never in practice)
Ingo
prev parent reply other threads:[~2008-11-23 19:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-23 14:47 jia zhang
2008-11-23 17:30 ` Alexander van Heukelum
2008-11-23 19:04 ` Ingo Molnar [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=20081123190444.GE21106@elte.hu \
--to=mingo@elte.hu \
--cc=heukelum@mailshack.com \
--cc=hpa@zytor.com \
--cc=jia.zhang2008@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®