[PATCHv4] arm64: Implement stack trace termination record

Will Deacon will at kernel.org
Tue May 25 11:58:49 PDT 2021


On Mon, 10 May 2021 12:00:26 +0100, Mark Rutland wrote:
> Reliable stacktracing requires that we identify when a stacktrace is
> terminated early. We can do this by ensuring all tasks have a final
> frame record at a known location on their task stack, and checking
> that this is the final frame record in the chain.
> 
> We'd like to use task_pt_regs(task)->stackframe as the final frame
> record, as this is already setup upon exception entry from EL0. For
> kernel tasks we need to consistently reserve the pt_regs and point x29
> at this, which we can do with small changes to __primary_switched,
> __secondary_switched, and copy_process().
> 
> [...]

Applied to arm64 (for-next/stacktrace), thanks!

[1/1] arm64: Implement stack trace termination record
      https://git.kernel.org/arm64/c/7d7b720a4b80

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list