Re: [PATCH] efi_loader: fix FinalEvent table initial position

2021-11-17 Thread Ilias Apalodimas
On Wed, 17 Nov 2021 at 11:10, Heinrich Schuchardt wrote: > > On 11/17/21 00:24, Ilias Apalodimas wrote: > > When initializing the final event table in create_final_event() we are > > setting the initial buffer position to sizeof(*final_event). Although > > we clear the buffer correctly and won't

Re: [PATCH] efi_loader: fix FinalEvent table initial position

2021-11-17 Thread Heinrich Schuchardt
On 11/17/21 00:24, Ilias Apalodimas wrote: When initializing the final event table in create_final_event() we are setting the initial buffer position to sizeof(*final_event). Although we clear the buffer correctly and won't cause any problems, we should start logging events starting from zero.

Re: [PATCH] efi_loader: fix FinalEvent table initial position

2021-11-16 Thread Ilias Apalodimas
Hi Heinrich, On Wed, 17 Nov 2021 at 01:24, Ilias Apalodimas wrote: > > When initializing the final event table in create_final_event() we are > setting the initial buffer position to sizeof(*final_event). Although > we clear the buffer correctly and won't cause any problems, we should > start

[PATCH] efi_loader: fix FinalEvent table initial position

2021-11-16 Thread Ilias Apalodimas
When initializing the final event table in create_final_event() we are setting the initial buffer position to sizeof(*final_event). Although we clear the buffer correctly and won't cause any problems, we should start logging events starting from zero. While at it add a cast when defining the fina