Files
linux/arch/mips/kernel
Huang Pei b5c901d96a MIPS: add missing MSACSR and upper MSA initialization
[ Upstream commit bb06748207 ]

In cc97ab235f ("MIPS: Simplify FP context initialization), init_fp_ctx
just initialize the fp/msa context, and own_fp_inatomic just restore
FCSR and 64bit FP regs from it, but miss MSACSR and upper MSA regs for
MSA, so MSACSR and MSA upper regs's value from previous task on current
cpu can leak into current task and cause unpredictable behavior when MSA
context not initialized.

Fixes: cc97ab235f ("MIPS: Simplify FP context initialization")
Signed-off-by: Huang Pei <huangpei@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-09 19:14:22 +02:00
..
2020-05-14 16:44:25 +02:00
2020-05-07 11:55:47 +02:00
2018-10-31 08:54:16 -07:00
2020-05-22 09:09:01 +02:00
2020-04-24 18:37:23 +02:00
2020-05-07 11:55:47 +02:00
2020-05-17 10:25:26 +02:00
2020-05-22 09:09:01 +02:00
2020-05-22 09:09:01 +02:00
2018-08-31 11:49:20 -07:00
2020-05-15 14:53:19 +02:00
2020-05-22 09:13:32 +02:00
2020-08-21 13:14:57 +02:00
2020-05-07 11:55:47 +02:00