From bb07d251d0768dfb9dc837d2077e4dcdcb6f1a9d Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Mar 06 2013 21:00:17 +0000 Subject: Don't clear efi_info in boot_params (rhbz 918408) --- diff --git a/kernel.spec b/kernel.spec index fb826bd..5548459 100644 --- a/kernel.spec +++ b/kernel.spec @@ -62,7 +62,7 @@ Summary: The Linux kernel # For non-released -rc kernels, this will be appended after the rcX and # gitX tags, so a 3 here would become part of release "0.rcX.gitX.3" # -%global baserelease 3 +%global baserelease 4 %global fedora_build %{baserelease} # base_sublevel is the kernel version we're starting with and patching @@ -739,6 +739,9 @@ Patch21264: intel_pstate-Fix-intel_pstate_init-error-path.patch #rhbz 917984 Patch21265: efi-fixes.patch +#rhbz 918408 +Patch21266: x86-bootparams-dont-clear-efi_info.patch + Patch22000: weird-root-dentry-name-debug.patch #selinux ptrace child permissions @@ -1435,6 +1438,9 @@ ApplyPatch intel_pstate-Fix-intel_pstate_init-error-path.patch #rhbz 917984 ApplyPatch efi-fixes.patch +#rhbz 918408 +ApplyPatch x86-bootparams-dont-clear-efi_info.patch + # END OF PATCH APPLICATIONS %endif @@ -2276,7 +2282,10 @@ fi # ||----w | # || || %changelog -* Tue Mar 5 2013 Peter Robinson +* Wed Mar 06 2013 Josh Boyer +- Don't clear efi_info in boot_params (rhbz 918408) + +* Wed Mar 06 2013 Peter Robinson - Update ARM mvebu config * Wed Mar 06 2013 Dave Jones diff --git a/x86-bootparams-dont-clear-efi_info.patch b/x86-bootparams-dont-clear-efi_info.patch new file mode 100644 index 0000000..143931c --- /dev/null +++ b/x86-bootparams-dont-clear-efi_info.patch @@ -0,0 +1,13 @@ +diff --git a/arch/x86/include/asm/bootparam_utils.h b/arch/x86/include/asm/bootparam_utils.h +index 5b5e9cb..ae93f72 100644 +--- a/arch/x86/include/asm/bootparam_utils.h ++++ b/arch/x86/include/asm/bootparam_utils.h +@@ -20,7 +20,7 @@ static void sanitize_boot_params(struct boot_params *boot_params) + if (boot_params->sentinel) { + /*fields in boot_params are not valid, clear them */ + memset(&boot_params->olpc_ofw_header, 0, +- (char *)&boot_params->alt_mem_k - ++ (char *)&boot_params->efi_info - + (char *)&boot_params->olpc_ofw_header); + memset(&boot_params->kbd_status, 0, + (char *)&boot_params->hdr -