linux_dsm_epyc7002/arch/arm64/kernel/vdso
Will Deacon 75a19a0202 arm64: arch_timer: Ensure counter register reads occur with seqlock held
When executing clock_gettime(), either in the vDSO or via a system call,
we need to ensure that the read of the counter register occurs within
the seqlock reader critical section. This ensures that updates to the
clocksource parameters (e.g. the multiplier) are consistent with the
counter value and therefore avoids the situation where time appears to
go backwards across multiple reads.

Extend the vDSO logic so that the seqlock critical section covers the
read of the counter register as well as accesses to the data page. Since
reads of the counter system registers are not ordered by memory barrier
instructions, introduce dependency ordering from the counter read to a
subsequent memory access so that the seqlock memory barriers apply to
the counter access in both the vDSO and the system call paths.

Cc: <stable@vger.kernel.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Tested-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Link: https://lore.kernel.org/linux-arm-kernel/alpine.DEB.2.21.1902081950260.1662@nanos.tec.linutronix.de/
Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2019-04-30 11:04:23 +01:00
..
.gitignore arm64: drop non-existing vdso-offsets.h from .gitignore 2017-03-30 19:29:30 +01:00
gen_vdso_offsets.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
gettimeofday.S arm64: arch_timer: Ensure counter register reads occur with seqlock held 2019-04-30 11:04:23 +01:00
Makefile arm64: vdso: use $(LD) instead of $(CC) to link VDSO 2019-04-11 18:15:02 +01:00
note.S arm64: Add build salt to the vDSO 2018-07-18 01:18:05 +09:00
sigreturn.S arm64: VDSO support 2012-09-17 13:42:09 +01:00
vdso.lds.S arm64: vdso: move data page before code pages 2014-07-17 16:18:57 +01:00
vdso.S arm64: vdso: Mark vDSO code as read-only 2016-02-16 18:20:23 +00:00