diff options
author | Samuel Holland <samuel.holland@sifive.com> | 2024-02-26 16:34:46 -0800 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2024-04-09 11:39:37 -0700 |
commit | 6065e736f82c817c9a597a31ee67f0ce4628e948 (patch) | |
tree | d178d6e485b566a1309816cdc715129025553f66 /kernel | |
parent | 6613476e225e090cc9aad49be7fa504e290dd33d (diff) |
riscv: Fix TASK_SIZE on 64-bit NOMMU
On NOMMU, userspace memory can come from anywhere in physical RAM. The
current definition of TASK_SIZE is wrong if any RAM exists above 4G,
causing spurious failures in the userspace access routines.
Fixes: 6bd33e1ece52 ("riscv: add nommu support")
Fixes: c3f896dcf1e4 ("mm: switch the test_vmalloc module to use __vmalloc_node")
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Bo Gan <ganboing@gmail.com>
Link: https://lore.kernel.org/r/20240227003630.3634533-2-samuel.holland@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions