summaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm/cacheflush.h
diff options
context:
space:
mode:
authorAlexandre Ghiti <alexghiti@rivosinc.com>2023-08-08 16:07:09 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2023-08-10 18:53:17 +0300
commitd566bea4a638ff0ae824df804bc08818bace41a5 (patch)
tree37d490122bcf2f499232be06a655400f7fe13176 /arch/riscv/include/asm/cacheflush.h
parentd2402048bc8a206a56fde4bc41dd01336c7b5a21 (diff)
downloadlinux-d566bea4a638ff0ae824df804bc08818bace41a5.tar.xz
riscv: Do not allow vmap pud mappings for 3-level page table
The vmalloc_fault() path was removed and to avoid syncing the vmalloc PGD mappings, they are now preallocated. But if the kernel can use a PUD mapping (which in sv39 is actually a PGD mapping) for large vmalloc allocation, it will free the current unused preallocated PGD mapping and install a new leaf one. Since there is no sync anymore, some page tables lack this new mapping and that triggers a panic. So only allow PUD mappings for sv48 and sv57. Fixes: 7d3332be011e ("riscv: mm: Pre-allocate PGD entries for vmalloc/modules area") Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20230808130709.1502614-1-alexghiti@rivosinc.com Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include/asm/cacheflush.h')
0 files changed, 0 insertions, 0 deletions