Home Home > GIT Browse > SLE12-SP5-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2019-09-06 12:11:18 +0200
committerDenis Kirjanov <dkirjanov@suse.com>2019-09-19 16:25:37 +0300
commit096a9ea4816180e7f682dafb04ebb959963ec4bf (patch)
treec082965b20ea7e94ff222b12ebbc901eb3ac5d31
parent371a279ae43655414e2e2a0bf98b383764ca8357 (diff)
powerpc/tm: Fix FP/VMX unavailable exceptions inside a
transaction (CVE-2019-15030 bsc#1149713). suse-commit: 5cf32be7216cd179bd7701e930d6796c25e0699f
-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)