linux/arch/arm64/include/asm/vdso
Marc Zyngier 97884ca8c2 arm64: Introduce a way to disable the 32bit vdso
We have a class of errata (grouped under the ARM64_WORKAROUND_1418040
banner) that force the trapping of counter access from 32bit EL0.

We would normally disable the whole vdso for such defect, except that
it would disable it for 64bit userspace as well, which is a shame.

Instead, add a new vdso_clock_mode, which signals that the vdso
isn't usable for compat tasks.  This gets checked in the new
vdso_clocksource_ok() helper, now provided for the 32bit vdso.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200706163802.1836732-2-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
2020-07-08 21:57:51 +01:00
..
clocksource.h arm64: Introduce a way to disable the 32bit vdso 2020-07-08 21:57:51 +01:00
compat_barrier.h arm64: vdso32: Detect binutils support for dmb ishld 2019-10-07 11:07:16 +01:00
compat_gettimeofday.h arm64: Introduce a way to disable the 32bit vdso 2020-07-08 21:57:51 +01:00
gettimeofday.h arm64: vdso: Include common headers in the vdso library 2020-03-21 15:24:01 +01:00
processor.h arm64: Introduce asm/vdso/processor.h 2020-03-21 15:24:01 +01:00
vsyscall.h ARM/arm64: vdso: Use common vdso clock mode storage 2020-02-17 20:12:16 +01:00