]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
arm64: Handle trapped DC CVAP
authorRobin Murphy <robin.murphy@arm.com>
Tue, 25 Jul 2017 10:55:41 +0000 (11:55 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 27 Feb 2018 16:31:58 +0000 (11:31 -0500)
commit74aae8ed10d8b500046e2829313db8263fc08ee8
treee8b381ce2564cf1a4badd60a2accd9a73945b298
parenta7cf300541cf85b8bdc4732fb89acf8b1cdfce09
arm64: Handle trapped DC CVAP

Cache clean to PoP is subject to the same access controls as to PoC, so
if we are trapping userspace cache maintenance with SCTLR_EL1.UCI, we
need to be prepared to handle it. To avoid getting into complicated
fights with binutils about ARMv8.2 options, we'll just cheat and use the
raw SYS instruction rather than the 'proper' DC alias.

Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit e1bc5d1b8e0547c258e65dd97a03560f4d69e635)

CVE-2017-5753
CVE-2017-5715
CVE-2017-5754

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/arm64/include/asm/esr.h
arch/arm64/kernel/traps.c