acrn-kernel/arch/riscv/mm
Alexandre Ghiti 49a0a37315
riscv: Check the virtual alignment before choosing a map size
We used to only check the alignment of the physical address to decide
which mapping would fit for a certain region of the linear mapping, but
it is not enough since the virtual address must also be aligned, so check
that too.

Fixes: 3335068f87 ("riscv: Use PUD/P4D/PGD pages for the linear mapping")
Reported-by: Song Shuai <songshuaishuai@tinylab.org>
Link: https://lore.kernel.org/linux-riscv/tencent_7C3B580B47C1B17C16488EC1@qq.com/
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20230607125851.63370-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2023-06-07 07:14:00 -07:00
..
Makefile riscv: Introduce CONFIG_RELOCATABLE 2023-04-19 07:46:30 -07:00
cacheflush.c RISC-V Patches for the 6.4 Merge Window, Part 1 2023-04-28 16:55:39 -07:00
context.c riscv: mm: Fix incorrect ASID argument when flushing TLB 2023-03-21 15:55:19 -07:00
dma-noncoherent.c
extable.c
fault.c RISC-V Patches for the 6.4 Merge Window, Part 1 2023-04-28 16:55:39 -07:00
hugetlbpage.c riscv: Implement missing huge_ptep_get 2023-06-01 18:15:37 -07:00
init.c riscv: Check the virtual alignment before choosing a map size 2023-06-07 07:14:00 -07:00
kasan_init.c riscv: Rework kasan population functions 2023-04-19 07:24:50 -07:00
pageattr.c RISC-V: mm: Enable huge page support to kernel_page_present() function 2023-04-29 11:25:12 -07:00
pgtable.c
physaddr.c riscv: Use PUD/P4D/PGD pages for the linear mapping 2023-04-18 20:43:04 -07:00
pmem.c
ptdump.c riscv: Fix ptdump when KASAN is enabled 2023-04-19 07:24:53 -07:00
tlbflush.c RISC-V: Use IPIs for remote TLB flush when possible 2023-04-08 11:26:24 +01:00