From: Will Deacon <will@kernel.org>
To: linux-kernel@vger.kernel.org, Mark Rutland <mark.rutland@arm.com>,
linux-arm-kernel@lists.infradead.org
Cc: catalin.marinas@arm.com, kernel-team@android.com,
Will Deacon <will@kernel.org>, Mark Brown <broonie@kernel.org>,
Marco Elver <elver@google.com>, Chen Jun <chenjun102@huawei.com>
Subject: Re: [PATCH] arm64: stacktrace: don't trace arch_stack_walk()
Date: Mon, 22 Mar 2021 13:19:56 +0000 [thread overview]
Message-ID: <161641697038.3900410.16800195752008718733.b4-ty@kernel.org> (raw)
In-Reply-To: <20210319184106.5688-1-mark.rutland@arm.com>
On Fri, 19 Mar 2021 18:41:06 +0000, Mark Rutland wrote:
> We recently converted arm64 to use arch_stack_walk() in commit:
>
> 5fc57df2f6fd ("arm64: stacktrace: Convert to ARCH_STACKWALK")
>
> The core stacktrace code expects that (when tracing the current task)
> arch_stack_walk() starts a trace at its caller, and does not include
> itself in the trace. However, arm64's arch_stack_walk() includes itself,
> and so traces include one more entry than callers expect. The core
> stacktrace code which calls arch_stack_walk() tries to skip a number of
> entries to prevent itself appearing in a trace, and the additional entry
> prevents skipping one of the core stacktrace functions, leaving this in
> the trace unexpectedly.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: stacktrace: don't trace arch_stack_walk()
https://git.kernel.org/arm64/c/c607ab4f916d
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
WARNING: multiple messages have this Message-ID (diff)
From: Will Deacon <will@kernel.org>
To: linux-kernel@vger.kernel.org, Mark Rutland <mark.rutland@arm.com>,
linux-arm-kernel@lists.infradead.org
Cc: catalin.marinas@arm.com, kernel-team@android.com,
Will Deacon <will@kernel.org>, Mark Brown <broonie@kernel.org>,
Marco Elver <elver@google.com>, Chen Jun <chenjun102@huawei.com>
Subject: Re: [PATCH] arm64: stacktrace: don't trace arch_stack_walk()
Date: Mon, 22 Mar 2021 13:19:56 +0000 [thread overview]
Message-ID: <161641697038.3900410.16800195752008718733.b4-ty@kernel.org> (raw)
In-Reply-To: <20210319184106.5688-1-mark.rutland@arm.com>
On Fri, 19 Mar 2021 18:41:06 +0000, Mark Rutland wrote:
> We recently converted arm64 to use arch_stack_walk() in commit:
>
> 5fc57df2f6fd ("arm64: stacktrace: Convert to ARCH_STACKWALK")
>
> The core stacktrace code expects that (when tracing the current task)
> arch_stack_walk() starts a trace at its caller, and does not include
> itself in the trace. However, arm64's arch_stack_walk() includes itself,
> and so traces include one more entry than callers expect. The core
> stacktrace code which calls arch_stack_walk() tries to skip a number of
> entries to prevent itself appearing in a trace, and the additional entry
> prevents skipping one of the core stacktrace functions, leaving this in
> the trace unexpectedly.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: stacktrace: don't trace arch_stack_walk()
https://git.kernel.org/arm64/c/c607ab4f916d
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-03-22 13:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-19 18:41 [PATCH] arm64: stacktrace: don't trace arch_stack_walk() Mark Rutland
2021-03-19 18:41 ` Mark Rutland
2021-03-19 19:02 ` Catalin Marinas
2021-03-19 19:02 ` Catalin Marinas
2021-03-22 13:01 ` Mark Rutland
2021-03-22 13:01 ` Mark Rutland
2021-03-22 12:13 ` Mark Brown
2021-03-22 12:13 ` Mark Brown
2021-03-22 13:19 ` Will Deacon [this message]
2021-03-22 13:19 ` Will Deacon
2021-03-22 15:57 ` Ard Biesheuvel
2021-03-22 15:57 ` Ard Biesheuvel
2021-03-22 16:05 ` Ard Biesheuvel
2021-03-22 16:05 ` Ard Biesheuvel
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=161641697038.3900410.16800195752008718733.b4-ty@kernel.org \
--to=will@kernel.org \
--cc=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=chenjun102@huawei.com \
--cc=elver@google.com \
--cc=kernel-team@android.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.