[PATCH v1] arm64: RSI: fix field-spanning write warning in attestation token init

Will Deacon will at kernel.org
Sun Jul 26 08:00:52 PDT 2026


On Wed, 15 Jul 2026 21:28:50 +0900, Kohei Enju wrote:
> The challenge is passed in registers a1 through a8. However, copying to
> &regs.a1 makes FORTIFY treat the destination as the single a1 field,
> resulting in a field-spanning write warning. [1]
> 
> Overlay the SMCCC register structure with an RSI-specific argument
> layout and copy the challenge into an explicit 64-byte array. This keeps
> the existing a1-a8 argument encoding while giving the copy a correctly
> sized destination object.
> 
> [...]

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

[1/1] arm64: RSI: fix field-spanning write warning in attestation token init
      https://git.kernel.org/arm64/c/221049874b6a

Cheers,
-- 
Will

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



More information about the linux-arm-kernel mailing list