<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/nbd/package/system, branch master</title>
<subtitle>Felix Fietkaus staging tree</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/nbd/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/'/>
<updated>2026-07-25T16:30:51Z</updated>
<entry>
<title>fstools: update to git HEAD of 2026-07-25</title>
<updated>2026-07-25T16:30:51Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2026-07-25T16:29:57Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=9b11fa4088c6aaaee594351862597590d08f2683'/>
<id>urn:sha1:9b11fa4088c6aaaee594351862597590d08f2683</id>
<content type='text'>
 2aa1640 block: preen a registered volume before mount on request
 d43ffba block: use preen mode for the f2fs filesystem check
 a71e97d blockd: do not let a slow startup helper hold back readiness
 1c17d24 blockd: expose storage readiness via a queryable status method
 f60b3a3 blockd: pass registrant mount options down to block on autofs mount
 998f6ab blockd: notify when an idle autofs mount is unmounted
 0008996 block: mount ubus-registered devices without an fstab entry
 4fd1502 blockd: coldplug block devices
 89a6f52 blockd: retry interrupted waitpid() in synchronous block() helper
 37cf94d blockd: fix bounds of the ubus event name buffer

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>rpcd: update to Git HEAD (2026-07-19)</title>
<updated>2026-07-21T20:59:58Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2026-07-21T01:28:58Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=b5191da03cf4864416afee8ef5542e1ffe596d41'/>
<id>urn:sha1:b5191da03cf4864416afee8ef5542e1ffe596d41</id>
<content type='text'>
e37ed9d81469 file: re-authorize ACL against resolved path to close symlink bypass

Link: https://github.com/openwrt/openwrt/pull/24329
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>mtd: fis: fix buffer overflow from negative memset size</title>
<updated>2026-07-17T08:02:59Z</updated>
<author>
<name>Anna Kiri</name>
</author>
<published>2026-05-26T17:10:36Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=dd62e3af151d4a92aa8251148ec9b88fa558be73'/>
<id>urn:sha1:dd62e3af151d4a92aa8251148ec9b88fa558be73</id>
<content type='text'>
In fis_remap(), when desc &lt; last, the memset size is computed as
'tmp - end'. Since tmp is calculated as 'end - positive_value', tmp is
always less than end, making 'tmp - end' negative. When cast to size_t,
this wraps to a very large value, causing a massive buffer overflow.

Fix by swapping the operands to 'end - tmp' which correctly computes the
number of bytes to clear.

Signed-off-by: Anna Kiri &lt;bredcorn@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/23550
Signed-off-by: Jonas Jelonek &lt;jelonek.jonas@gmail.com&gt;
</content>
</entry>
<entry>
<title>ubus: update to Git HEAD (2026-06-28)</title>
<updated>2026-06-28T14:48:20Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2026-06-28T14:48:13Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=3c26b9fd64b53e57294fd29adc0dfe8f211bfa2b'/>
<id>urn:sha1:3c26b9fd64b53e57294fd29adc0dfe8f211bfa2b</id>
<content type='text'>
24864e7840b3 ubusd_id: use GRND_INSECURE to avoid blocking boot on getrandom()

