]> Git Repo - J-linux.git/commitdiff
objtool: Fix obsolete reference to CONFIG_X86_SMAP
authorJosh Poimboeuf <[email protected]>
Wed, 1 Jun 2022 16:42:12 +0000 (09:42 -0700)
committerJosh Poimboeuf <[email protected]>
Mon, 6 Jun 2022 18:49:55 +0000 (11:49 -0700)
CONFIG_X86_SMAP no longer exists.  For objtool's purposes it has been
replaced with CONFIG_HAVE_UACCESS_VALIDATION.

Fixes: 03f16cd020eb ("objtool: Add CONFIG_OBJTOOL")
Reported-by: Lukas Bulwahn <[email protected]>
Signed-off-by: Josh Poimboeuf <[email protected]>
Link: https://lore.kernel.org/r/44c57668768c1ba1b4ba1ff541ec54781636e07c.1654101721.git.jpoimboe@kernel.org
lib/Kconfig.ubsan

index c4fe15d38b60eae97e1b4c8b63f17a7dd0012499..a9f7eb04776851ac8e5aaeb9d5919fed167636ee 100644 (file)
@@ -94,7 +94,7 @@ config UBSAN_UNREACHABLE
        bool "Perform checking for unreachable code"
        # objtool already handles unreachable checking and gets angry about
        # seeing UBSan instrumentation located in unreachable places.
-       depends on !(OBJTOOL && (STACK_VALIDATION || UNWINDER_ORC || X86_SMAP))
+       depends on !(OBJTOOL && (STACK_VALIDATION || UNWINDER_ORC || HAVE_UACCESS_VALIDATION))
        depends on $(cc-option,-fsanitize=unreachable)
        help
          This option enables -fsanitize=unreachable which checks for control
This page took 0.058085 seconds and 4 git commands to generate.