From: Hollis Blanchard <hollisb@us.ibm.com>
To: Anton Blanchard <anton@samba.org>
Cc: PPC64-dev List <linuxppc64-dev@ozlabs.org>,
Linux PPC Dev <linuxppc-dev@ozlabs.org>
Subject: Re: GDB backtrace and signal trampolines
Date: Fri, 12 Aug 2005 08:58:32 -0500 [thread overview]
Message-ID: <3b9a91d3eebf79c9cc8a2b67cc5e3f84@us.ibm.com> (raw)
In-Reply-To: <20050812050609.GA7355@krispykreme>
On Aug 12, 2005, at 12:06 AM, Anton Blanchard wrote:
>
>> Would it make sense to limit the test to within a few hundred bytes of
>> the stack pointer? Or some better way to detect that the PC is in a
>> signal trampoline?
>
> With recent kernels we should be able to use the dwarf2 unwind
> information in the vdso I think.
I guess compatibility with older kernels will still need to be
maintained, though.
I see this note in arch/ppc64/mm/fault.c:
/*
* N.B. The POWER/Open ABI allows programs to access up to
* 288 bytes below the stack pointer.
* The kernel signal delivery code writes up to about 1.5kB
* below the stack pointer (r1) before decrementing it.
* The exec code can write slightly over 640kB to the stack
* before setting the user r1. Thus we allow the stack to
* expand to 1MB without further checks.
*/
So would 2KB be a reasonable limit to the signal frame check, as I
described before?
--
Hollis Blanchard
IBM Linux Technology Center
next prev parent reply other threads:[~2005-08-12 13:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-11 15:54 GDB backtrace and signal trampolines Hollis Blanchard
2005-08-12 5:06 ` Anton Blanchard
2005-08-12 13:58 ` Hollis Blanchard [this message]
2005-08-24 13:52 ` Hollis Blanchard
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=3b9a91d3eebf79c9cc8a2b67cc5e3f84@us.ibm.com \
--to=hollisb@us.ibm.com \
--cc=anton@samba.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=linuxppc64-dev@ozlabs.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).