[PATCH v2] arm64: smccc: Save lr before calling __arm_smccc_sve_check()

Will Deacon will at kernel.org
Wed Jul 21 03:47:52 PDT 2021


On Wed, 21 Jul 2021 09:18:35 +0200, Jean-Philippe Brucker wrote:
> Commit cfa7ff959a78 ("arm64: smccc: Support SMCCC v1.3 SVE register
> saving hint") added a call to __arm_smccc_sve_check() which clobbers the
> lr (register x30), causing __arm_smccc_hvc() to return to itself and
> crash. Save lr on the stack before calling __arm_smccc_sve_check(). Save
> the frame pointer (x29) to complete the frame record, and adjust the
> offsets used to access stack parameters.

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

[1/1] arm64: smccc: Save lr before calling __arm_smccc_sve_check()
      https://git.kernel.org/arm64/c/a7c3acca5380

Cheers,
-- 
Will

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



More information about the linux-arm-kernel mailing list