]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - arch/x86/boot/compressed/eboot.c
Merge branch 'efi-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[mirror_ubuntu-focal-kernel.git] / arch / x86 / boot / compressed / eboot.c
index 926c2cc4facc9fdec21a28c73c3297545ae6e3a0..e56dbc67e8378e891fa8aa64192d0875237f4aba 100644 (file)
@@ -997,6 +997,9 @@ struct boot_params *efi_main(struct efi_config *c,
        if (boot_params->secure_boot == efi_secureboot_mode_unset)
                boot_params->secure_boot = efi_get_secureboot(sys_table);
 
+       /* Ask the firmware to clear memory on unclean shutdown */
+       efi_enable_reset_attack_mitigation(sys_table);
+
        setup_graphics(boot_params);
 
        setup_efi_pci(boot_params);