<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/lwp, branch copilot/fix-riscv-none-job-failure</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%2Ffix-riscv-none-job-failure</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/lwp?h=copilot%2Ffix-riscv-none-job-failure'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2026-09-03T01:20:30Z</updated>
<entry>
<title>[components][lwp] Remove terminal/ from global CPPPATH</title>
<updated>2026-09-03T01:20:30Z</updated>
<author>
<name>TTLLDD</name>
<email>TTLLDD@users.noreply.github.com</email>
</author>
<published>2026-09-01T09:39:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=54e5164064dd7bf2e3f008109d173c36e45f8f69'/>
<id>urn:sha1:54e5164064dd7bf2e3f008109d173c36e45f8f69</id>
<content type='text'>
The terminal subsystem's own headers (terminal.h, tty_config.h, ...) are
resolved by the compiler's quoted-include directory lookup for sources
inside components/lwp/terminal; nothing else depends on the path.
Stop polluting the global CPPPATH with this internal directory,
following the convention discussed in #10980.
</content>
</entry>
<entry>
<title>[dfs][procfs] Fix Linux-compatible procfs fields</title>
<updated>2026-08-30T12:49:24Z</updated>
<author>
<name>bernard</name>
<email>bernard.xiong@gmail.com</email>
</author>
<published>2026-08-23T02:13:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=5dcbc0dec92259ce8ab87a16fce39d9ce5d15ec8'/>
<id>urn:sha1:5dcbc0dec92259ce8ab87a16fce39d9ce5d15ec8</id>
<content type='text'>
Grow maps without a 256 VMA cap, skip RSS walks for maps, report
matching status text, real RSS/statm, MemAvailable after page-pool
free pages, load averages plus last PID, cumulative processes, RV32
cpuinfo, and per-character mount escaping.
</content>
</entry>
<entry>
<title>[libc][posix] Fix epoll waiters and LWP syscall copies</title>
<updated>2026-08-30T12:49:24Z</updated>
<author>
<name>bernard</name>
<email>bernard.xiong@gmail.com</email>
</author>
<published>2026-08-22T23:44:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=3152ab617b29cfc579badfce358490b7fa8810b1'/>
<id>urn:sha1:3152ab617b29cfc579badfce358490b7fa8810b1</id>
<content type='text'>
修复 epoll waiter 生命周期，避免等待队列节点在回调后失效。
整理 LWP POSIX syscall 的用户空间拷贝和错误返回路径。
</content>
</entry>
<entry>
<title>[dfs][posix] Add record locks, fchmod, and tmpfs metadata</title>
<updated>2026-08-30T12:49:24Z</updated>
<author>
<name>bernard</name>
<email>bernard.xiong@gmail.com</email>
</author>
<published>2026-08-22T23:43:50Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=f02a869318c9df28ec2eab41f1a58795dc8a3f1b'/>
<id>urn:sha1:f02a869318c9df28ec2eab41f1a58795dc8a3f1b</id>
<content type='text'>
为 DFS v2 增加 POSIX 记录锁、fchmod，以及 tmpfs 的权限和时间元数据。
进程退出时通过 dfs_fdtable_drop_fd 释放文件描述符和记录锁。
</content>
</entry>
<entry>
<title>[kernel][ipc] Fix timeout wakeup ownership race</title>
<updated>2026-08-21T08:52:01Z</updated>
<author>
<name>ari.liu</name>
<email>1486344514@qq.com</email>
</author>
<published>2026-08-21T03:16:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=ba79f69477686196da1aa1aca3792e8f6c4e3085'/>
<id>urn:sha1:ba79f69477686196da1aa1aca3792e8f6c4e3085</id>
<content type='text'>
Keep thread timer ownership when timer stop races with an in-flight timeout callback, and consume IPC resources only after a waiter is resumed successfully.

