Re: [PATCH 3/3] riscv: mm: Do not restrict mmap address based on hint

2024-08-30 Thread Levi Zim
On 2024-08-27 00:36, Charlie Jenkins wrote: 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 Fixes: b5b4287accd7 ("riscv: mm: Use hint address in mmap if avail

Re: [PATCH 3/3] riscv: mm: Do not restrict mmap address based on hint

2024-08-26 Thread Yangyu Chen
> On Aug 27, 2024, at 00:36, Charlie Jenkins wrote: > > 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. > Fixing in this way will break userspace on Sv57 machines as some issues ment

[PATCH 3/3] riscv: mm: Do not restrict mmap address based on hint

2024-08-26 Thread Charlie Jenkins
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 Fixes: b5b4287accd7 ("riscv: mm: Use hint address in mmap if available") Fixes: add2cc6b6515 ("RISC-V: mm: Restr