kernel_optimize_test/arch/nios2
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
..
boot
configs
include unify generic instances of csum_partial_copy_nocheck() 2020-08-20 15:45:14 -04:00
kernel nios2: fixed broken sys_clone syscall 2021-03-04 11:38:16 +01:00
lib
mm mm/nios2: use general page fault accounting 2020-08-12 10:58:03 -07:00
platform
Kconfig uaccess: add infrastructure for kernel builds with set_fs() 2020-09-08 22:21:32 -04:00
Kconfig.debug
Makefile