Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2019-09-06 12:11:18 +0200
committerMichal Suchanek <msuchanek@suse.de>2019-09-06 12:13:49 +0200
commit8fb3facd6b67e2a56c42c4b8b161113e0fedd1d4 (patch)
treefb0a84ca6f3693c71ebb94ffb03d4878f0abd8b4
parentb0a5161c7c4f0e4ee3af8f003ba555bfe42e29cd (diff)
powerpc/tm: Fix FP/VMX unavailable exceptions inside a
transaction (CVE-2019-15030 bsc#1149713). suse-commit: 9d6b4a830b5c685010fff10c0af7013a77c52fcb
-rw-r--r--arch/powerpc/kernel/process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index ec1c2330d2ce..535b1c561be4 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -495,13 +495,14 @@ void giveup_all(struct task_struct *tsk)
if (!tsk->thread.regs)
return;
+ check_if_tm_restore_required(tsk);
+
usermsr = tsk->thread.regs->msr;
if ((usermsr & msr_all_available) == 0)
return;
msr_check_and_set(msr_all_available);
- check_if_tm_restore_required(tsk);
#ifdef CONFIG_PPC_FPU
if (usermsr & MSR_FP)