diff options
author | Marc Zyngier <maz@kernel.org> | 2020-07-06 17:38:02 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-07-08 22:07:19 +0100 |
commit | dc802f2bc0208f4abca420705a860c5175db4bee (patch) | |
tree | 54624c34689321f23e0d19637a891199a6cda0db /lib/test_overflow.c | |
parent | 4b661d6133c5d3a7c9aca0b4ee5a78c7766eff3f (diff) |
arm64: Rework ARM_ERRATUM_1414080 handling
The current handling of erratum 1414080 has the side effect that
cntkctl_el1 can get changed for both 32 and 64bit tasks.
This isn't a problem so far, but if we ever need to mitigate another
of these errata on the 64bit side, we'd better keep the messing with
cntkctl_el1 local to 32bit tasks.
For that, make sure that on entering the kernel from a 32bit tasks,
userspace access to cntvct gets enabled, and disabled returning to
userspace, while it never gets changed for 64bit tasks.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20200706163802.1836732-5-maz@kernel.org
[will: removed branch instructions per Mark's review comments]
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions