]> git.baikalelectronics.ru Git - kernel.git/commit
x86/purgatory: Disable the stackleak GCC plugin for the purgatory
authorArvind Sankar <nivedita@alum.mit.edu>
Mon, 23 Sep 2019 17:17:54 +0000 (13:17 -0400)
committerIngo Molnar <mingo@kernel.org>
Mon, 23 Sep 2019 17:48:02 +0000 (19:48 +0200)
commit4237a3cd23ddfe6966014d868e0d41fbb6cfddff
tree4b0f3876f364968a5fb2367af44a5a0d7e3782de
parentd056ceb10c7b08d6e8b0245fb502149da944ad62
x86/purgatory: Disable the stackleak GCC plugin for the purgatory

Since commit:

  f40e96ff0fb5 ("x86/purgatory: Use CFLAGS_REMOVE rather than reset KBUILD_CFLAGS")

kexec breaks if GCC_PLUGIN_STACKLEAK=y is enabled, as the purgatory
contains undefined references to stackleak_track_stack.

Attempting to load a kexec kernel results in this failure:

  kexec: Undefined symbol: stackleak_track_stack
  kexec-bzImage64: Loading purgatory failed

Fix this by disabling the stackleak plugin for the purgatory.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: f40e96ff0fb5 ("x86/purgatory: Use CFLAGS_REMOVE rather than reset KBUILD_CFLAGS")
Link: https://lkml.kernel.org/r/20190923171753.GA2252517@rani.riverdale.lan
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/purgatory/Makefile