linux_dsm_epyc7002/arch/nios2/kernel
Andreas Oetken 1fe02a86fa nios2: fixed broken sys_clone syscall
[ Upstream commit 9abcfcb20320e8f693e89d86573b58e6289931cb ]

The tls pointer must be pushed on the stack prior to calling nios2_clone
as it is the 5th function argument. Prior handling of the tls pointer was
done inside former called function copy_thread_tls using the r8 register
from the current_pt_regs directly. This was a bad design and resulted in
the current bug introduced in 04bd52fb.

Fixes: 04bd52fb ("nios2: enable HAVE_COPY_THREAD_TLS, switch to kernel_clone_args")
Signed-off-by: Andreas Oetken <andreas.oetken@siemens.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:38:16 +01:00
..
.gitignore
asm-offsets.c
cpuinfo.c
entry.S nios2: fixed broken sys_clone syscall 2021-03-04 11:38:16 +01:00
head.S
insnemu.S
irq.c
kgdb.c
Makefile
misaligned.c
module.c
nios2_ksyms.c
process.c sched/idle: Fix arch_cpu_idle() vs tracing 2020-11-24 16:47:35 +01:00
prom.c
ptrace.c nios2: switch to ->regset_get() 2020-07-27 14:31:11 -04:00
setup.c
signal.c tracehook: clear TIF_NOTIFY_RESUME in tracehook_notify_resume() 2020-10-17 15:04:36 -06:00
sys_nios2.c Take mmap lock in cacheflush syscall 2021-03-04 11:38:16 +01:00
syscall_table.c
time.c
traps.c
vmlinux.lds.S vmlinux.lds.h: Split ELF_DETAILS from STABS_DEBUG 2020-09-01 09:50:35 +02:00