On Thu, 9 Sep 2021 17:53:56 +0100, Mark Brown wrote:
When we need a buffer for SVE register state we call sve_alloc() to make sure that one is there. In order to avoid repeated allocations and frees we keep the buffer around unless we change vector length and just memset() it to ensure a clean register state. The function that deals with this takes the task to operate on as an argument, however in the case where we do a memset() we initialise using the SVE state size for the current task rather than the task passed as an argument.
[...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64/sve: Use correct size when reinitialising SVE state https://git.kernel.org/arm64/c/e35ac9d0b56e