]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: mm: Do not restrict mmap address based on hint
authorCharlie Jenkins <charlie@rivosinc.com>
Mon, 26 Aug 2024 16:36:47 +0000 (09:36 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 29 Aug 2024 13:03:29 +0000 (06:03 -0700)
commit2116988d5372aec51f8c4fb85bf8e305ecda47a0
tree7460dbca08a8028a8df2024797be83a2f433a752
parent83dae72ac0382693540a055ec6210dd3691a8df6
riscv: mm: Do not restrict mmap address based on hint

The hint address should not forcefully restrict the addresses returned
by mmap as this causes mmap to report ENOMEM when there is memory still
available.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Fixes: b5b4287accd7 ("riscv: mm: Use hint address in mmap if available")
Fixes: add2cc6b6515 ("RISC-V: mm: Restrict address space for sv39,sv48,sv57")
Closes: https://lore.kernel.org/linux-kernel/ZbxTNjQPFKBatMq+@ghost/T/#mccb1890466bf5a488c9ce7441e57e42271895765
Link: https://lore.kernel.org/r/20240826-riscv_mmap-v1-3-cd8962afe47f@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/processor.h