linux-brain/arch/s390/include
Heiko Carstens 47273f0d39 s390: always save and restore all registers on context switch
commit fbbd7f1a51 upstream.

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.

Fixes: fdb6d070ef ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-16 16:25:46 +01:00
..
asm s390: always save and restore all registers on context switch 2017-12-16 16:25:46 +01:00
uapi/asm s390: export header for CLP ioctl 2016-09-20 14:26:35 +02:00