Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58591dd6 authored by Huang Pei's avatar Huang Pei Committed by Greg Kroah-Hartman
Browse files

MIPS: add missing MSACSR and upper MSA initialization



[ Upstream commit bb06748207cfb1502d11b90325eba7f8c44c9f02 ]

In cc97ab23 ("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: cc97ab23 ("MIPS: Simplify FP context initialization")
Signed-off-by: default avatarHuang Pei <huangpei@loongson.cn>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 612e2b7e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment