Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1342186 > unrolled thread

[PATCH v17 3/9] x86/objtool: Enable objtool on x86_64

Started byJosh Poimboeuf <jpoimboe@redhat.com>
First post2016-02-24 17:40 +0100
Last post2016-02-24 17:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v17 3/9] x86/objtool: Enable objtool on x86_64 Josh Poimboeuf <jpoimboe@redhat.com> - 2016-02-24 17:40 +0100

#1342186 — [PATCH v17 3/9] x86/objtool: Enable objtool on x86_64

FromJosh Poimboeuf <jpoimboe@redhat.com>
Date2016-02-24 17:40 +0100
Subject[PATCH v17 3/9] x86/objtool: Enable objtool on x86_64
Message-ID<r5KDM-7ce-23@gated-at.bofh.it>
Set HAVE_STACK_VALIDATION to enable stack metadata validation for
x86_64.

Also, disable objtool checking for the kexec purgatory code, because:

1. It's built by the archprepare target, which can run before objtool
   has been built yet.

2. It runs outside the scope of the kernel's normal mode of operation
   and doesn't need stack checking anyway.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
---
 arch/x86/Kconfig            | 1 +
 arch/x86/purgatory/Makefile | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index c46662f..adc5a6d 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -155,6 +155,7 @@ config X86
 	select VIRT_TO_BUS
 	select X86_DEV_DMA_OPS			if X86_64
 	select X86_FEATURE_NAMES		if PROC_FS
+	select HAVE_STACK_VALIDATION		if X86_64
 
 config INSTRUCTION_DECODER
 	def_bool y
diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile
index 2c835e3..92e3e1d 100644
--- a/arch/x86/purgatory/Makefile
+++ b/arch/x86/purgatory/Makefile
@@ -1,3 +1,5 @@
+OBJECT_FILES_NON_STANDARD := y
+
 purgatory-y := purgatory.o stack.o setup-x86_$(BITS).o sha256.o entry64.o string.o
 
 targets += $(purgatory-y)
-- 
2.4.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web