Oopenvela-robotsched/task: skip uninitialized TCB in nxtask_argvstr
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
inline nxsched_getpid Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
inline nxsched_getpid Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
nuttx/atomic: replace atomic_fetch_xxx with atomic_xxx just like zephyr Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com> | 2 个月前 | |
sched: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Signed-off-by: ligd <liguiding1@xiaomi.com> | 2 个月前 | |
include/sched.h: remove implicit type conversions Coverity MISRA-CAST rejects implicit type conversions. Unified use of unsigned int type to modify FLAG. Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com> | 2 个月前 | |
fixtypo: fix the typo Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
sched/task: skip uninitialized TCB in nxtask_argvstr When pthread_create adds a TCB to g_pidhash via nxtask_assign_pid(), the TCB becomes visible to other threads before its flags and stack are fully initialized. If ps command reads this TCB during the race window, nxtask_argvstr() may access uninitialized stack data (0xdeadbeef from stack coloration) and crash in strmlen(). Add task_state == TSTATE_TASK_INVALID check to nxtask_argvstr() to skip TCBs that have not been fully initialized yet. Signed-off-by: ligd <liguiding1@xiaomi.com> | 2 个月前 | |
sched/task: refine the workflow for asynchronous cancellation Signed-off-by: ganjing <ganjing@xiaomi.com> | 2 个月前 | |
misra_c_10_4: fix violation essential type operand of unsigned and signed Signed-off-by: fangxinyong <fangxinyong@xiaomi.com> | 2 个月前 | |
task_delete.c: coverity HIS_metric_violation: RETURN Signed-off-by: fangxinyong <fangxinyong@xiaomi.com> | 2 个月前 | |
sched: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Signed-off-by: ligd <liguiding1@xiaomi.com> | 2 个月前 | |
sched: unify the thread exit running task behavior. We already split switch_context into nxsched_suspend_scheduler and nxsched_resume_scheduler, when task_exit, set running = NULL for more compatible. The switch context is much more frequency than task_exit, we should prefer decrease the switch_context record time cost. Also the x_doirq xcp.regs save will be more unified. Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com> Signed-off-by: ligd <liguiding1@xiaomi.com> | 2 个月前 | |
nuttx/atomic: replace atomic_fetch_xxx with atomic_xxx just like zephyr Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com> | 2 个月前 | |
nuttx/atomic: replace atomic_fetch_xxx with atomic_xxx just like zephyr Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com> | 2 个月前 | |
task: coverity HIS_metric_violation: RETURN Signed-off-by: fangxinyong <fangxinyong@xiaomi.com> | 2 个月前 | |
sched/atomic: fix the param defined but not use atomic API. Cause if we try use the not-toolchain implement, try link to the toolchain version. Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Revert "libs/libc: Put posix_spawn into libc" We use USERSPACE to get builtin data,so don't need this patch This reverts commit ef1f5ba351eb4a35ea31b84be92d6ce58e072a31. Signed-off-by: anjiahao <anjiahao@xiaomi.com> | 2 个月前 | |
task_prctl.c: coverity HIS_metric_violation: GOTO Signed-off-by: fangxinyong <fangxinyong@xiaomi.com> | 2 个月前 | |
sched/wdog: Remove wd_recover. This commit Removed wd_recover. Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com> | 2 个月前 | |
nuttx/atomic: replace atomic_fetch_xxx with atomic_xxx just like zephyr Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com> | 2 个月前 | |
nuttx/atomic: replace atomic_fetch_xxx with atomic_xxx just like zephyr Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com> | 2 个月前 | |
nuttx/atomic: replace atomic_fetch_xxx with atomic_xxx just like zephyr Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com> | 2 个月前 | |
task_spawn.c: coverity HIS_metric_violation: RETURN Also add a DEBUGASSERT to the nxtask_spawn_create. Since calling nxtask_init already ensures attr is valid, so no need check attr again before calling spawn_execattrs. Signed-off-by: fangxinyong <fangxinyong@xiaomi.com> | 2 个月前 | |
misra_c_10_4_violation: change priorit/policy to int type In the POSIX, both policy and priority are defined as int type. To avoid unnecessary cast, NuttX internally changes these to int as well Signed-off-by: fangxinyong <fangxinyong@xiaomi.com> | 2 个月前 | |
sched/atomic: fix the param defined but not use atomic API. Cause if we try use the not-toolchain implement, try link to the toolchain version. Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
nuttx/atomic: replace atomic_fetch_xxx with atomic_xxx just like zephyr Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com> | 2 个月前 |