Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753503AbdIDK3g (ORCPT ); Mon, 4 Sep 2017 06:29:36 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:56700 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751321AbdIDK3f (ORCPT ); Mon, 4 Sep 2017 06:29:35 -0400 Date: Mon, 4 Sep 2017 11:29:30 +0100 From: Catalin Marinas To: Andrew Morton Cc: Prakash Gupta , mhocko@suse.com, vbabka@suse.cz, will.deacon@arm.com, iamjoonsoo.kim@lge.com, rmk+kernel@arm.linux.org.uk, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 1/2] arm64: stacktrace: avoid listing stacktrace functions in stacktrace Message-ID: <20170904102930.nuop6zscgp2frvat@armageddon.cambridge.arm.com> References: <1504078343-28754-1-git-send-email-guptap@codeaurora.org> <20170830132828.0bf9b9bc64f51362a64a6694@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170830132828.0bf9b9bc64f51362a64a6694@linux-foundation.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1014 Lines: 25 On Wed, Aug 30, 2017 at 01:28:28PM -0700, Andrew Morton wrote: > On Wed, 30 Aug 2017 13:02:22 +0530 Prakash Gupta wrote: > > > The stacktraces always begin as follows: > > > > [] save_stack_trace_tsk+0x0/0x98 > > [] save_stack_trace+0x24/0x28 > > ... > > > > This is because the stack trace code includes the stack frames for itself. > > This is incorrect behaviour, and also leads to "skip" doing the wrong thing > > (which is the number of stack frames to avoid recording.) > > > > Perversely, it does the right thing when passed a non-current thread. Fix > > this by ensuring that we have a known constant number of frames above the > > main stack trace function, and always skip these. > > > > This was fixed for arch arm by Commit 3683f44c42e9 ("ARM: stacktrace: avoid > > listing stacktrace functions in stacktrace") > > I can take this (with acks, please?) In case you haven't picked it up already: Acked-by: Catalin Marinas