]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
arm64: Remove the !CONFIG_ARM64_HW_AFDBM alternative code paths
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 6 Jul 2017 10:53:08 +0000 (11:53 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 27 Feb 2018 16:32:18 +0000 (11:32 -0500)
commit727d427f63b17a1698c015e2305c37df4a2938b2
treeddfac9dca42e74e02d1f017037ad3822a2ac5897
parentbc7f9ae555a1e62f816e3eccb4388a0eaaef4126
arm64: Remove the !CONFIG_ARM64_HW_AFDBM alternative code paths

Since the pte handling for hardware AF/DBM works even when the hardware
feature is not present, make the pte accessors implementation permanent
and remove the corresponding #ifdefs. The Kconfig option is kept as it
can still be used to disable the feature at the hardware level.

Reviewed-by: Will Deacon <will.deacon@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit af29678fe785ad79e7386e97b57093482f0dd7c4)

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/pgtable.h
arch/arm64/kvm/hyp/s2-setup.c
arch/arm64/mm/fault.c