Skip to content

Commit 1fa753c

Browse files
committed
Merge tag 'efi-next-for-v6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi
Pull EFI updates from Ard Biesheuvel: - Decouple mixed mode startup code from the traditional x86 decompressor - Revert zero-length file hack in efivarfs - Prevent EFI zboot from using the CopyMem/SetMem boot services after ExitBootServices() - Update EFI zboot to use the ZLIB/ZSTD library interfaces directly * tag 'efi-next-for-v6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi: efi/libstub: Avoid legacy decompressor zlib/zstd wrappers efi/libstub: Avoid CopyMem/SetMem EFI services after ExitBootServices efi: efibc: change kmalloc(size * count, ...) to kmalloc_array() efivarfs: Revert "allow creation of zero length files" x86/efi/mixed: Move mixed mode startup code into libstub x86/efi/mixed: Simplify and document thunking logic x86/efi/mixed: Remove dependency on legacy startup_32 code x86/efi/mixed: Set up 1:1 mapping of lower 4GiB in the stub x86/efi/mixed: Factor out and clean up long mode entry x86/efi/mixed: Check CPU compatibility without relying on verify_cpu() x86/efistub: Merge PE and handover entrypoints
2 parents 3b9ea5b + 0dc1754 commit 1fa753c

File tree

14 files changed

+452
-436
lines changed

14 files changed

+452
-436
lines changed

arch/x86/boot/compressed/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ vmlinux-objs-$(CONFIG_INTEL_TDX_GUEST) += $(obj)/tdx.o $(obj)/tdcall.o $(obj)/td
106106
vmlinux-objs-$(CONFIG_UNACCEPTED_MEMORY) += $(obj)/mem.o
107107

108108
vmlinux-objs-$(CONFIG_EFI) += $(obj)/efi.o
109-
vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_mixed.o
110109
vmlinux-libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
111110

112111
$(obj)/vmlinux: $(vmlinux-objs-y) $(vmlinux-libs-y) FORCE

arch/x86/boot/compressed/efi_mixed.S

Lines changed: 0 additions & 341 deletions
This file was deleted.

arch/x86/boot/compressed/head_64.S

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,6 @@ SYM_FUNC_START(startup_32)
263263
* used to perform that far jump.
264264
*/
265265
leal rva(startup_64)(%ebp), %eax
266-
#ifdef CONFIG_EFI_MIXED
267-
cmpb $1, rva(efi_is64)(%ebp)
268-
je 1f
269-
leal rva(startup_64_mixed_mode)(%ebp), %eax
270-
1:
271-
#endif
272-
273266
pushl $__KERNEL_CS
274267
pushl %eax
275268

drivers/firmware/efi/efibc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static int efibc_reboot_notifier_call(struct notifier_block *notifier,
4747
if (ret || !data)
4848
return NOTIFY_DONE;
4949

50-
wdata = kmalloc(MAX_DATA_LEN * sizeof(efi_char16_t), GFP_KERNEL);
50+
wdata = kmalloc_array(MAX_DATA_LEN, sizeof(efi_char16_t), GFP_KERNEL);
5151
if (!wdata)
5252
return NOTIFY_DONE;
5353

0 commit comments

Comments
 (0)