diff options
author | Andreas Oetken <andreas.oetken@siemens.com> | 2021-02-19 07:41:03 +0100 |
---|---|---|
committer | Ley Foon Tan <ley.foon.tan@intel.com> | 2021-02-19 08:02:08 +0100 |
commit | 9abcfcb20320e8f693e89d86573b58e6289931cb (patch) | |
tree | ad794fe45d0c5ce36849ccf39c46565e2548dcca /scripts/Makefile.package | |
parent | Take mmap lock in cacheflush syscall (diff) | |
download | linux-9abcfcb20320e8f693e89d86573b58e6289931cb.tar.xz linux-9abcfcb20320e8f693e89d86573b58e6289931cb.zip |
nios2: fixed broken sys_clone syscall
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>
Diffstat (limited to 'scripts/Makefile.package')
0 files changed, 0 insertions, 0 deletions