[PATCH] efi: don't truncate EFI_MEMORY_RUNTIME when setting resource attributes
Sascha Hauer
s.hauer at pengutronix.de
Fri Aug 28 06:04:35 PDT 2026
On Tue, 25 Aug 2026 10:53:15 +0200, Ahmad Fatoum wrote:
> resource_set_efi_memory_type_attrs() stored the runtime attribute with
>
> res->runtime = attrs & EFI_MEMORY_RUNTIME;
>
> but struct resource declares runtime as a one-bit field and
> EFI_MEMORY_RUNTIME is bit 63, so the assignment keeps only the low bit of
> the masked value and always stores zero. Every caller passing the
> attribute silently ended up with a non-runtime resource.
>
> [...]
Applied, thanks!
[1/1] efi: don't truncate EFI_MEMORY_RUNTIME when setting resource attributes
https://git.pengutronix.de/cgit/barebox/commit/?id=3177a7454bde (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list