From: Ard Biesheuvel <ardb+git@google.com>
To: linux-efi@vger.kernel.org
Cc: Ard Biesheuvel <ardb@kernel.org>, Jonathan Marek <jonathan@marek.ca>
Subject: [PATCH 0/4] efi/libstub: Clean up command line handling
Date: Tue, 15 Oct 2024 20:15:50 +0200 [thread overview]
Message-ID: <20241015181549.3121999-6-ardb+git@google.com> (raw)
From: Ard Biesheuvel <ardb@kernel.org>
This is a follow-up to the patches sent out by Jonathan last week
[0][1], to fix the broken command line handling in the EFI stub, which
currently fails to use the built-on command line as a fallback as it
never considers the bootloader provided command line to be empty.
This series fixes some more identified issues:
- free the correct pointer on error
- parse the built-in command line *after* the bootloader provided one,
if both are available, to match the core kernel's behavior
- implement the missing fallback handling when loading files provided on
the command line via initrd= or dtb=
- ignore the bootloader provided command line when FORCE or OVERRIDE are
configured
The latter is provided as a separate change, as it changes behavior in a
way that could result in regressions, however unlikely.
[0] https://lore.kernel.org/all/20241011224812.25763-1-jonathan@marek.ca/#r
[1] https://lore.kernel.org/all/CAMj1kXGbuZnM8GoHasWNxs2YOnUDL-JViRmvGdVc91WHkMbdqA@mail.gmail.com/T/#u
Cc: Jonathan Marek <jonathan@marek.ca>
Ard Biesheuvel (4):
efi/libstub: Free correct pointer on failure
efi/libstub: Parse builtin command line after bootloader provided one
efi/libstub: Fix command line fallback handling when loading files
efi/libstub: Take command line overrides into account for loaded files
drivers/firmware/efi/libstub/efi-stub.c | 21 +++++++++-----------
drivers/firmware/efi/libstub/file.c | 21 ++++++++++++++++++++
2 files changed, 30 insertions(+), 12 deletions(-)
--
2.47.0.rc1.288.g06298d1525-goog
next reply other threads:[~2024-10-15 18:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-15 18:15 Ard Biesheuvel [this message]
2024-10-15 18:15 ` [PATCH 1/4] efi/libstub: Free correct pointer on failure Ard Biesheuvel
2024-10-15 18:15 ` [PATCH 2/4] efi/libstub: Parse builtin command line after bootloader provided one Ard Biesheuvel
2024-10-15 18:15 ` [PATCH 3/4] efi/libstub: Fix command line fallback handling when loading files Ard Biesheuvel
2024-10-15 18:15 ` [PATCH 4/4] efi/libstub: Take command line overrides into account for loaded files 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=20241015181549.3121999-6-ardb+git@google.com \
--to=ardb+git@google.com \
--cc=ardb@kernel.org \
--cc=jonathan@marek.ca \
--cc=linux-efi@vger.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