Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933297AbdCaMeD (ORCPT ); Fri, 31 Mar 2017 08:34:03 -0400 Received: from ozlabs.org ([103.22.144.67]:41151 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933126AbdCaMeB (ORCPT ); Fri, 31 Mar 2017 08:34:01 -0400 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 4f9b514b765a3057341f3236c94877d9413babc7 In-Reply-To: <20170327193233.25147-1-cascardo@canonical.com> To: Thadeu Lima de Souza Cascardo , linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Cc: Paul Mackerras , linux-kernel@vger.kernel.org Subject: Re: [v2] powerpc: make /proc/self/stack always print the current stack Message-Id: <3vvgsf6Y16z9s4s@ozlabs.org> Date: Fri, 31 Mar 2017 23:33:58 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 709 Lines: 19 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 Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/4f9b514b765a3057341f3236c94877 cheers