Merge patch series "riscv: mm: Fixup & Optimize COMPAT code"
authorPalmer Dabbelt <palmer@rivosinc.com>
Thu, 11 Jan 2024 16:04:38 +0000 (08:04 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 11 Jan 2024 16:04:38 +0000 (08:04 -0800)
commitd4abde52b4b116111537593e2744b3234d18808d
tree22b0dc7cd903434bf0dfa06b4c1d0631c8f4500a
parentadb1f95d388a43c4c564ef3e436f18900dde978e
parent97b7ac69be2e5a683e898f5267f659fde52efdd5
Merge patch series "riscv: mm: Fixup & Optimize COMPAT code"

guoren@kernel.org <guoren@kernel.org> says:

From: Guo Ren <guoren@linux.alibaba.com>

When the task is in COMPAT mode, the TASK_SIZE should be 2GB, so
STACK_TOP_MAX and arch_get_mmap_end must be limited to 2 GB. This series
fixes the problem made by commit: add2cc6b6515 ("RISC-V: mm: Restrict
address space for sv39,sv48,sv57") and optimizes the related coding
convention of TASK_SIZE.

* b4-shazam-merge:
  riscv: mm: Fixup compat arch_get_mmap_end
  riscv: mm: Fixup compat mode boot failure

Link: https://lore.kernel.org/r/20231222115703.2404036-1-guoren@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/pgtable.h