From: bugzilla-daemon@bugzilla.kernel.org
To: linuxppc-dev@lists.ozlabs.org
Subject: [Bug 205183] PPC64: Signal delivery fails with SIGSEGV if between about 1KB and 4KB bytes of stack remain
Date: Tue, 10 Dec 2019 13:25:05 +0000 [thread overview]
Message-ID: <bug-205183-206035-fSQljhIXf2@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-205183-206035@https.bugzilla.kernel.org/>
https://bugzilla.kernel.org/show_bug.cgi?id=205183
Daniel Axtens (dja@axtens.net) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dja@axtens.net
--- Comment #2 from Daniel Axtens (dja@axtens.net) ---
Hi, I'm starting to have a look at this for Daniel B.
So looking at the fault that fails, I see that it's a fault with the NIP in the
_kernel_ that fails, rather than in userspace. Dumping stack we see:
[ 118.917679] Call Trace:
[ 118.917715] [c00000007b457820] [c000000000b71538] dump_stack+0xbc/0x104
(unreliable)
[ 118.917719] [c00000007b457860] [c00000000006e8f0]
__do_page_fault+0x860/0xf90
[ 118.917721] [c00000007b457940] [c00000000000af68]
handle_page_fault+0x10/0x30
[ 118.917725] --- interrupt: 301 at handle_rt_signal64+0x180/0x13a0
LR = handle_rt_signal64+0x148/0x13a0
[ 118.917726] [c00000007b457d30] [c000000000023d30]
do_notify_resume+0x2e0/0x410
[ 118.917728] [c00000007b457e20] [c00000000000e4c4]
ret_from_except_lite+0x70/0x74
I'm still debugging, but it looks like handle_rt_signal64 attempts to reserve a
stack frame for the signal, but computes a stack address that sits outside
valid stack space. Then when writing to it, it pagefaults, and because it's not
a userland NIP, it refuses to expand the stack.
I'll keep you up to date.
Regards,
Daniel A
--
You are receiving this mail because:
You are watching the assignee of the bug.
next prev parent reply other threads:[~2019-12-10 13:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-13 15:56 [Bug 205183] New: PPC64: Signal delivery fails with SIGSEGV if between about 1KB and 4KB bytes of stack remain bugzilla-daemon
2019-11-18 4:28 ` [Bug 205183] " bugzilla-daemon
2019-12-10 13:25 ` bugzilla-daemon [this message]
2019-12-11 1:51 ` bugzilla-daemon
2020-06-11 6:43 ` bugzilla-daemon
2020-07-28 0:45 ` bugzilla-daemon
2020-07-28 0:46 ` bugzilla-daemon
2020-08-11 3:47 ` bugzilla-daemon
2020-08-31 13:16 ` bugzilla-daemon
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=bug-205183-206035-fSQljhIXf2@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@bugzilla.kernel.org \
--cc=linuxppc-dev@lists.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).