BACKPORT: arm64: Add CNTVCT_EL0 trap handler
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 1 Feb 2017 11:48:58 +0000 (11:48 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 9 Jan 2018 12:35:07 +0000 (13:35 +0100)
commitbd3c67ac4fe8be040ac4cbcafdc4731b52dc1321
treea271bf96afd198b817415396ae97f4cec7891cc8
parent64afad041d007eed07a92a7f8794dd62f7c8f2bd
BACKPORT: arm64: Add CNTVCT_EL0 trap handler

Since people seem to make a point in breaking the userspace visible
counter, we have no choice but to trap the access. Add the required
handler.

Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
(cherry picked from commit 6126ce0588eb5a0752d5c8b5796a7fca324fd887)

Change-Id: I0705f47c85a78040df38df18f51a4a22500b904d
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
arch/arm64/include/asm/esr.h
arch/arm64/kernel/entry.S
arch/arm64/kernel/traps.c