Complete ownership cleanup in the generic and RT-Smart channel timeout callbacks. Add deterministic scheduler and LWP regressions for Event, Semaphore, Mailbox, Message Queue, sender, and receiver paths.
</content>
</entry>
<entry>
<title>Add AF_UNIX sockets implementation (#11681)</title>
<updated>2026-08-17T09:15:34Z</updated>
<author>
<name>Bernard Xiong</name>
<email>bernard.xiong@gmail.com</email>
</author>
<published>2026-08-17T09:15:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=991f0ffca6ca475adcffc7833876bb8151f16e9c'/>
<id>urn:sha1:991f0ffca6ca475adcffc7833876bb8151f16e9c</id>
<content type='text'>
* components/dfs: support unix socket nodes

AF_UNIX pathname binding and descriptor passing require DFSv2 socket
nodes and retained open file descriptions across fd tables.

Add socket-node creation for tmpfs and devtmpfs, fd reference helpers,
and socket F_SETFL forwarding.

Impact: DFSv2 socket nodes and descriptor reference handling.
Validation: git diff --cached --check.

* components/net/sal: support local protocol providers

Local IPC protocol families do not have a backing network device.
Store the selected provider in each SAL socket and add a local provider
registry while preserving netdev checks for Internet sockets.

Handle DFSv2 close semantics, socketpair flags, and MSG_CTRUNC for
AF_UNIX integration.

Impact: SAL protocol dispatch for all socket families.
Validation: git diff --cached --check.

* components/lwp: support unix socket messages

Musl AF_UNIX addresses and ancillary data require explicit ABI and
user-memory conversion at the LWP syscall boundary.

Add the musl msghdr layout, bounded address and message copying,
control-message level conversion, and MSG_CTRUNC translation. Correct
receive buffer allocation and copy lengths while handling messages.

Impact: LWP socket syscalls when SAL is enabled.
Validation: git diff --cached --check.

* components/net/af_unix: add local sockets

Add an opt-in AF_UNIX provider for pathname-based local IPC without
a synthetic network device.

Support datagram and stream sockets, blocking and nonblocking I/O,
timeouts, poll, socketpair, and SCM_RIGHTS descriptor passing. Include
bounded Kconfig settings, component documentation, and utest coverage.

Impact: enabled only by RT_USING_AF_UNIX and requires SAL POSIX with
DFSv2.
Validation: git diff --cached --check.

* Fix AF_UNIX CI checks

Apply the repository clang-format rules to the affected source lines.
Suppress the cppcheck false positive for the devtmpfs list iterator.

No functional behavior is changed.

* components/lwp: preserve NULL optional msghdr buffers

When msg_name or msg_control is NULL, keep the kernel pointer NULL
instead of substituting an uninitialized buffer. Reject a NULL control
buffer with a nonzero length as EFAULT.

Impact: LWP sendmsg/recvmsg conversion on MMU targets.
Validation: git diff --cached --check.

* components/net/af_unix: fix poll UAF, namespace leak, and SCM_RIGHTS cycles

Poll only the local wait queue and wake writers from the receiver.
Free namespace entries on detach, and reject AF_UNIX descriptors in
SCM_RIGHTS until cycle collection exists.

Impact: AF_UNIX poll, bind lifetime, and descriptor passing.
Validation: git diff --cached --check.

* components/dfs: add DFSv2 AF_UNIX utest suite

Add opt-in tests under dfs/utest/v2/af_unix for socket nodes, IPC,
poll peer-close, namespace cleanup, and SCM_RIGHTS rejection.

Sources are built only when RT_UTEST_TC_USING_DFS_V2_AF_UNIX and the
selected test groups are enabled.

Impact: DFS utest menu and build; no production AF_UNIX behavior change.
Validation: git diff --cached --check.</content>
</entry>
<entry>
<title>lwp: copy timeout into kernel space in sys_select()</title>
<updated>2026-07-22T13:50:12Z</updated>
<author>
<name>yi chen</name>
<email>94xhn1@gmail.com</email>
</author>
<published>2026-07-09T03:49:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=4fbdf331d12a820feaa7b5724c28bd78b651074a'/>
<id>urn:sha1:4fbdf331d12a820feaa7b5724c28bd78b651074a</id>
<content type='text'>
sys_select() passed the raw user-space timeout pointer straight
through to select(), unlike readfds/writefds/exceptfds which are
all validated with lwp_user_accessable() and copied into kernel
memory first. A malicious or buggy user thread could pass a
timeout pointing at unmapped or otherwise invalid memory, which
select() would then dereference directly (timeout-&gt;tv_sec /
timeout-&gt;tv_usec) without any check, from kernel context.

Validate and copy it into a kernel-local struct timeval the same
way the fd_set arguments already are, before it reaches select().

Fixes #10298

Signed-off-by: yi chen &lt;94xhn1@gmail.com&gt;
</content>
</entry>
<entry>
<title>fix: move tty_ptmx regression test to utest framework</title>
<updated>2026-06-16T07:43:44Z</updated>
<author>
<name>OrbisAI Security</name>
<email>mediratta01.pally@gmail.com</email>
</author>
<published>2026-06-09T01:33:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=72a09a6aca696d2c2c847d09cd6ded196177dd01'/>
<id>urn:sha1:72a09a6aca696d2c2c847d09cd6ded196177dd01</id>
<content type='text'>
The previous commit placed the test in a new top-level tests/ directory
that does not exist in the RT-Thread repo structure and used the external
check library. Move the test to examples/utest/testcases/lwp/ and rewrite
it using RT-Thread's native utest framework, add a Kconfig symbol
(RT_UTEST_LWP_TTY_PTMX), and wire it into Kconfig.utestcases.

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>fix: V-004 security vulnerability</title>
<updated>2026-06-16T07:43:44Z</updated>
<author>
<name>orbisai0security</name>
<email>mediratta01.pally@gmail.com</email>
</author>
<published>2026-06-08T07:34:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=b210bd84ebec82ce6e8cc8218c6e92656bb7f72e'/>
<id>urn:sha1:b210bd84ebec82ce6e8cc8218c6e92656bb7f72e</id>
<content type='text'>
Automated security fix generated by OrbisAI Security
</content>
</entry>
<entry>
<title>utest: move lwp testcases to components/lwp</title>
<updated>2026-06-12T06:22:53Z</updated>
<author>
<name>CYFS</name>
<email>2805686936@qq.com</email>
</author>
<published>2026-06-11T06:41:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=103d4c1d92f3844dfcf4473957593af3449bec06'/>
<id>urn:sha1:103d4c1d92f3844dfcf4473957593af3449bec06</id>
<content type='text'>
Signed-off-by: CYFS &lt;2805686936@qq.com&gt;
</content>
</entry>
</feed>
