aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/memstick
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2017-11-20 12:38:44 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2017-12-05 07:51:08 +0100
commitfbbd7f1a51965b50dd12924841da0d478f3da71b (patch)
tree6d290a0620b413c21eae4366cfe0c3082d329d42 /drivers/memstick
parents390/dasd: remove 'struct timespec' usage (diff)
downloadlinux-dev-fbbd7f1a51965b50dd12924841da0d478f3da71b.tar.xz
linux-dev-fbbd7f1a51965b50dd12924841da0d478f3da71b.zip
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/memstick')
0 files changed, 0 insertions, 0 deletions