linux/arch/powerpc/mm
Benjamin Gray 295454eda9 powerpc64/kasan: Pass virtual addresses to kasan_init_phys_region()
The kasan_init_phys_region() function maps shadow pages necessary for
the ranges of the linear map backed by physical pages. Currently
kasan_init_phys_region() is being passed physical addresses, but
kasan_mem_to_shadow() expects virtual addresses.

It works right now because the lower bits (12:64) of the
kasan_mem_to_shadow() calculation are the same for the real and virtual
addresses, so the actual PTE value is the same in the end. But virtual
addresses are the intended input, so fix it.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240212045020.70364-1-bgray@linux.ibm.com
2024-05-08 00:28:16 +10:00
..
book3s32 powerpc: Handle error in mark_rodata_ro() and mark_initmem_nx() 2024-03-17 13:33:21 +11:00
book3s64 powerpc/Makefile: Remove bits related to the previous use of -mcmodel=large 2024-05-07 23:48:45 +10:00
kasan powerpc64/kasan: Pass virtual addresses to kasan_init_phys_region() 2024-05-08 00:28:16 +10:00
nohash powerpc: Fix typos 2024-05-08 00:21:30 +10:00
ptdump powerpc/ptdump: Fix walk_vmemmap() to also print first vmemmap entry 2024-04-18 15:35:40 +10:00
cacheflush.c powerpc: Fix typos 2024-05-08 00:21:30 +10:00
copro_fault.c powerpc/mm: convert coprocessor fault to lock_mm_and_find_vma() 2023-06-24 14:12:58 -07:00
dma-noncoherent.c dma-mapping: merge <linux/dma-noncoherent.h> into <linux/dma-map-ops.h> 2020-10-06 07:07:06 +02:00
drmem.c powerpc: Stop using of_root 2024-03-03 22:20:29 +11:00
fault.c arch/mm/fault: fix major fault accounting when retrying under per-VMA lock 2023-12-29 11:06:49 -08:00
hugetlbpage.c hugetlb: parallelize 1G hugetlb initialization 2024-03-06 13:04:17 -08:00
init-common.c powerpc/mm: Fix null-pointer dereference in pgtable_cache_add 2023-12-13 22:13:41 +11:00
init_32.c powerpc: Untangle fixmap.h and pgtable.h and mmu.h 2023-10-19 17:12:44 +11:00
init_64.c powerpc updates for 6.6 2023-08-31 12:43:10 -07:00
ioremap.c powerpc/nohash: Replace pte_user() by pte_read() 2023-10-19 17:12:46 +11:00
ioremap_32.c powerpc: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:35 -07:00
ioremap_64.c powerpc: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:35 -07:00
maccess.c powerpc/inst: Optimise copy_inst_from_kernel_nofault() 2021-12-09 22:41:21 +11:00
Makefile powerpc/Makefile: Remove bits related to the previous use of -mcmodel=large 2024-05-07 23:48:45 +10:00
mem.c powerpc: Mark memory_limit as initdata 2024-04-30 21:55:26 +10:00
mmu_context.c powerpc: Add mm_cpumask warning when context switching 2023-08-02 22:22:19 +10:00
mmu_decl.h powerpc: Handle error in mark_rodata_ro() and mark_initmem_nx() 2024-03-17 13:33:21 +11:00
numa.c powerpc: Stop using of_root 2024-03-03 22:20:29 +11:00
pageattr.c powerpc: Don't ignore errors from set_memory_{n}p() in __kernel_map_pages() 2024-03-03 22:18:45 +11:00
pgtable-frag.c powerpc: convert various functions to use ptdescs 2023-08-21 13:37:54 -07:00
pgtable.c mm/powerpc: replace pXd_is_leaf() with pXd_leaf() 2024-03-06 13:04:19 -08:00
pgtable_32.c powerpc: Handle error in mark_rodata_ro() and mark_initmem_nx() 2024-03-17 13:33:21 +11:00
pgtable_64.c mm/treewide: replace pmd_large() with pmd_leaf() 2024-03-06 13:04:19 -08:00