Re: [PATCH] efi/x86: Only copy the compressed kernel image in efi_relocate_kernel()

2020-10-25 Thread Arvind Sankar
On Sun, Oct 25, 2020 at 05:28:06PM +0100, Ard Biesheuvel wrote: > On Sun, 25 Oct 2020 at 17:19, Arvind Sankar wrote: > > > > On Sun, Oct 11, 2020 at 10:20:12AM -0400, Arvind Sankar wrote: > > > The image_size argument to efi_relocate_kernel() is currently specified > > > as init_size, but this is

Re: [PATCH] efi/x86: Only copy the compressed kernel image in efi_relocate_kernel()

2020-10-25 Thread Ard Biesheuvel
On Sun, 25 Oct 2020 at 17:19, Arvind Sankar wrote: > > On Sun, Oct 11, 2020 at 10:20:12AM -0400, Arvind Sankar wrote: > > The image_size argument to efi_relocate_kernel() is currently specified > > as init_size, but this is unnecessarily large. The compressed kernel is > > much smaller, in fact, i

Re: [PATCH] efi/x86: Only copy the compressed kernel image in efi_relocate_kernel()

2020-10-25 Thread Arvind Sankar
On Sun, Oct 11, 2020 at 10:20:12AM -0400, Arvind Sankar wrote: > The image_size argument to efi_relocate_kernel() is currently specified > as init_size, but this is unnecessarily large. The compressed kernel is > much smaller, in fact, its image only extends up to the start of _bss, > since at this

[PATCH] efi/x86: Only copy the compressed kernel image in efi_relocate_kernel()

2020-10-11 Thread Arvind Sankar
The image_size argument to efi_relocate_kernel() is currently specified as init_size, but this is unnecessarily large. The compressed kernel is much smaller, in fact, its image only extends up to the start of _bss, since at this point, the .bss section is still uninitialized. Depending on compress