]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: arch_timer: Disable the compat vdso for cores affected by ARM64_WORKAROUND_1418040
authorMarc Zyngier <maz@kernel.org>
Mon, 6 Jul 2020 16:38:01 +0000 (17:38 +0100)
committerWill Deacon <will@kernel.org>
Wed, 8 Jul 2020 20:57:51 +0000 (21:57 +0100)
commit493ab3e37977c328bee0c0b5db5a95d3871d4e2a
tree372b89e8c963ab143b3ce9fe90a4b3156f0de9c4
parenta029692a841f50707699733cd33fb6120a170dea
arm64: arch_timer: Disable the compat vdso for cores affected by ARM64_WORKAROUND_1418040

ARM64_WORKAROUND_1418040 requires that AArch32 EL0 accesses to
the virtual counter register are trapped and emulated by the kernel.
This makes the vdso pretty pointless, and in some cases livelock
prone.

Provide a workaround entry that limits the vdso to 64bit tasks.

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-4-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/clocksource/arm_arch_timer.c