kernel_optimize_test/arch
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
..
alpha
arc
arm ARM: 9065/1: OABI compat: fix build when EPOLL is not enabled 2021-03-04 11:38:10 +01:00
arm64 arm64: dts: qcom: qrb5165-rb5: fix pm8009 regulators 2021-03-04 11:37:53 +01:00
c6x
csky
h8300
hexagon
ia64
m68k
microblaze
mips MIPS: Compare __SYNC_loongson3_war against 0 2021-03-04 11:37:41 +01:00
nds32
nios2 nios2: fixed broken sys_clone syscall 2021-03-04 11:38:16 +01:00
openrisc
parisc
powerpc powerpc/kuap: Restore AMR after replaying soft interrupts 2021-03-04 11:38:06 +01:00
riscv
s390
sh
sparc sparc: fix led.c driver when PROC_FS is not enabled 2021-03-04 11:38:10 +01:00
um
x86 KVM: x86: Restore all 64 bits of DR6 and DR7 during RSM on x86-64 2021-03-04 11:37:48 +01:00
xtensa
.gitignore
Kconfig