Files
linux/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 <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
2019-11-30 10:52:44 +01:00
..
2012-05-16 14:42:41 +02:00
2019-11-30 10:52:44 +01:00
2017-12-05 07:51:09 +01:00