]> git.baikalelectronics.ru Git - kernel.git/commit
s390: fix floating point register corruption
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 9 Sep 2015 11:15:00 +0000 (13:15 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 17 Sep 2015 11:43:41 +0000 (13:43 +0200)
commitad2f9d364ee020a47f458d05530084da27af58c4
treecf21220ae6b9ef46f02ffc636dd2b660a3d147c8
parent26b95f6869079e41904ae45f41c543b4bb88f3d7
s390: fix floating point register corruption

The critical section cleanup code misses to add the offset of the
thread_struct to the task address.
Therefore, if the critical section code gets executed, it may corrupt
the task struct or restore the contents of the floating point registers
from the wrong memory location.
Fixes d83643a496 "s390/kernel: remove save_fpu_regs() parameter and use
__LC_CURRENT instead".

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/entry.S