summaryrefslogtreecommitdiffstats
path: root/kernel/utsname.c
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2021-03-08 17:10:23 +0100
committerWill Deacon <will@kernel.org>2021-03-09 13:19:21 +0000
commit86c83365ab76e4b43cedd3ce07a07d32a4dc79ba (patch)
tree2f343c9f2b959a71db2a72d05e5c79dd46614e59 /kernel/utsname.c
parent093bbe211ea566fa828536275e09ee9d75df1f25 (diff)
downloadlinux-86c83365ab76e4b43cedd3ce07a07d32a4dc79ba.tar.bz2
arm64: kasan: fix page_alloc tagging with DEBUG_VIRTUAL
When CONFIG_DEBUG_VIRTUAL is enabled, the default page_to_virt() macro implementation from include/linux/mm.h is used. That definition doesn't account for KASAN tags, which leads to no tags on page_alloc allocations. Provide an arm64-specific definition for page_to_virt() when CONFIG_DEBUG_VIRTUAL is enabled that takes care of KASAN tags. Fixes: 2813b9c02962 ("kasan, mm, arm64: tag non slab memory allocated via pagealloc") Cc: <stable@vger.kernel.org> Signed-off-by: Andrey Konovalov <andreyknvl@google.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Link: https://lore.kernel.org/r/4b55b35202706223d3118230701c6a59749d9b72.1615219501.git.andreyknvl@google.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'kernel/utsname.c')
0 files changed, 0 insertions, 0 deletions