walnux/sched/task
Ville Juven 4c1b66246d env_dup: Fix copying of env between address environments
If address environments are in use, it is not possible to simply
memcpy from from one process to another. The current implementation
of env_dup does precisely this and thus, it fails at once when it is
attempted between two user processes.

The solution is to use the kernel's heap as an intermediate buffer.
This is a simple, effective and common way to do a fork().

Obviously this is not needed for kernel processes.
2022-04-21 18:38:37 +08:00
..
exit.c libc: Move pthread_cleanup to user space 2021-05-21 22:46:52 -06:00
Make.defs sched: Implement task local storage 2022-02-23 22:05:02 +08:00
spawn.h env_dup: Fix copying of env between address environments 2022-04-21 18:38:37 +08:00
task.h sched/posix_spawn: Don't insert name at the begin of argv 2021-06-15 07:32:33 -06:00
task_activate.c sched: Change the return type of nxtask_activate to void 2020-06-04 22:20:45 +01:00
task_atexit.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_cancelpt.c style/typo: fix few style and typo issues 2022-03-18 17:05:10 +01:00
task_create.c env_dup: Fix copying of env between address environments 2022-04-21 18:38:37 +08:00
task_delete.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
task_execv.c Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-05 19:45:24 +02:00
task_exit.c Fix typos reported by codespell 2021-02-25 11:31:49 -08:00
task_exithook.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
task_getgroup.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_getpid.c pid_t: unify usage of special task IDs 2022-03-22 21:22:32 +08:00
task_getppid.c pid_t: unify usage of special task IDs 2022-03-22 21:22:32 +08:00
task_gettid.c sched: Don't forward gettid to getpid directly 2021-03-04 17:17:41 -06:00
task_init.c env_dup: Fix copying of env between address environments 2022-04-21 18:38:37 +08:00
task_onexit.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_posixspawn.c env_dup: Fix copying of env between address environments 2022-04-21 18:38:37 +08:00
task_prctl.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_recover.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_reparent.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
task_restart.c sched/group: Change group_kill_children's argument from task_tcb_s to tcb_s 2020-06-15 07:09:51 -06:00
task_setcancelstate.c Revert "libc: Call pthread_exit in user-space by up_pthread_exit" 2022-02-09 21:21:43 +08:00
task_setcanceltype.c Revert "libc: Call pthread_exit in user-space by up_pthread_exit" 2022-02-09 21:21:43 +08:00
task_setup.c boards/arm/samv7/same70-qmtech: fix description in README.txt 2022-01-23 20:08:10 -03:00
task_spawn.c env_dup: Fix copying of env between address environments 2022-04-21 18:38:37 +08:00
task_spawnparms.c sched/task: Fix wrong return value from nxspawn_open() 2021-07-20 09:26:01 -03:00
task_start.c task: don't set default signal in kernal thread 2022-03-30 10:53:14 +09:00
task_starthook.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
task_terminate.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_testcancel.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_tls_alloc.c sched: Implement task local storage 2022-02-23 22:05:02 +08:00
task_vfork.c env_dup: Fix copying of env between address environments 2022-04-21 18:38:37 +08:00