<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/boot/pxe_utils.c, branch v2026.07</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/boot/pxe_utils.c?h=v2026.07</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/boot/pxe_utils.c?h=v2026.07'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2026-06-03T15:22:24Z</updated>
<entry>
<title>boot: pxe_utils: Fix potential initrd_filesize buffer overflow</title>
<updated>2026-06-03T15:22:24Z</updated>
<author>
<name>Francois Berder</name>
<email>fberder@outlook.fr</email>
</author>
<published>2026-05-15T20:35:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fac46e5aa7c448444764044467e0cceb9d12f3f0'/>
<id>urn:sha1:fac46e5aa7c448444764044467e0cceb9d12f3f0</id>
<content type='text'>
ulong is 64 bits on 64-bit platforms. Hence, simple_xtoa can
produce up to 16 hex characters + NULL byte. The initrd_filesize
buffer is only 10 bytes which can cause a buffer overflow on
every PXE boot that loads an initrd on an address greater than
4GB.

Increase buffer size to 17 bytes to hold the maximum hex
representation of a 64-bit address.

Signed-off-by: Francois Berder &lt;fberder@outlook.fr&gt;
Reviewed-by: Jerome Forissier &lt;jerome.forissier@arm.com&gt;
</content>
</entry>
<entry>
<title>cmd: pxe_utils: fix syntax error in comments</title>
<updated>2026-02-16T17:52:01Z</updated>
<author>
<name>Hugo Villeneuve</name>
<email>hvilleneuve@dimonoff.com</email>
</author>
<published>2026-02-11T15:19:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2ac30d21e459736acb164c363498596872e0bfb3'/>
<id>urn:sha1:2ac30d21e459736acb164c363498596872e0bfb3</id>
<content type='text'>
Add missing "to" so that the sentence makes sense.

Signed-off-by: Hugo Villeneuve &lt;hvilleneuve@dimonoff.com&gt;
</content>
</entry>
<entry>
<title>boot: pxe_utils: Fix memory allocation issues in overlay_dir handling</title>
<updated>2025-11-22T14:49:09Z</updated>
<author>
<name>Kory Maincent (TI.com)</name>
<email>kory.maincent@bootlin.com</email>
</author>
<published>2025-11-17T15:23:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2d7eee5a55472f885474168acd3295d47a559755'/>
<id>urn:sha1:2d7eee5a55472f885474168acd3295d47a559755</id>
<content type='text'>
Fix two memory allocation bugs in label_boot_extension():

1. When label-&gt;fdtdir is not set, overlay_dir was used without any
   memory allocation.

2. When label-&gt;fdtdir is set, the allocation size was incorrect,
   using 'len' (just the fdtdir length) instead of 'dir_len' (which
   includes the trailing slash and null terminator).

Resolve both issues by moving the memory allocation and string
formatting outside the conditional block, resulting in clearer code
flow and correct sizing in all cases.

Closes: https://lists.denx.de/pipermail/u-boot/2025-November/602892.html
Addresses-Coverity-ID: 638558 Memory - illegal accesses (UNINIT)
Fixes: 935109cd9e97 ("boot: pxe_utils: Add extension board devicetree overlay support")
Signed-off-by: Kory Maincent (TI.com) &lt;kory.maincent@bootlin.com&gt;
Tested-by: Surkov Kirill &lt;fanra3.tk@gmail.com&gt;
</content>
</entry>
<entry>
<title>boot: pxe_utils: Add extension board devicetree overlay support</title>
<updated>2025-11-03T16:02:39Z</updated>
<author>
<name>Kory Maincent (TI.com)</name>
<email>kory.maincent@bootlin.com</email>
</author>
<published>2025-10-30T16:45:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=935109cd9e97b2f48b177b7c31373325deab44c0'/>
<id>urn:sha1:935109cd9e97b2f48b177b7c31373325deab44c0</id>
<content type='text'>
Add support for scanning and applying extension board devicetree
overlays during PXE boot. After loading the main board devicetree,
the system now scans for available extension boards and applies their
overlays automatically.

This enables dynamic hardware configuration for systems with extension
boards during boot scenarios which are using pxe_utils.

