nuttx/binfmt
hujun5 6f4cb9f457 sched/task: move kernel stack allocation to task initialization
Move kernel stack allocation from exec_module() (binary format execution) to
nxtask_init() (task initialization) with proper type checking. Add conditional
check to allocate kernel stack only for non-kernel tasks (ttype != TCB_FLAG_TTYPE_KERNEL).
Enables kernel stack allocation for both exec'd tasks and regular task_create()
calls in protected builds, allowing userspace to create tasks with proper kernel
stack isolation.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-01-18 23:05:11 +08:00
..
libnxflat binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt.h binfmt/copyactions: fix comments, make the actions life cycle more clear 2025-02-23 09:46:14 +08:00
binfmt_copyactions.c binfmt/copyactions: fix comments, make the actions life cycle more clear 2025-02-23 09:46:14 +08:00
binfmt_copyargv.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_dumpmodule.c binfmt:use modlib api inside of elf api [1/2] 2024-10-12 12:29:06 +08:00
binfmt_exec.c binfmt: refactor loadable module cleanup mechanism 2026-01-18 08:30:15 -03:00
binfmt_execmodule.c sched/task: move kernel stack allocation to task initialization 2026-01-18 23:05:11 +08:00
binfmt_execsymtab.c sched: binfmt remove csection 2026-01-11 20:44:35 +08:00
binfmt_exit.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_globals.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_initialize.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_loadmodule.c binfmt: Add a configuration flag to store the module filename 2025-11-01 22:59:47 +08:00
binfmt_register.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_unloadmodule.c userspace: Exclude nuttx/arch.h 2024-11-01 16:59:37 +08:00
binfmt_unregister.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
builtin.c binfmt: migrate to SPDX identifier 2024-11-05 20:44:29 +08:00
CMakeLists.txt coredump:Move coredump to sched/misc 2024-10-12 12:29:06 +08:00
elf.c binfmt/elf: fix issue of file not closing after being opened. 2025-12-09 22:24:57 +08:00
Kconfig binfmt: Add a configuration flag to store the module filename 2025-11-01 22:59:47 +08:00
Makefile binfmt:use modlib api inside of elf api [1/2] 2024-10-12 12:29:06 +08:00
nxflat.c binfmt: migrate to SPDX identifier 2024-11-05 20:44:29 +08:00