<feed xmlns='http://www.w3.org/2005/Atom'>
<title>udebug, branch master</title>
<subtitle>OpenWrt debugging helper library/service</subtitle>
<id>https://git.openwrt.org/project/udebug/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/udebug/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/udebug/'/>
<updated>2026-07-08T14:09:10Z</updated>
<entry>
<title>lib-ucode: avoid infinite loop on oversized trace lines</title>
<updated>2026-07-08T14:09:10Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-07-04T20:38:29Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/udebug/commit/?id=75843a1bfcc99019fdb9bda8cafd28dc821c2be0'/>
<id>urn:sha1:75843a1bfcc99019fdb9bda8cafd28dc821c2be0</id>
<content type='text'>
A trace line longer than the 8192-byte read buffer never yields a
newline, so cur stays at the buffer start and the follow-up read of
zero bytes returns 0, spinning forever. Drop such an unterminated
full buffer to guarantee forward progress.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>udebug-cli: handle kernel trace buffer open failure</title>
<updated>2026-07-08T14:09:10Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-07-04T20:35:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/udebug/commit/?id=7690e66e6e08f3bb6d4583aae09bdaa1641dae3f'/>
<id>urn:sha1:7690e66e6e08f3bb6d4583aae09bdaa1641dae3f</id>
<content type='text'>
trace_ring() returns null when kernel tracing is unavailable (debugfs
not mounted, insufficient privileges, tracing disabled). Calling methods
on the null result aborted the CLI with an uncaught exception; report a
clean error and honour -f instead.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>lib-ucode: close trace_pipe fd on trace ring error path</title>
<updated>2026-07-04T20:34:03Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-07-04T20:34:03Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/udebug/commit/?id=c670cc4f9acc432eda033dd59d78c50d0c39a694'/>
<id>urn:sha1:c670cc4f9acc432eda033dd59d78c50d0c39a694</id>
<content type='text'>
When resource creation failed after trace_pipe was opened, the error
path only closed the instance directory fd, leaking the trace_pipe
descriptor.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>lib-ucode: grow trace fetch buffer to fit oversized lines</title>
<updated>2026-07-04T20:33:22Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-07-04T20:33:22Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/udebug/commit/?id=2fcb035141dafa996d28f54f9d10c52919ceafb3'/>
<id>urn:sha1:2fcb035141dafa996d28f54f9d10c52919ceafb3</id>
<content type='text'>
A single doubling of data_size is not enough when one trace line is
larger than the current buffer (e.g. the first line exceeds 256 bytes),
so the following strcpy overflowed the heap allocation. Loop the growth
until the buffer can hold the accumulated data.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>lib-ucode: open kernel trace_pipe non-blocking</title>
<updated>2026-07-04T20:32:34Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-07-04T20:32:34Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/udebug/commit/?id=7530cc1d2bb2cbf362dad4ecb10e8b6aaa6b5ba4'/>
<id>urn:sha1:7530cc1d2bb2cbf362dad4ecb10e8b6aaa6b5ba4</id>
<content type='text'>
The trace ring registers trace_pipe with uloop and drains it in fetch()
until the read reports EAGAIN. Without O_NONBLOCK the read blocks once
the pipe is empty, stalling the whole event loop in streaming mode and
hanging a one-shot fetch indefinitely.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>lib-ucode: fix heap buffer overflow in trace ring allocation</title>
<updated>2026-07-04T20:32:18Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-07-04T20:32:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/udebug/commit/?id=91591e698dac1df67c2f97d119b27927a8e42f36'/>
<id>urn:sha1:91591e698dac1df67c2f97d119b27927a8e42f36</id>
<content type='text'>
The resource datasize used strlen(instance + 1), reserving two bytes
less than the strcpy of the full instance name requires, overflowing
the inline allocation.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>udebug-cli: add logdump command</title>
<updated>2026-01-16T08:49:46Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-01-16T08:49:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/udebug/commit/?id=875e1a7af6ca9d86524d18169c3a79f4a1920053'/>
<id>urn:sha1:875e1a7af6ca9d86524d18169c3a79f4a1920053</id>
<content type='text'>
Works like logstream but only dumps existing ring buffer data
without waiting for more.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>udebug-cli: fix reference to invalid variable in error message</title>
<updated>2026-01-14T12:10:41Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-01-14T12:10:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/udebug/commit/?id=c5c493ed5787ca067ab1a713061ae02f0bb17046'/>
<id>urn:sha1:c5c493ed5787ca067ab1a713061ae02f0bb17046</id>
<content type='text'>
Use the property ring_name of the ring.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>add debian package support</title>
<updated>2025-10-21T13:09:54Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2025-10-21T09:48:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/udebug/commit/?id=75f39cd4a8067a6f0503c2f1c83c6b1af733a6f2'/>
<id>urn:sha1:75f39cd4a8067a6f0503c2f1c83c6b1af733a6f2</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>CMakeLists.txt: rename udebug-cli to udebug on installation</title>
<updated>2025-10-21T09:45:18Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2025-10-21T09:45:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/udebug/commit/?id=8c967bce23aebab7631261324680b02240e75ee1'/>
<id>urn:sha1:8c967bce23aebab7631261324680b02240e75ee1</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
</feed>