Fixes: https://github.com/openwrt/ubus/issues/21
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>procd: update to Git HEAD (2026-06-17)</title>
<updated>2026-06-24T09:21:28Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-06-17T10:01:52Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=2010cfde392e6038121c87dd52767ea6d4c75fd3'/>
<id>urn:sha1:2010cfde392e6038121c87dd52767ea6d4c75fd3</id>
<content type='text'>
9ff6e43bb75f service: notify instance exit details via ubus
4f42296dc4f0 jail: mount rootfs overlay with userxattr in user namespace
60fdbf00e924 jail: chown rootfs overlay dir to mapped root in user namespace

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>mtd: bump package release</title>
<updated>2026-06-16T09:32:52Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2026-06-16T09:20:05Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=45b8cb0ce4fe9c12ce1e7fac03db2346e76e0f6d'/>
<id>urn:sha1:45b8cb0ce4fe9c12ce1e7fac03db2346e76e0f6d</id>
<content type='text'>
This commit fixes "a5107ad58c6 mtd: fix buffer leak and fd leak in mtd_dump()"
which changed the code but did not increase the release. This causes two
packages with the same version to have different content and thereby hashes.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
Link: https://github.com/openwrt/openwrt/pull/23827
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>package: make APK embedded help gzip reproducible</title>
<updated>2026-06-10T18:15:15Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2026-06-10T15:18:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=353e23dfbc15feb9557bf09095cf54ab77f3042b'/>
<id>urn:sha1:353e23dfbc15feb9557bf09095cf54ab77f3042b</id>
<content type='text'>
APK compresses it's helptext using LUA and require `zlib`, which isn't
available on the Buildbots. It thens falls back to `gzip`, which embeds the
MTIME, making the binary itself unreproducible.

This commits adds a downstream patch to run `gzip` with `-n`, setting the time
to 0.

Link: https://github.com/openwrt/openwrt/pull/23736
Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>mtd: fix buffer leak and fd leak in mtd_dump()</title>
<updated>2026-06-08T14:18:23Z</updated>
<author>
<name>Anna Kiri</name>
</author>
<published>2026-06-08T09:07:05Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=a5107ad58c6162a70a56ada1822c3c3e6ba09a12'/>
<id>urn:sha1:a5107ad58c6162a70a56ada1822c3c3e6ba09a12</id>
<content type='text'>
Two leaks in mtd_dump():

- The buffer allocated with malloc(erasesize) is never freed before
  returning, leaking erasesize bytes on every call.
- The pre-existing malloc-NULL early return path also leaked the just-
  opened fd by returning directly instead of going through cleanup.

Initialize buf to NULL, route the malloc-NULL case through the
existing 'out:' label, and add free(buf) on the cleanup path so both
fd and buf are released consistently on every exit.

Signed-off-by: Anna Kiri &lt;bredcorn@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/23706
Signed-off-by: Jonas Jelonek &lt;jelonek.jonas@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: check malloc() return value in mtd_check()</title>
<updated>2026-06-08T14:17:42Z</updated>
<author>
<name>Anna Kiri</name>
</author>
<published>2026-06-08T09:06:32Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=2818ac5ccd0cc7c44176010691929b843b7cb566'/>
<id>urn:sha1:2818ac5ccd0cc7c44176010691929b843b7cb566</id>
<content type='text'>
After malloc(erasesize) in mtd_check(), the result was never checked
for NULL. On allocation failure, the buf pointer remained NULL and
would later be used in image_check() via read(imagefd, buf + buflen,
...), causing a NULL pointer dereference.

Add a NULL check after the allocation and return early. The early
return path also closes the just-opened fd and frees the strdup'd
colon-separated device-list copy to avoid leaks.

Signed-off-by: Anna Kiri &lt;bredcorn@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/23705
Signed-off-by: Jonas Jelonek &lt;jelonek.jonas@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: check return values of lseek() and write() in mtd_write_buffer()</title>
<updated>2026-06-08T14:17:02Z</updated>
<author>
<name>Anna Kiri</name>
</author>
<published>2026-06-08T09:05:55Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=2f809f9cff578141def1fd00baf22384afd75c21'/>
<id>urn:sha1:2f809f9cff578141def1fd00baf22384afd75c21</id>
<content type='text'>
Two ignored return values in mtd_write_buffer() caused silent failures:

- lseek() return value was ignored. A failed seek (e.g. EBADF, ESPIPE)
  followed by write() would silently write at the wrong offset.
- write() return value was ignored, silently discarding write errors.
  This could lead to data corruption on the MTD device without any
  indication.

Check both return values, report errors to stderr and return -1 on
failure.

Signed-off-by: Anna Kiri &lt;bredcorn@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/23552
Signed-off-by: Jonas Jelonek &lt;jelonek.jonas@gmail.com&gt;
</content>
</entry>
</feed>