Signed-off-by: Kory Maincent (TI.com) &lt;kory.maincent@bootlin.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>boot: pxe: Prevent evaluation of uninitialised variable</title>
<updated>2025-07-09T00:15:20Z</updated>
<author>
<name>Andrew Goodbody</name>
<email>andrew.goodbody@linaro.org</email>
</author>
<published>2025-06-30T11:57:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c3b43eeaead77beef53a224c7d13346a0462b34d'/>
<id>urn:sha1:c3b43eeaead77beef53a224c7d13346a0462b34d</id>
<content type='text'>
In the case where parse_sliteral returns an error then label_name
will not have been assigned to. In order to prevent evaluating
label_name in this case add a check for the return value of parse_sliteral.

Signed-off-by: Andrew Goodbody &lt;andrew.goodbody@linaro.org&gt;
</content>
</entry>
<entry>
<title>boot: Update extlinux pxe_getfile_func() to include type</title>
<updated>2025-01-15T14:48:42Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2024-11-15T23:19:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3ed218e2ff6386477c8575367dd67613b588750a'/>
<id>urn:sha1:3ed218e2ff6386477c8575367dd67613b588750a</id>
<content type='text'>
Add a file-type parameter to this function and update all users. Add a
proper comment to the function which we are here.

This will allow tracking of the file types loaded by the extlinux
bootmeth.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>boot: pxe: Drop the duplicate comment on get_pxe_file()</title>
<updated>2025-01-15T14:48:42Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2024-11-15T23:19:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8777ae2b957151cd4fc299b84055150c531e6333'/>
<id>urn:sha1:8777ae2b957151cd4fc299b84055150c531e6333</id>
<content type='text'>
This function is exported, so document it in the header file. Drop the
duplicate comment in the C file.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>menu: add support to check if menu needs to be reprinted</title>
<updated>2024-11-04T22:41:38Z</updated>
<author>
<name>Weijie Gao</name>
<email>weijie.gao@mediatek.com</email>
</author>
<published>2024-10-29T09:47:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ccdd7948e22f21d2add8f51c4918a2c576dc5e91'/>
<id>urn:sha1:ccdd7948e22f21d2add8f51c4918a2c576dc5e91</id>
<content type='text'>
This patch adds a new callback named need_reprint for menu.
The need_reprint will be called before printing the menu. If the
callback exists and returns FALSE, menu printing will be canceled.

This is very useful if the menu was not changed. It can save time
for serial-based menu to handle more input data.

Signed-off-by: Weijie Gao &lt;weijie.gao@mediatek.com&gt;
Reviewed-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
Tested-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>boot: Add logic to enable booting from fallback option</title>
<updated>2024-10-15T16:24:27Z</updated>
<author>
<name>Martyn Welch</name>
<email>martyn.welch@collabora.com</email>
</author>
<published>2024-10-09T13:15:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8ba82a91b3aa615fb6148ecfa2af4e91a28659ae'/>
<id>urn:sha1:8ba82a91b3aa615fb6148ecfa2af4e91a28659ae</id>
<content type='text'>
The "fallback" extlinux config option allows us to set an alternative
default boot option for when it has been detected that the default is
failing. Implement the logic required to boot from this option when
desired.

Signed-off-by: Martyn Welch &lt;martyn.welch@collabora.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>boot: pxe_utils: Add fallback support</title>
<updated>2024-10-15T16:24:27Z</updated>
<author>
<name>Martyn Welch</name>
<email>martyn.welch@collabora.com</email>
</author>
<published>2024-10-09T13:15:38Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d2faad3ff31f0fab0cf280c05ee333992f7a7d27'/>
<id>urn:sha1:d2faad3ff31f0fab0cf280c05ee333992f7a7d27</id>
<content type='text'>
When configured correctly, we can detect when boot fails after the boot
process has been handed over to the kernel through the use of U-Boot's
bootcount support. In some instances, such as when we are performing
atomic updates via a system such as OSTree, it is desirable to provide a
fallback option so that we can return to a previous (hopefully working)
state.

Add a "fallback" option to the supported extlinux configuration options
that points to a label like "default" so that we can utilise this in
later commits.

Signed-off-by: Martyn Welch &lt;martyn.welch@collabora.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
