Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1613963

Re: [v2] powerpc: make /proc/self/stack always print the current stack

From Michael Ellerman <patch-notifications@ellerman.id.au>
Newsgroups linux.kernel
Subject Re: [v2] powerpc: make /proc/self/stack always print the current stack
Date 2017-03-31 14:40 +0200
Message-ID <tr40q-4Bg-13@gated-at.bofh.it> (permalink)
References <tpJho-55U-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2] powerpc: make /proc/self/stack always print the current stack Thadeu Lima de Souza Cascardo <cascardo@canonical.com> - 2017-03-27 22:20 +0200
  Re: [v2] powerpc: make /proc/self/stack always print the current stack Michael Ellerman <patch-notifications@ellerman.id.au> - 2017-03-31 14:40 +0200

csiph-web