<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/drivers/serial, 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/drivers/serial?h=copilot%2Fbug-security-related-issue</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/drivers/serial?h=copilot%2Fbug-security-related-issue'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2026-06-09T06:52:56Z</updated>
<entry>
<title>chore: polish serial ioctl buffer naming</title>
<updated>2026-06-09T06:52:56Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2026-06-09T06:52:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=b85f8639f6ce56da9847f84e70db8bb150fe48e4'/>
<id>urn:sha1:b85f8639f6ce56da9847f84e70db8bb150fe48e4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: harden serial ioctl user-pointer handling</title>
<updated>2026-06-09T06:51:53Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2026-06-09T06:51:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=29cb089c45b5fd2c65c668242ba2855035cd8509'/>
<id>urn:sha1:29cb089c45b5fd2c65c668242ba2855035cd8509</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[fix] components: serial_v2: preserve RT_DEVICE_FLAG_STREAM when reopening serial device</title>
<updated>2026-05-20T02:05:02Z</updated>
<author>
<name>Runcheng Lu</name>
<email>runcheng.lu@hpmicro.com</email>
</author>
<published>2026-04-28T07:36:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=ec9eaadf85dfa60e6327de37bde8c4f04bfbde5d'/>
<id>urn:sha1:ec9eaadf85dfa60e6327de37bde8c4f04bfbde5d</id>
<content type='text'>
- The serial_fops_open function closes and reopens the serial device,but the RT_DEVICE_FLAG_STREAM flag was not preserved across the close/open cycle. This change saves the STREAM flag before close and restores it during reopen to ensure consistent behavior.

Signed-off-by: Runcheng Lu &lt;runcheng.lu@hpmicro.com&gt;
</content>
</entry>
<entry>
<title>style: format code with clang-format [skip ci]</title>
<updated>2026-05-19T05:12:21Z</updated>
<author>
<name>kaidegit</name>
<email>kaidegit+github[bot]@noreply.github.com</email>
</author>
<published>2026-05-17T03:00:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=c96fc44ba3d2f2b1ed1f8f6ac4e4887cbefdd641'/>
<id>urn:sha1:c96fc44ba3d2f2b1ed1f8f6ac4e4887cbefdd641</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[drivers][serial/v2] fix missing break after -RT_EPERM when buf size is 0</title>
<updated>2026-05-19T05:12:21Z</updated>
<author>
<name>kaidegit</name>
<email>2857693944@qq.com</email>
</author>
<published>2026-05-17T02:52:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=b57c80f06f640f951682cd29ed79910fe7f5f789'/>
<id>urn:sha1:b57c80f06f640f951682cd29ed79910fe7f5f789</id>
<content type='text'>
When rx_bufsz or tx_bufsz is 0, the driver returns -RT_EPERM but falls
through to RT_ASSERT(rx_fifo/tx_fifo != RT_NULL). Since serial_rx/serial_tx
is NULL in non-buffered mode, this triggers an assertion failure.

Add break after setting ret = -RT_EPERM in the four affected cases:
- RT_SERIAL_CTRL_SET_RX_TIMEOUT
- RT_SERIAL_CTRL_SET_TX_TIMEOUT
- RT_SERIAL_CTRL_GET_RX_TIMEOUT
- RT_SERIAL_CTRL_GET_TX_TIMEOUT
</content>
</entry>
<entry>
<title>fix(serial): only apply CRLF translation in STREAM mode for poll tx</title>
<updated>2026-02-27T01:54:28Z</updated>
<author>
<name>wdfk-prog</name>
<email>1425075683@qq.com</email>
</author>
<published>2026-02-01T02:48:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=71fd98e56de78b31a58082ce9219f6ea55130ddc'/>
<id>urn:sha1:71fd98e56de78b31a58082ce9219f6ea55130ddc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(drivers/ipc): correct rt_ringbuffer_peek to not consume data</title>
<updated>2026-02-25T09:53:06Z</updated>
<author>
<name>Shaun</name>
<email>rsj@php.vg</email>
</author>
<published>2026-02-22T16:59:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=ffcd1cb3160b18ba789c6ae620b5e1c5d76052bc'/>
<id>urn:sha1:ffcd1cb3160b18ba789c6ae620b5e1c5d76052bc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[dm][serial] add new serial driver for DM</title>
<updated>2025-12-16T04:41:02Z</updated>
<author>
<name>GuEe-GUI</name>
<email>2991707448@qq.com</email>
</author>
<published>2025-12-12T17:59:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=9a6d515e27d9d2d8ddb72ef25d81e123de5693a2'/>
<id>urn:sha1:9a6d515e27d9d2d8ddb72ef25d81e123de5693a2</id>
<content type='text'>
1. 8250 serila family (OFW, PCI, DWC, early)
2. Virtual serial (by graphic and input)
3. HVC early serial
4. ARM PL011 serial

Signed-off-by: GuEe-GUI &lt;2991707448@qq.com&gt;
</content>
</entry>
<entry>
<title>[dm][serial] Fixup serial tty check</title>
<updated>2025-12-16T04:41:02Z</updated>
<author>
<name>GuEe-GUI</name>
<email>2991707448@qq.com</email>
</author>
<published>2025-12-12T17:51:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=6394797471a2bc2e1830b27f0b4a938adf3a66e7'/>
<id>urn:sha1:6394797471a2bc2e1830b27f0b4a938adf3a66e7</id>
<content type='text'>
Just return if is not a tty device, don't assert

Signed-off-by: GuEe-GUI &lt;2991707448@qq.com&gt;
</content>
</entry>
<entry>
<title>[dm][serial] replace rt_hw_atomic_add to rt_atomic_add, clean code</title>
<updated>2025-12-16T04:41:02Z</updated>
<author>
<name>GuEe-GUI</name>
<email>2991707448@qq.com</email>
</author>
<published>2025-12-12T17:50:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=cb808f3a0ec6fc1db3075030a569fb1be2149455'/>
<id>urn:sha1:cb808f3a0ec6fc1db3075030a569fb1be2149455</id>
<content type='text'>
Signed-off-by: GuEe-GUI &lt;2991707448@qq.com&gt;
</content>
</entry>
</feed>
