On Thu, 11 Dec 2025 18:17:05 +0100, Ahmad Fatoum wrote:
> setenv("global.bootm.root_param", getenv("global.bootm.root_param"))
> triggers a use-after-free, because the value is free'd before being
> duplicated and allocated again.
>
> Let's just early exit in this case as there's nothing further to do.
>
> This was noticed by KASAN when bootm_data_restore_defaults restored
> global.bootm.root_param.
>
> [...]
Applied, thanks!
[1/1] param: make setting a parameter to the same string value a no-op
https://git.pengutronix.de/cgit/barebox/commit/?id=c8cfce813f2f (link may
not be stable)
Best regards,
--
Sascha Hauer <[email protected]>