On 10/01/2025 02:50, Dave Young wrote: > Hi Usama, > > On Thu, 9 Jan 2025 at 06:00, Usama Arif <[email protected]> wrote: >> >> When this area is not reserved, it comes up as usable in >> /sys/firmware/memmap. This means that kexec, which uses that memmap >> to find usable memory regions, can select the region where >> efi_mem_attr_table is and overwrite it and relocate_kernel. > > Is the attr table BOOT SERVICE DATA? If so, does efi_mem_reserve() > work for you? > Just refer to esrt.c. > Hi Dave, Its a bit difficult to reproduce the problem and therefore test the fix, but we are seeing it a lot in production. Ard proposed the same thing in https://lore.kernel.org/all/[email protected]/ but as I mentioned there, I dont think that efi_mem_reserve would help, as efi_mem_reserve changes e820_table, while kexec looks at /sys/firmware/memmap which uses e820_table_firmware. Thanks, Usama > Thanks > Dave >
- [RFC 2/2] efi/memattr: add efi_mem_attr_table as a reserved... Usama Arif
- Re: [RFC 2/2] efi/memattr: add efi_mem_attr_table as a... Ard Biesheuvel
- Re: [RFC 2/2] efi/memattr: add efi_mem_attr_table ... Usama Arif
- Re: [RFC 2/2] efi/memattr: add efi_mem_attr_ta... Gregory Price
- Re: [RFC 2/2] efi/memattr: add efi_mem_attr_ta... Ard Biesheuvel
- Re: [RFC 2/2] efi/memattr: add efi_mem_att... Breno Leitao
- Re: [RFC 2/2] efi/memattr: add efi_me... Ard Biesheuvel
- Re: [RFC 2/2] efi/memattr: add efi_mem_att... Usama Arif
- Re: [RFC 2/2] efi/memattr: add efi_me... Usama Arif
- Re: [RFC 2/2] efi/memattr: add efi_mem_attr_table as a... Dave Young
- Re: [RFC 2/2] efi/memattr: add efi_mem_attr_table ... Usama Arif
- Re: [RFC 2/2] efi/memattr: add efi_mem_attr_ta... Dave Young
- Re: [RFC 2/2] efi/memattr: add efi_mem_att... Dave Young
- Re: [RFC 2/2] efi/memattr: add efi_me... Usama Arif
- [RFC 1/2] efi/memattr: Use desc_size instead of total size ... Usama Arif
- Re: [RFC 1/2] efi/memattr: Use desc_size instead of to... Ard Biesheuvel
- Re: [RFC 1/2] efi/memattr: Use desc_size instead o... Usama Arif
- Re: [RFC 1/2] efi/memattr: Use desc_size inste... Ard Biesheuvel
- Re: [RFC 1/2] efi/memattr: Use desc_size i... Usama Arif
- Re: [RFC 1/2] efi/memattr: Use desc_s... Ard Biesheuvel
- Re: [RFC 1/2] efi/memattr: Use desc_s... Dave Young
