Messages in this thread | | | From | Catalin Marinas <> | Subject | Re: [PATCH] arm64/sme: Set new vector length before reallocating | Date | Wed, 26 Jul 2023 19:45:31 +0100 |
| |
On Wed, 26 Jul 2023 13:12:26 +0100, Mark Brown wrote: > As part of fixing the allocation of the buffer for SVE state when changing > SME vector length we introduced an immediate reallocation of the SVE state, > this is also done when changing the SVE vector length for consistency. > Unfortunately this reallocation is done prior to writing the new vector > length to the task struct, meaning the allocation is done with the old > vector length and can lead to memory corruption due to an undersized buffer > being used. > > [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64/sme: Set new vector length before reallocating https://git.kernel.org/arm64/c/05d881b85b48
-- Catalin
| |