[PATCH] env: fat: Avoid writing to read-only location

Tom Rini trini at konsulko.com
Mon Feb 10 21:38:52 CET 2025


On Thu, 30 Jan 2025 13:36:46 +0000, Andre Przywara wrote:

> The env_fat_get_dev_part() function mostly returns a fixed string, set
> via some Kconfig variable. However when the first character is a colon,
> that means that the boot device number is determined at runtime, and
> patched in. This requires altering the string.
> 
> So far this was done via some ugly and actually illegal direct write to
> the .rodata string storage. We got away with this because U-Boot maps
> everything as read/write/execute so far.
> 
> [...]

Applied to u-boot/master, thanks!

-- 
Tom




More information about the U-Boot mailing list