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)
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>
1  2 
arch/riscv/include/asm/pgtable.h

Simple merge