mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/4] efi: stmm: Fix for incorrect buffer allocation and cleanups
@ 2025-08-23 17:22 Jan Kiszka
  2025-08-23 17:22 ` [PATCH v2 1/4] efi: stmm: Fix incorrect buffer allocation method Jan Kiszka
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jan Kiszka @ 2025-08-23 17:22 UTC (permalink / raw)
  To: Ard Biesheuvel, Masahisa Kojima, Ilias Apalodimas
  Cc: linux-efi, linux-kernel, Sumit Garg, Jens Wiklander, Hua Qian Li

Changes in v2:
 - simplify page allocation approach
 - switch to returning EFI_DEVICE_ERROR on ENOMEM
 - drop efi return value argument from setup_mm_hdr

One critical fix for the EFI StMM driver, one error return code
adjustment and two smaller cleanups.

Note that the suggestion to convert tee_shm_register_kernel_buf to take
pages instead of buffer addresses is not forgotten, just in the backlog.
I wanted to avoid that the critical fix has to wait for me finding time
to refactor the API as well.

Jan

Jan Kiszka (4):
  efi: stmm: Fix incorrect buffer allocation method
  efi: stmm: Do not return EFI_OUT_OF_RESOURCES on internal errors
  efi: stmm: Drop unused EFI error from setup_mm_hdr arguments
  efi: stmm: Drop unneeded null pointer check

 drivers/firmware/efi/stmm/tee_stmm_efi.c | 61 +++++++++++-------------
 1 file changed, 27 insertions(+), 34 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-08-25  8:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-23 17:22 [PATCH v2 0/4] efi: stmm: Fix for incorrect buffer allocation and cleanups Jan Kiszka
2025-08-23 17:22 ` [PATCH v2 1/4] efi: stmm: Fix incorrect buffer allocation method Jan Kiszka
2025-08-25  8:12   ` Ilias Apalodimas
2025-08-23 17:22 ` [PATCH v2 2/4] efi: stmm: Do not return EFI_OUT_OF_RESOURCES on internal errors Jan Kiszka
2025-08-25  8:14   ` Ilias Apalodimas
2025-08-23 17:22 ` [PATCH v2 3/4] efi: stmm: Drop unused EFI error from setup_mm_hdr arguments Jan Kiszka
2025-08-25  8:17   ` Ilias Apalodimas
2025-08-23 17:22 ` [PATCH v2 4/4] efi: stmm: Drop unneeded null pointer check Jan Kiszka

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

all inboxes | Powered by JetHome®