[29/33] boot: extension: allow longer overlay file names

Message ID 20261104085036.4012238-30-dario.binacchi@amarulasolutions.com
State New
Headers
Series Add Engicam MicroGEA-STM32MP257D-RMM board support |

Commit Message

Dario Binacchi Nov. 4, 2026, 8:50 a.m. UTC
The overlay file name is limited to 63 characters, which is too short
for the Linux overlays named after the base devicetree, such as:

  st/stm32mp257d-engicam-microgea-rmm-overlay-am-1280800w8tzqw-t00h.dtbo

Increase the buffer size to 128 bytes. The structure is never passed to
the OS and all its users size the overlay field with sizeof() or
strlen(), so the change is safe.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---

 include/extension_board.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.43.0
  

Comments

Kory Maincent Nov. 4, 2026, 9:31 a.m. UTC | #1
On 11/4/26 09:50, Dario Binacchi wrote:
> The overlay file name is limited to 63 characters, which is too short
> for the Linux overlays named after the base devicetree, such as:
> 
>    st/stm32mp257d-engicam-microgea-rmm-overlay-am-1280800w8tzqw-t00h.dtbo

Oh wow!! That's a long dt name.

> Increase the buffer size to 128 bytes. The structure is never passed to
> the OS and all its users size the overlay field with sizeof() or
> strlen(), so the change is safe.

Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>

Thank you!
-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
  

Patch

diff --git a/include/extension_board.h b/include/extension_board.h
index 0b9fb99ad7dc..f72db21441da 100644
--- a/include/extension_board.h
+++ b/include/extension_board.h
@@ -62,7 +62,7 @@  struct extension {
 	char name[32];
 	char owner[32];
 	char version[32];
-	char overlay[64];
+	char overlay[128];
 	char other[32];
 };