nuttx/arch
Ville Juven 622e5b26b3 riscv/syscall: Fix fork() system call
When executing fork() via a system call, the parent's stack gets corrupted
by the child, as during exception return the child loads the parent's
stack pointer from the context save area.

This happens because the full parent stack (including what has been pushed
during the system call) is copied to the child. What should be copied, is
only the user stack of the parent (the kernel stack is not interesting).

Fix this by only copying the parent's user stack to the child; and make
the child return directly to userspace (not via dispatch_syscall).
2024-08-07 02:41:14 +08:00
..
arm arch/stm32h7: add defines for USART clock selection 2024-08-06 14:31:21 +08:00
arm64 zynq-mpsoc/zcu111: independent JTAG configs from normal nsh configs 2024-07-30 12:41:30 -03:00
avr at32uc3a0: Initial work for SimpleMachines' Mizar32-A 2024-07-15 20:46:41 +08:00
ceva Revert "irq: remove restore_critical_section in irq" 2024-07-02 15:46:20 +08:00
dummy
hc sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
mips spin_lock: inline spin_lock 2024-07-15 02:29:30 +08:00
misoc sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
or1k sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
renesas sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
risc-v riscv/syscall: Fix fork() system call 2024-08-07 02:41:14 +08:00
sim mm/mm.h: add mm_free_delaylist interface 2024-08-03 01:30:04 +08:00
sparc spin_lock: inline spin_lock 2024-07-15 02:29:30 +08:00
tricore tricore/cmake: add support of cmake build for tricore 2024-07-18 13:40:49 +08:00
x86 sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
x86_64 arch/x86_64: fix build break if disable CONFIG_SPINLOCK 2024-08-05 16:20:47 +08:00
xtensa espressif: Update HAL version for all Espressif SoCs 2024-08-01 16:04:53 +08:00
z16 sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
z80 sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
CMakeLists.txt
Kconfig libc/x86_64: port string functions from bionic 2024-07-02 23:59:18 +08:00