summaryrefslogtreecommitdiff
path: root/arch/arm64/mm/Makefile
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2017-01-11 00:35:50 +0300
committerWill Deacon <will.deacon@arm.com>2017-01-12 18:05:39 +0300
commitec6d06efb0bac6cd92846e42d1afe5b98b57e7c2 (patch)
treea09267b07514bc3136eec83eb7a40ff4d22b2de9 /arch/arm64/mm/Makefile
parent2077be6783b5936c3daa838d8addbb635667927f (diff)
downloadlinux-ec6d06efb0bac6cd92846e42d1afe5b98b57e7c2.tar.xz
arm64: Add support for CONFIG_DEBUG_VIRTUAL
x86 has an option CONFIG_DEBUG_VIRTUAL to do additional checks on virt_to_phys calls. The goal is to catch users who are calling virt_to_phys on non-linear addresses immediately. This inclues callers using virt_to_phys on image addresses instead of __pa_symbol. As features such as CONFIG_VMAP_STACK get enabled for arm64, this becomes increasingly important. Add checks to catch bad virt_to_phys usage. Reviewed-by: Mark Rutland <mark.rutland@arm.com> Tested-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/mm/Makefile')
-rw-r--r--arch/arm64/mm/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/mm/Makefile b/arch/arm64/mm/Makefile
index e703fb9defad..9b0ba191e48e 100644
--- a/arch/arm64/mm/Makefile
+++ b/arch/arm64/mm/Makefile
@@ -6,6 +6,8 @@ obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
obj-$(CONFIG_ARM64_PTDUMP_CORE) += dump.o
obj-$(CONFIG_ARM64_PTDUMP_DEBUGFS) += ptdump_debugfs.o
obj-$(CONFIG_NUMA) += numa.o
+obj-$(CONFIG_DEBUG_VIRTUAL) += physaddr.o
+KASAN_SANITIZE_physaddr.o += n
obj-$(CONFIG_KASAN) += kasan_init.o
KASAN_SANITIZE_kasan_init.o := n