mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 06:45:19 +00:00
Kernel threads use the statically allocated g_kthread_group. If initialization of the first kernel thread fails, the common error path currently passes that static object to kmm_free(), corrupting the kernel heap. Only free dynamically allocated task groups and detach the failed group from the TCB before returning. Assisted-by: OpenAI Codex Signed-off-by: yushuailong <yyyusl@qq.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| group.h | ||
| group_childstatus.c | ||
| group_continue.c | ||
| group_create.c | ||
| group_foreachchild.c | ||
| group_free.c | ||
| group_getegid.c | ||
| group_geteuid.c | ||
| group_getgid.c | ||
| group_getgroups.c | ||
| group_getresgid.c | ||
| group_getresuid.c | ||
| group_getuid.c | ||
| group_issetugid.c | ||
| group_join.c | ||
| group_killchildren.c | ||
| group_leave.c | ||
| group_malloc.c | ||
| group_realloc.c | ||
| group_setegid.c | ||
| group_seteuid.c | ||
| group_setgid.c | ||
| group_setgroups.c | ||
| group_setregid.c | ||
| group_setresgid.c | ||
| group_setresuid.c | ||
| group_setreuid.c | ||
| group_setuid.c | ||
| group_setupidlefiles.c | ||
| group_setuptaskfiles.c | ||
| group_signal.c | ||
| group_suspendchildren.c | ||
| group_waiter.c | ||
| group_zalloc.c | ||
| Make.defs | ||