Skip to contentSkip to conversation

Patch "x86, efi: Retain boot service code until after switching to" has been added to the 2.6.39-stable tree

DISCUSSION Stefan Lippers-Hollmann 2 participants 2 messages May 30, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi

Quoted 10 lines · On Monday 30 May 2011, [email protected] wrote:

This is a note to let you know that I've just added the patch titled

x86, efi: Retain boot service code until after switching to

to the 2.6.39-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
x86-efi-retain-boot-service-code-until-after-switching-to.patch
and it can be found in the queue-2.6.39 subdirectory.

The -stable backport of this upstream commit introduces a syntax error, see below.

Quoted 13 lines

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

From 916f676f8dc016103f983c7ec54c18ecdbb6e349 Mon Sep 17 00:00:00 2001
From: Matthew Garrett <[email protected]>
Date: Wed, 25 May 2011 09:53:13 -0400
Subject: x86, efi: Retain boot service code until after switching to
virtual mode

From: Matthew Garrett <[email protected]>

commit 916f676f8dc016103f983c7ec54c18ecdbb6e349 upstream.

[...]

arch/x86/platform/efi/efi_64.c static void __init early_runtime_code_ma · line 71

Quoted 13 lines
arch/x86/platform/efi/efi_64.c +3 -2
@@ -64,10 +64,11 @@ static void __init early_runtime_code_ma
 	if (!(__supported_pte_mask & _PAGE_NX))
 		return;
 
-	/* Make EFI runtime service code area executable */
+	/* Make EFI service code area executable */
 	for (p = memmap.map; p < memmap.map_end; p += memmap.desc_size) {
 		md = p;
-		if (md->type == EFI_RUNTIME_SERVICES_CODE) {
+		if (md->type == EFI_RUNTIME_SERVICES_CODE ||
+		    md->type == EFI_BOOT_SERVICES_CODE)
                                                  ^ missing '{'

arch/x86/platform/efi/efi_64.c static void __init early_runtime_code_ma · line 74

Quoted 3 lines
arch/x86/platform/efi/efi_64.c +0 -0
 			unsigned long end;
 			end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT);
 			early_mapping_set_exec(md->phys_addr, end, executable);

[...]

This leads to:

arch/x86/platform/efi/efi_64.c: In function 'early_runtime_code_mapping_set_exec':
arch/x86/platform/efi/efi_64.c:72:4: error: expected expression before 'unsigned' arch/x86/platform/efi/efi_64.c:73:4: error: 'end' undeclared (first use in this function) arch/x86/platform/efi/efi_64.c:73:4: note: each undeclared identifier is reported only once for each function it appears in arch/x86/platform/efi/efi_64.c: At top level:
arch/x86/platform/efi/efi_64.c:77:1: error: expected identifier or '(' before '}' token
make[5]: *** [arch/x86/platform/efi/efi_64.o] Error 1

Regards
Stefan Lippers-Hollmann

#2 lore raw
Quoted 10 lines · Stefan Lippers-Hollmann

Hi

Quoted 7 lines · On Monday 30 May 2011, [email protected] wrote:

This is a note to let you know that I've just added the patch titled

x86, efi: Retain boot service code until after switching to

to the 2.6.39-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

Quoted 6 lines
Quoted 3 lines

The filename of the patch is:
x86-efi-retain-boot-service-code-until-after-switching-to.patch
and it can be found in the queue-2.6.39 subdirectory.

The -stable backport of this upstream commit introduces a syntax error, see below.

Thanks, I've fixed it now.

Didn't catch it here as all I have is a i386 slow laptop to build on at the moment :(

greg k-h