nuttx/sched
Ville Juven 1a67dc7c68 sched/release_tcb: Do not release stack for user processes here
The user stack is dependent on the user address environment. As the
process exits, this address environment is destroyed anyway, so the
stack does not need to be released separately.

There is also an issue with this when the process exits via exit(). The
problem is that the task group is released prior to this "up_release_stack()"
call along with the address environment, and trying to free the memory
either causes an immediate crash (no valid addrenv), or frees memory into
another process' heap (addrenv from a different process).

Signed-off-by: Ville Juven <ville.juven@unikie.com>
2022-12-14 17:54:28 +08:00
..
clock clock: adjust clock function to support tick 2022-11-01 21:54:20 +08:00
environ sched/env: Don't need copy env variable from parent in env_dup 2022-10-19 08:22:56 +09:00
group nuttx/sched: merge up_block_task and up_unblock_task 2022-11-22 22:59:08 +08:00
init sched/nx_bringup: Set the initial stack size in kernel build as well 2022-12-09 22:15:48 +08:00
irq mm/heap: Change TCB_FLAG_HEAPCHECK to TCB_FLAG_HEAP_CHECK 2022-11-12 09:39:01 +01:00
misc move common assert logic together. 2022-12-12 17:05:02 +08:00
module
mqueue nuttx/sched: merge up_block_task and up_unblock_task 2022-11-22 22:59:08 +08:00
paging nuttx/sched: merge up_block_task and up_unblock_task 2022-11-22 22:59:08 +08:00
pthread Remove intr param from pthread_mutex_take 2022-12-08 03:13:44 +08:00
sched sched/release_tcb: Do not release stack for user processes here 2022-12-14 17:54:28 +08:00
semaphore nuttx/sched: merge up_block_task and up_unblock_task 2022-11-22 22:59:08 +08:00
signal nuttx/sched: merge up_block_task and up_unblock_task 2022-11-22 22:59:08 +08:00
task nuttx/sched: merge up_block_task and up_unblock_task 2022-11-22 22:59:08 +08:00
timer sched/posix/timer: handle invaild timerid correctly 2022-10-31 19:59:29 -03:00
tls Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
wdog libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
wqueue use SEM_INITIALIZER inside of NXSEM_INITIALIZER 2022-10-22 14:50:48 +08:00
Kconfig sched/mqueue: make mqueue and mqueue sysv can disable separately 2022-11-16 20:03:40 +08:00
Makefile Move _assert to kernel space. 2022-12-06 18:33:21 +08:00