diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Makefile.build | 3 | ||||
| -rw-r--r-- | scripts/Makefile.ubsan | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 76ca30cc4791..0c5969fa795f 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
| @@ -222,6 +222,9 @@ endif | |||
| 222 | ifdef CONFIG_RETPOLINE | 222 | ifdef CONFIG_RETPOLINE |
| 223 | objtool_args += --retpoline | 223 | objtool_args += --retpoline |
| 224 | endif | 224 | endif |
| 225 | ifdef CONFIG_X86_SMAP | ||
| 226 | objtool_args += --uaccess | ||
| 227 | endif | ||
| 225 | 228 | ||
| 226 | # 'OBJECT_FILES_NON_STANDARD := y': skip objtool checking for a directory | 229 | # 'OBJECT_FILES_NON_STANDARD := y': skip objtool checking for a directory |
| 227 | # 'OBJECT_FILES_NON_STANDARD_foo.o := 'y': skip objtool checking for a file | 230 | # 'OBJECT_FILES_NON_STANDARD_foo.o := 'y': skip objtool checking for a file |
diff --git a/scripts/Makefile.ubsan b/scripts/Makefile.ubsan index 38b2b4818e8e..019771b845c5 100644 --- a/scripts/Makefile.ubsan +++ b/scripts/Makefile.ubsan | |||
| @@ -3,7 +3,6 @@ ifdef CONFIG_UBSAN | |||
| 3 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=shift) | 3 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=shift) |
| 4 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=integer-divide-by-zero) | 4 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=integer-divide-by-zero) |
| 5 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=unreachable) | 5 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=unreachable) |
| 6 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=vla-bound) | ||
| 7 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=signed-integer-overflow) | 6 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=signed-integer-overflow) |
| 8 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=bounds) | 7 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=bounds) |
| 9 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=object-size) | 8 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=object-size) |
