diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2017-11-20 12:38:44 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-12-05 07:51:08 +0100 |
commit | fbbd7f1a51965b50dd12924841da0d478f3da71b (patch) | |
tree | 6d290a0620b413c21eae4366cfe0c3082d329d42 /drivers/s390/Makefile | |
parent | bd7a9b3757895c3a2fd64b3f12e438d9190c83d9 (diff) | |
download | linux-fbbd7f1a51965b50dd12924841da0d478f3da71b.tar.bz2 |
s390: always save and restore all registers on context switch
The switch_to() macro has an optimization to avoid saving and
restoring register contents that aren't needed for kernel threads.
There is however the possibility that a kernel thread execve's a user
space program. In such a case the execve'd process can partially see
the contents of the previous process, which shouldn't be allowed.
To avoid this, simply always save and restore register contents on
context switch.
Cc: <stable@vger.kernel.org> # v2.6.37+
Fixes: fdb6d070effba ("switch_to: dont restore/save access & fpu regs for kernel threads")
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/Makefile')
0 files changed, 0 insertions, 0 deletions