kernel_samsung_a53x/arch/riscv/include/asm
Samuel Holland eee8b3feb5 riscv: Fix TASK_SIZE on 64-bit NOMMU
[ Upstream commit 6065e736f82c817c9a597a31ee67f0ce4628e948 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 11:32:40 +01:00
..
vdso
asm-offsets.h
asm-prototypes.h
asm.h
atomic.h
barrier.h
bitops.h
bug.h
cache.h
cacheflush.h
cacheinfo.h
clint.h
clocksource.h
cmpxchg.h
cpu_ops.h
csr.h
current.h
delay.h
efi.h
elf.h
fence.h
fixmap.h
ftrace.h
futex.h
gdb_xml.h
hugetlb.h
hwcap.h
image.h
io.h
irq.h
irq_work.h
irqflags.h
jump_label.h
kasan.h
Kbuild
kdebug.h
kgdb.h
kprobes.h
linkage.h
mmio.h
mmiowb.h
mmu.h
mmu_context.h
module.h
module.lds.h
page.h
parse_asm.h
patch.h
pci.h
perf_event.h
pgalloc.h
pgtable-32.h
pgtable-64.h
pgtable-bits.h
pgtable.h riscv: Fix TASK_SIZE on 64-bit NOMMU 2024-11-19 11:32:40 +01:00
processor.h
ptdump.h
ptrace.h
sbi.h
seccomp.h
sections.h
set_memory.h
smp.h
soc.h
sparsemem.h
spinlock.h
spinlock_types.h
stackprotector.h
string.h
switch_to.h
syscall.h
thread_info.h
timex.h
tlb.h
tlbflush.h
uaccess.h
unistd.h
vdso.h
vermagic.h
vmalloc.h
word-at-a-time.h