linux-sg2042/arch/s390/kernel/vdso64
Heiko Carstens 5a5525b048 s390/vdso: fix getcpu
getcpu reads the required values for cpu and node with two
instructions. This might lead to an inconsistent result if user space
gets preempted and migrated to a different CPU between the two
instructions.

Fix this by using just a single instruction to read both values at
once.

This is currently rather a theoretical bug, since there is no real
NUMA support available (except for NUMA emulation).

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2019-11-30 10:52:44 +01:00
..
.gitignore s390: add various .gitignore files. 2012-05-16 14:42:41 +02:00
Makefile s390/vdso: drop unnecessary cc-ldoption 2019-05-03 17:17:58 +02:00
clock_getres.S s390/vdso: revise CFI annotations of vDSO functions 2017-12-13 10:51:36 +01:00
clock_gettime.S s390/vdso: correct CFI annotations of vDSO functions 2018-09-20 13:20:29 +02:00
getcpu.S s390/vdso: fix getcpu 2019-11-30 10:52:44 +01:00
gettimeofday.S s390/vdso: correct CFI annotations of vDSO functions 2018-09-20 13:20:29 +02:00
note.S s390: add a few more SPDX identifiers 2017-12-05 07:51:09 +01:00
vdso64.lds.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vdso64_wrapper.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00