From: Michael Ellerman <patch-notifications@ellerman.id.au>
To: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>,
linuxppc-dev@lists.ozlabs.org
Cc: Paul Mackerras <paulus@samba.org>, linux-kernel@vger.kernel.org
Subject: Re: [v2] powerpc: make /proc/self/stack always print the current stack
Date: Fri, 31 Mar 2017 23:33:58 +1100 (AEDT) [thread overview]
Message-ID: <3vvgsf6Y16z9s4s@ozlabs.org> (raw)
In-Reply-To: <20170327193233.25147-1-cascardo@canonical.com>
On Mon, 2017-03-27 at 19:32:33 UTC, Thadeu Lima de Souza Cascardo wrote:
> For the current task, the kernel stack would only tell the last time the
> process was rescheduled, if ever. Use the current stack pointer for the
> current task.
>
> Otherwise, every once in a while, the stacktrace printed when reading
> /proc/self/stack would look like the process is running in userspace,
> while it's not, which some may consider as a bug.
>
> This is also consistent with some other architectures, like x86 and arm,
> at least.
>
> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/4f9b514b765a3057341f3236c94877
cheers
prev parent reply other threads:[~2017-03-31 12:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-17 15:59 [PATCH] powerpc: fix /proc/self/stack Thadeu Lima de Souza Cascardo
2017-03-22 11:03 ` Michael Ellerman
2017-03-27 19:32 ` [PATCH v2] powerpc: make /proc/self/stack always print the current stack Thadeu Lima de Souza Cascardo
2017-03-31 12:33 ` Michael Ellerman [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=3vvgsf6Y16z9s4s@ozlabs.org \
--to=patch-notifications@ellerman.id.au \
--cc=cascardo@canonical.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.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
all inboxes | Powered by JetHome®