Commit 6065e73
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: 6bd33e1 ("riscv: add nommu support")
Fixes: c3f896d ("mm: switch the test_vmalloc module to use __vmalloc_node")
Signed-off-by: Samuel Holland <[email protected]>
Reviewed-by: Jisheng Zhang <[email protected]>
Reviewed-by: Bo Gan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>1 parent 6613476 commit 6065e73
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
885 | | - | |
| 885 | + | |
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
| |||
0 commit comments