mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 07:35:20 +07:00
ec6d06efb0
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>
14 lines
477 B
Makefile
14 lines
477 B
Makefile
obj-y := dma-mapping.o extable.o fault.o init.o \
|
|
cache.o copypage.o flush.o \
|
|
ioremap.o mmap.o pgd.o mmu.o \
|
|
context.o proc.o pageattr.o
|
|
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
|