[RFT PATCH v2 1/4] arm64: fix possible invalid FPSIMD initialization state
Catalin Marinas
catalin.marinas at arm.com
Mon Oct 14 09:54:58 EDT 2013
On Sun, Oct 13, 2013 at 03:20:17PM +0100, Jiang Liu wrote:
> From: Jiang Liu <jiang.liu at huawei.com>
>
> If context switching happens during executing fpsimd_flush_thread(),
> stale value in FPSIMD registers will be saved into current thread's
> fpsimd_state by fpsimd_thread_switch(). That may cause invalid
> initialization state for the new process, so disable preemption
> when executing fpsimd_flush_thread().
>
> Signed-off-by: Jiang Liu <jiang.liu at huawei.com>
> Cc: Jiang Liu <liuj97 at gmail.com>
That's already in mainline (3.12-rc4).
--
Catalin
More information about the linux-arm-kernel
mailing list