Re: [PATCH] efi_loader: Fix memory corruption on 32bit systems

2023-07-26 Thread Dan Carpenter
On Wed, Jul 26, 2023 at 10:11:04AM +0300, Ilias Apalodimas wrote: > Hi Dan > > On Wed, 26 Jul 2023 at 09:55, Dan Carpenter wrote: > > > > It's pretty unlikely that anyone is going to be using EFI authentication > > on a 32bit system. However, if you did, the efi_prepare_aligned_image() > >

[PATCH] efi_loader: Fix memory corruption on 32bit systems

2023-07-26 Thread Dan Carpenter
It's pretty unlikely that anyone is going to be using EFI authentication on a 32bit system. However, if you did, the efi_prepare_aligned_image() function would write 8 bytes of data to the _size variable and it can only hold 4 bytes so that corrupts memory. Signed-off-by: Dan Carpenter ---

Re: [PATCH] efi_loader: Fix memory corruption on 32bit systems

2023-07-26 Thread Ilias Apalodimas
Hi Dan On Wed, 26 Jul 2023 at 09:55, Dan Carpenter wrote: > > It's pretty unlikely that anyone is going to be using EFI authentication > on a 32bit system. However, if you did, the efi_prepare_aligned_image() > function would write 8 bytes of data to the _size variable and it > can only hold 4