From: Jan Kiszka <jan.kiszka@siemens.com>
To: Ard Biesheuvel <ardb@kernel.org>,
Masahisa Kojima <kojima.masahisa@socionext.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org,
Sumit Garg <sumit.garg@kernel.org>,
Jens Wiklander <jens.wiklander@linaro.org>,
Hua Qian Li <huaqian.li@siemens.com>
Subject: [PATCH v3 0/4] efi: stmm: Fix for incorrect buffer allocation and cleanups
Date: Mon, 25 Aug 2025 18:07:09 +0200 [thread overview]
Message-ID: <cover.1756138033.git.jan.kiszka@siemens.com> (raw)
Changes in v3:
- improve description of patch 3
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
next reply other threads:[~2025-08-25 16:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-25 16:07 Jan Kiszka [this message]
2025-08-25 16:07 ` [PATCH v3 1/4] efi: stmm: Fix incorrect buffer allocation method Jan Kiszka
2025-08-25 16:07 ` [PATCH v3 2/4] efi: stmm: Do not return EFI_OUT_OF_RESOURCES on internal errors Jan Kiszka
2025-08-25 16:07 ` [PATCH v3 3/4] efi: stmm: Drop unused EFI error from setup_mm_hdr arguments Jan Kiszka
2025-08-25 16:07 ` [PATCH v3 4/4] efi: stmm: Drop unneeded null pointer check Jan Kiszka
2025-08-26 11:00 ` [PATCH v3 0/4] efi: stmm: Fix for incorrect buffer allocation and cleanups Sumit Garg
2025-08-26 12:54 ` Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1756138033.git.jan.kiszka@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=ardb@kernel.org \
--cc=huaqian.li@siemens.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jens.wiklander@linaro.org \
--cc=kojima.masahisa@socionext.com \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sumit.garg@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).