aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-05-05 17:26:11 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-05 17:26:11 -0400
commit13369e831173251e2bc3bc2a78f67c387e8d9609 (patch)
tree808ee4905d77f516403baaa9fd461a4b2bcceaf3
parent51987affd626b8e4ce9f4c65e1950cb9159f0f58 (diff)
parentb51ce3744f115850166f3d6c292b9c8cb849ad4f (diff)
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fix from Ingo Molnar: "Disable function tracing during early SME setup to fix a boot crash on SME-enabled kernels running distro kernels (some of which have function tracing enabled)" * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/mm/mem_encrypt: Disable all instrumentation for early SME setup
-rw-r--r--arch/x86/lib/Makefile12
-rw-r--r--lib/Makefile11
2 files changed, 23 insertions, 0 deletions
diff --git a/arch/x86/lib/Makefile b/arch/x86/lib/Makefile
index 140e61843a07..3cb3af51ec89 100644
--- a/arch/x86/lib/Makefile
+++ b/arch/x86/lib/Makefile
@@ -6,6 +6,18 @@
6# Produces uninteresting flaky coverage. 6# Produces uninteresting flaky coverage.
7KCOV_INSTRUMENT_delay.o := n 7KCOV_INSTRUMENT_delay.o := n
8 8
9# Early boot use of cmdline; don't instrument it
10ifdef CONFIG_AMD_MEM_ENCRYPT
11KCOV_INSTRUMENT_cmdline.o := n
12KASAN_SANITIZE_cmdline.o := n
13
14ifdef CONFIG_FUNCTION_TRACER
15CFLAGS_REMOVE_cmdline.o = -pg
16endif
17
18CFLAGS_cmdline.o := $(call cc-option, -fno-stack-protector)
19endif
20
9inat_tables_script = $(srctree)/arch/x86/tools/gen-insn-attr-x86.awk 21inat_tables_script = $(srctree)/arch/x86/tools/gen-insn-attr-x86.awk
10inat_tables_maps = $(srctree)/arch/x86/lib/x86-opcode-map.txt 22inat_tables_maps = $(srctree)/arch/x86/lib/x86-opcode-map.txt
11quiet_cmd_inat_tables = GEN $@ 23quiet_cmd_inat_tables = GEN $@
diff --git a/lib/Makefile b/lib/Makefile
index 3b08673e8881..18c2be516ab4 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -17,6 +17,17 @@ KCOV_INSTRUMENT_list_debug.o := n
17KCOV_INSTRUMENT_debugobjects.o := n 17KCOV_INSTRUMENT_debugobjects.o := n
18KCOV_INSTRUMENT_dynamic_debug.o := n 18KCOV_INSTRUMENT_dynamic_debug.o := n
19 19
20# Early boot use of cmdline, don't instrument it
21ifdef CONFIG_AMD_MEM_ENCRYPT
22KASAN_SANITIZE_string.o := n
23
24ifdef CONFIG_FUNCTION_TRACER
25CFLAGS_REMOVE_string.o = -pg
26endif
27
28CFLAGS_string.o := $(call cc-option, -fno-stack-protector)
29endif
30
20lib-y := ctype.o string.o vsprintf.o cmdline.o \ 31lib-y := ctype.o string.o vsprintf.o cmdline.o \
21 rbtree.o radix-tree.o timerqueue.o xarray.o \ 32 rbtree.o radix-tree.o timerqueue.o xarray.o \
22 idr.o int_sqrt.o extable.o \ 33 idr.o int_sqrt.o extable.o \