]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: compat: Add CNTVCT trap handler
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 27 Sep 2018 16:15:32 +0000 (17:15 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 1 Oct 2018 12:36:01 +0000 (13:36 +0100)
commit4cda4af9511271b0e736bf76627d738a34530942
tree58bcb8f04ccd27b425c6dd86b3aae1e440d7c121
parent0c46823d9a239487988f43efe99dffd8903fd315
arm64: compat: Add CNTVCT trap handler

Since people seem to make a point in breaking the userspace visible
counter, we have no choice but to trap the access. We already do this
for 64bit userspace, but this is lacking for compat. Let's provide
the required handler.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/esr.h
arch/arm64/kernel/traps.c