diff options
author | Huang Pei <huangpei@loongson.cn> | 2020-09-01 14:53:09 +0800 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2020-09-03 12:00:03 +0200 |
commit | bb06748207cfb1502d11b90325eba7f8c44c9f02 (patch) | |
tree | 71e7c8aa6a0d3ac586befa5c3b23398aa7ce809d /kernel | |
parent | a231995700c392c0807da95deea231b23fc51a3c (diff) | |
download | linux-bb06748207cfb1502d11b90325eba7f8c44c9f02.tar.bz2 |
MIPS: add missing MSACSR and upper MSA initialization
In cc97ab235f3f ("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: cc97ab235f3f ("MIPS: Simplify FP context initialization")
Signed-off-by: Huang Pei <huangpei@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions