Commit 12733f7f authored by Mark Brown's avatar Mark Brown Committed by Treehugger Robot
Browse files

UPSTREAM: arm64/fpsimd: Sync and zero pad FPSIMD state for streaming SVE



We have a function sve_sync_from_fpsimd_zeropad() which is used by the
ptrace code to update the SVE state when the user writes to the the
FPSIMD register set.  Currently this checks that the task has SVE
enabled but this will miss updates for tasks which have streaming SVE
enabled if SVE has not been enabled for the thread, also do the
conversion if the task has streaming SVE enabled.

Bug: 254441685
Fixes: e12310a0 ("arm64/sme: Implement ptrace support for streaming mode SVE registers")
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230803-arm64-fix-ptrace-ssve-no-sve-v1-3-49df214bfb3e@kernel.org


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 69af56ae)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Idf0786f863be8562c49377dccbf7f54036e2975e
parent cc764291
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment