public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] efi: Replace efi_memory_attributes_table_t 0-sized array with flexible array
@ 2024-07-11 17:11 Kees Cook
  2024-07-11 17:11 ` [PATCH v2 1/2] efi: Rename efi_early_memdesc_ptr() to efi_memdesc_ptr() Kees Cook
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kees Cook @ 2024-07-11 17:11 UTC (permalink / raw)
  To: Ard Biesheuvel
  Cc: Kees Cook, Kirill A. Shutemov, Borislav Petkov (AMD),
	Baskov Evgeniy, Ingo Molnar, Radek Podgorny, linux-kernel,
	linux-efi, linux-hardening

Hi,

Update efi_memory_attributes_table_t to use a proper flexible
array. Renames efi_early_memdesc_ptr() to efi_memdesc_ptr() so it more
accurately reflects its usage.

Thanks!

-Kees

 v2:
  - rename efi_early_memdesc_ptr() to efi_memdesc_ptr()
  - add comment about reading efi_memdesc_ptr() to efi_memory_attributes_table_t
 v1: https://lore.kernel.org/lkml/20240710225538.work.224-kees@kernel.org/

Kees Cook (2):
  efi: Rename efi_early_memdesc_ptr() to efi_memdesc_ptr()
  efi: Replace efi_memory_attributes_table_t 0-sized array with flexible
    array

 drivers/firmware/efi/libstub/relocate.c          |  2 +-
 drivers/firmware/efi/libstub/unaccepted_memory.c |  2 +-
 drivers/firmware/efi/libstub/x86-stub.c          |  2 +-
 drivers/firmware/efi/memattr.c                   |  2 +-
 include/linux/efi.h                              | 10 +++++++---
 5 files changed, 11 insertions(+), 7 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-07-12  8:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-11 17:11 [PATCH v2 0/2] efi: Replace efi_memory_attributes_table_t 0-sized array with flexible array Kees Cook
2024-07-11 17:11 ` [PATCH v2 1/2] efi: Rename efi_early_memdesc_ptr() to efi_memdesc_ptr() Kees Cook
2024-07-11 17:11 ` [PATCH v2 2/2] efi: Replace efi_memory_attributes_table_t 0-sized array with flexible array Kees Cook
2024-07-12  8:08 ` [PATCH v2 0/2] " Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox