android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andrey Konovalov 12002aa2e7 arm64: kasan: fix page_alloc tagging with DEBUG_VIRTUAL
commit 86c83365ab76e4b43cedd3ce07a07d32a4dc79ba upstream.

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: 2813b9c029 ("kasan, mm, arm64: tag non slab memory allocated via pagealloc")
Cc: <[email protected]>
Signed-off-by: Andrey Konovalov <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Link: https://lore.kernel.org/r/4b55b35202706223d3118230701c6a59749d9b72.1615219501.git.andreyknvl@google.com
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-03-17 17:03:47 +01:00
..
alpha
arc arch/arc: add copy_user_page() to <asm/page.h> to fix build error on ARC 2021-01-19 18:26:15 +01:00
arm Xen/gnttab: handle p2m update errors on a per-slot basis 2021-03-07 12:20:49 +01:00
arm64 arm64: kasan: fix page_alloc tagging with DEBUG_VIRTUAL 2021-03-17 17:03:47 +01:00
c6x
csky
h8300 h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 2021-02-17 10:35:18 +01:00
hexagon
ia64
m68k
microblaze
mips MIPS: Drop 32-bit asm string functions 2021-03-07 12:20:43 +01:00
nds32
nios2
openrisc
parisc parisc: Bump 64-bit IRQ stack size to 64 KB 2021-03-07 12:20:47 +01:00
powerpc powerpc/64: Fix stack trace not displaying final frame 2021-03-17 17:03:43 +01:00
riscv riscv: virt_addr_valid must check the address belongs to linear mapping 2021-02-17 10:35:16 +01:00
s390 s390/smp: __smp_rescan_cpus() - move cpumask away from stack 2021-03-17 17:03:45 +01:00
sh sh: dma: fix kconfig dependency for G2_DMA 2021-01-27 11:47:52 +01:00
sparc sparc64: Use arch_validate_flags() to validate ADI flag 2021-03-17 17:03:43 +01:00
um um: mm: check more comprehensively for stub changes 2021-03-04 10:26:50 +01:00
unicore32
x86 Xen/gnttab: handle p2m update errors on a per-slot basis 2021-03-07 12:20:49 +01:00
xtensa xtensa: uaccess: Add missing __user to strncpy_from_user() prototype 2020-12-02 08:49:49 +01:00
.gitignore
Kconfig Revert: "ring-buffer: Remove HAVE_64BIT_ALIGNED_ACCESS" 2020-12-30 11:51:47 +01:00