Patch "powerpc/kernel: Initialize load_tm on task creation" has been added to the 4.11-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
powerpc/kernel: Initialize load_tm on task creation
to the 4.11-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
powerpc-kernel-initialize-load_tm-on-task-creation.patch
and it can be found in the queue-4.11 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
7f22ced4377628074e2ac25f41a88f98eb3b03f1Mon Sep 17 00:00:00 2001
From: Breno Leitao <[email protected]>
Date: Mon, 5 Jun 2017 11:40:59 -0300
Subject: powerpc/kernel: Initialize load_tm on task creation
From: Breno Leitao <[email protected]>
commit 7f22ced4377628074e2ac25f41a88f98eb3b03f1 upstream.
Currently tsk->thread.load_tm is not initialized in the task creation and can contain garbage on a new task.
This is an undesired behaviour, since it affects the timing to enable and disable the transactional memory laziness (disabling and enabling the MSR TM bit, which affects TM reclaim and recheckpoint in the scheduling process).
--- arch/powerpc/kernel/process.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/kernel/process.c +1 -0
@@ -1687,6 +1687,7 @@ void start_thread(struct pt_regs *regs, current->thread.tm_tfhar =0 ; current->thread.tm_texasr =0 ; current->thread.tm_tfiar =0 ; + current->thread.load_tm =0 ;#endif /* CONFIG_PPC_TRANSACTIONAL_MEM */ }EXPORT_SYMBOL (start_thread);
Patches currently in stable-queue which might be from [email protected] are
queue-4.11/powerpc-kernel-fix-fp-and-vector-register-restoration.patch queue-4.11/powerpc-kernel-initialize-load_tm-on-task-creation.patch