objtool: Add CONFIG_OBJTOOL
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 18 Apr 2022 16:50:36 +0000 (09:50 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 22 Apr 2022 10:32:03 +0000 (12:32 +0200)
commit03f16cd020eb8bb2eb837e2090086f296a9fa91d
tree7fea369cfc86508e8c7d3742c85e80ffe33478db
parentc2bdd61c98d915ad2cc1f8cd4661fcda1f1e4c16
objtool: Add CONFIG_OBJTOOL

Now that stack validation is an optional feature of objtool, add
CONFIG_OBJTOOL and replace most usages of CONFIG_STACK_VALIDATION with
it.

CONFIG_STACK_VALIDATION can now be considered to be frame-pointer
specific.  CONFIG_UNWINDER_ORC is already inherently valid for live
patching, so no need to "validate" it.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lkml.kernel.org/r/939bf3d85604b2a126412bf11af6e3bd3b872bcb.1650300597.git.jpoimboe@redhat.com
17 files changed:
Makefile
arch/Kconfig
arch/x86/Kconfig
arch/x86/Kconfig.debug
arch/x86/include/asm/jump_label.h
arch/x86/kernel/alternative.c
include/linux/compiler.h
include/linux/instrumentation.h
include/linux/objtool.h
kernel/trace/Kconfig
lib/Kconfig.debug
lib/Kconfig.kcsan
lib/Kconfig.ubsan
scripts/Makefile.build
scripts/link-vmlinux.sh
scripts/package/builddeb
tools/include/linux/objtool.h