<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/lwp, branch copilot/bug-security-related-issue</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/components/lwp?h=copilot%2Fbug-security-related-issue</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/lwp?h=copilot%2Fbug-security-related-issue'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2026-05-26T08:56:36Z</updated>
<entry>
<title>lwp: fix pid leak on exec failure before task startup</title>
<updated>2026-05-26T08:56:36Z</updated>
<author>
<name>yang.zhang</name>
<email>zhangyang01@kylinos.cn</email>
</author>
<published>2026-05-03T00:58:55Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d4f4c50b9e60223078a7178e47d338ca484bcbc0'/>
<id>urn:sha1:d4f4c50b9e60223078a7178e47d338ca484bcbc0</id>
<content type='text'>
When msh tries to execute a non-ELF path, lwp_execve() may allocate a PID
before lwp_load() fails. The old error path only dropped the LWP reference,
leaving the PID tree entry pointing to a freed LWP.

In an init-less boot flow, this can poison pid 1 after a failed command from
msh. A later LWP launch may then treat the stale pid 1 entry as a valid parent
LWP, resulting in invalid pgrp/session state and a job-control assertion during
process exit.

Add lwp_pid_rollback() for exec/spawn failures before the process becomes
runnable. Unlike lwp_pid_put(), it always releases the PID lock and does not
enter the "no more pid allocation" state when the PID tree becomes empty.

Use the rollback helper in lwp_execve() failure paths after PID allocation.

Signed-off-by: zhangyang &lt;gaoshanliukou@163.com&gt;
</content>
</entry>
<entry>
<title>完善版权信息</title>
<updated>2026-04-29T22:19:58Z</updated>
<author>
<name>rcitach</name>
<email>yearsince@yeah.net</email>
</author>
<published>2026-04-27T05:26:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=b4436e9b2e93be155090cfcb8e8bafa39d436137'/>
<id>urn:sha1:b4436e9b2e93be155090cfcb8e8bafa39d436137</id>
<content type='text'>
</content>
</entry>
<entry>
<title>修改用户态 data 页权限为 RO</title>
<updated>2026-04-29T22:19:58Z</updated>
<author>
<name>rcitach</name>
<email>yearsince@yeah.net</email>
</author>
<published>2026-04-27T03:19:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=93b77062cb7d05e0581522695315dd21ec269e23'/>
<id>urn:sha1:93b77062cb7d05e0581522695315dd21ec269e23</id>
<content type='text'>
</content>
</entry>
<entry>
<title>修改锁为 rt_spinlock</title>
<updated>2026-04-29T22:19:58Z</updated>
<author>
<name>rcitach</name>
<email>yearsince@yeah.net</email>
</author>
<published>2026-04-27T03:18:00Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=5db2be988eb1489a79da0ed298c93dae2cb5b387'/>
<id>urn:sha1:5db2be988eb1489a79da0ed298c93dae2cb5b387</id>
<content type='text'>
</content>
</entry>
<entry>
<title>更新 vdso img 校验</title>
<updated>2026-04-29T22:19:58Z</updated>
<author>
<name>rcitach</name>
<email>yearsince@yeah.net</email>
</author>
<published>2026-04-24T09:47:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=61b5ca7e12cf37cb1b58e6d3aa308f18737b813e'/>
<id>urn:sha1:61b5ca7e12cf37cb1b58e6d3aa308f18737b813e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>适配 arm 架构</title>
<updated>2026-04-29T22:19:58Z</updated>
<author>
<name>rcitach</name>
<email>yearsince@yeah.net</email>
</author>
<published>2026-04-22T02:23:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=3b8c9fcdca418aab58d3178a5f93fda853a539fa'/>
<id>urn:sha1:3b8c9fcdca418aab58d3178a5f93fda853a539fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>删除无用函数声明</title>
<updated>2026-04-29T22:19:58Z</updated>
<author>
<name>rcitach</name>
<email>yearsince@yeah.net</email>
</author>
<published>2026-04-22T01:54:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=6e4c9dc264d5f1bfc285ea03950c49db65c6e6e0'/>
<id>urn:sha1:6e4c9dc264d5f1bfc285ea03950c49db65c6e6e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>添加 vdso readtime 更新逻辑</title>
<updated>2026-04-29T22:19:58Z</updated>
<author>
<name>rcitach</name>
<email>yearsince@yeah.net</email>
</author>
<published>2026-04-21T10:34:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=03f10a8a4574925711a8e83f7a8c944598a69899'/>
<id>urn:sha1:03f10a8a4574925711a8e83f7a8c944598a69899</id>
<content type='text'>
</content>
</entry>
<entry>
<title>style: format code with clang-format [skip ci]</title>
<updated>2026-04-29T22:19:58Z</updated>
<author>
<name>rcitach</name>
<email>rcitach+github[bot]@noreply.github.com</email>
</author>
<published>2026-04-21T10:18:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=178e9f264f3254568a578f92db0bfed4267de0b4'/>
<id>urn:sha1:178e9f264f3254568a578f92db0bfed4267de0b4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>解决 base_time 和 counter_last 采样不同步产生固定偏差</title>
<updated>2026-04-29T22:19:58Z</updated>
<author>
<name>rcitach</name>
<email>yearsince@yeah.net</email>
</author>
<published>2026-04-21T10:11:50Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=3b5d4342c0cb8c66dc9fc5af398ba596d3d4902c'/>
<id>urn:sha1:3b5d4342c0cb8c66dc9fc5af398ba596d3d4902c</id>
<content type='text'>
</content>
</entry>
</feed>
