[PATCH v2 0/2] efi/libstub: fix efi_parse_options() ignoring the default command line

Jonathan Marek posted 2 patches 1 month, 2 weeks ago
drivers/firmware/efi/libstub/efi-stub-helper.c | 3 +--
drivers/firmware/efi/libstub/efi-stub.c        | 7 +++----
drivers/firmware/efi/libstub/efistub.h         | 2 +-
drivers/firmware/efi/libstub/x86-stub.c        | 3 +--
4 files changed, 6 insertions(+), 9 deletions(-)
[PATCH v2 0/2] efi/libstub: fix efi_parse_options() ignoring the default command line
Posted by Jonathan Marek 1 month, 2 weeks ago
v2:
 - changed to check for NUL character instead of size==1
 - reworked cleanup patch to remove cmd_line_len
 - moved 3rd commit out of this series

Jonathan Marek (2):
  efi/libstub: fix efi_parse_options() ignoring the default command line
  efi/libstub: remove unnecessary cmd_line_len from
    efi_convert_cmdline()

 drivers/firmware/efi/libstub/efi-stub-helper.c | 3 +--
 drivers/firmware/efi/libstub/efi-stub.c        | 7 +++----
 drivers/firmware/efi/libstub/efistub.h         | 2 +-
 drivers/firmware/efi/libstub/x86-stub.c        | 3 +--
 4 files changed, 6 insertions(+), 9 deletions(-)

-- 
2.45.1
Re: [PATCH v2 0/2] efi/libstub: fix efi_parse_options() ignoring the default command line
Posted by Ard Biesheuvel 1 month, 2 weeks ago
On Sun, 13 Oct 2024 at 07:16, Jonathan Marek <jonathan@marek.ca> wrote:
>
> v2:
>  - changed to check for NUL character instead of size==1
>  - reworked cleanup patch to remove cmd_line_len
>  - moved 3rd commit out of this series
>
> Jonathan Marek (2):
>   efi/libstub: fix efi_parse_options() ignoring the default command line
>   efi/libstub: remove unnecessary cmd_line_len from
>     efi_convert_cmdline()
>

Thanks. I'm inclined to fold these together and just merge them as a
single patch. Any objections?
Re: [PATCH v2 0/2] efi/libstub: fix efi_parse_options() ignoring the default command line
Posted by Jonathan Marek 1 month, 2 weeks ago
On 10/13/24 1:30 PM, Ard Biesheuvel wrote:
> On Sun, 13 Oct 2024 at 07:16, Jonathan Marek <jonathan@marek.ca> wrote:
>>
>> v2:
>>   - changed to check for NUL character instead of size==1
>>   - reworked cleanup patch to remove cmd_line_len
>>   - moved 3rd commit out of this series
>>
>> Jonathan Marek (2):
>>    efi/libstub: fix efi_parse_options() ignoring the default command line
>>    efi/libstub: remove unnecessary cmd_line_len from
>>      efi_convert_cmdline()
>>
> 
> Thanks. I'm inclined to fold these together and just merge them as a
> single patch. Any objections?
> 

No objections (its not important to me, but if you want to get the fix 
into stable I think the separate commits makes that easier?)
Re: [PATCH v2 0/2] efi/libstub: fix efi_parse_options() ignoring the default command line
Posted by Ard Biesheuvel 1 month, 1 week ago
On Sun, 13 Oct 2024 at 21:25, Jonathan Marek <jonathan@marek.ca> wrote:
>
> On 10/13/24 1:30 PM, Ard Biesheuvel wrote:
> > On Sun, 13 Oct 2024 at 07:16, Jonathan Marek <jonathan@marek.ca> wrote:
> >>
> >> v2:
> >>   - changed to check for NUL character instead of size==1
> >>   - reworked cleanup patch to remove cmd_line_len
> >>   - moved 3rd commit out of this series
> >>
> >> Jonathan Marek (2):
> >>    efi/libstub: fix efi_parse_options() ignoring the default command line
> >>    efi/libstub: remove unnecessary cmd_line_len from
> >>      efi_convert_cmdline()
> >>
> >
> > Thanks. I'm inclined to fold these together and just merge them as a
> > single patch. Any objections?
> >
>
> No objections (its not important to me, but if you want to get the fix
> into stable I think the separate commits makes that easier?)

Yeah good point. I am not going to send these out as fixes anyway,
given that they affect boot behavior, and there are some other things
to fix.