[PATCH] arm64: preserve pt_regs::stackframe during exec*()

Mark Rutland mark.rutland at arm.com
Mon Oct 21 10:13:07 PDT 2024


On Mon, Oct 21, 2024 at 05:44:56PM +0100, Mark Rutland wrote:
> When performing an exec*(), there's a transient period before the return
> to userspace where any stacktrace will result in a warning triggered by
> kunwind_next_frame_record_meta() encountering a struct frame_record_meta
> with an unknown type. This can be seen fairly reliably by enabling KASAN
> or KFENCE, e.g.

[...]

> This zeroing wasn't a problem prior to commit:
> 
>   0f0b9a3f6a50fa36 ("arm64: stacktrace: unwind exception boundaries")

Sorry, that's the commit ID from my arm64/stacktrace/metadata branch.
The version queued in the arm64 for-next/stacktrace branch has a
different ID, and this should say:

  c2c6b27b5aa14fa2 ("arm64: stacktrace: unwind exception boundaries")

[...]

> Fixes: 0f0b9a3f6a50fa36 ("arm64: stacktrace: unwind exception boundaries")

... and likewise that should be:
  
  Fixes: c2c6b27b5aa14fa2 ("arm64: stacktrace: unwind exception boundaries")

Mark.



More information about the linux-arm-kernel mailing list