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.
Showing the changes to tools/include/linux (1 of 17 files). Show all
Unified · Split
| @@ -38,7 +38,7 @@ struct unwind_hint { · 37 unmodified lines | |||
| 38 | #define UNWIND_HINT_TYPE_REGS_PARTIAL 2 | 38 | #define UNWIND_HINT_TYPE_REGS_PARTIAL 2 |
| 39 | #define UNWIND_HINT_TYPE_FUNC 3 | 39 | #define UNWIND_HINT_TYPE_FUNC 3 |
| 40 | 40 | ||
| 41 | #ifdef CONFIG_STACK_VALIDATION | 41 | #ifdef CONFIG_OBJTOOL |
| 42 | 42 | ||
| 43 | #ifndef __ASSEMBLY__ | 43 | #ifndef __ASSEMBLY__ |
| 44 | 44 | ||
| @@ -157,7 +157,7 @@ struct unwind_hint { · 112 unmodified lines | |||
| 157 | 157 | ||
| 158 | #endif /* __ASSEMBLY__ */ | 158 | #endif /* __ASSEMBLY__ */ |
| 159 | 159 | ||
| 160 | #else /* !CONFIG_STACK_VALIDATION */ | 160 | #else /* !CONFIG_OBJTOOL */ |
| 161 | 161 | ||
| 162 | #ifndef __ASSEMBLY__ | 162 | #ifndef __ASSEMBLY__ |
| 163 | 163 | ||
| @@ -179,6 +179,6 @@ struct unwind_hint { · 15 unmodified lines | |||
| 179 | .endm | 179 | .endm |
| 180 | #endif | 180 | #endif |
| 181 | 181 | ||
| 182 | #endif /* CONFIG_STACK_VALIDATION */ | 182 | #endif /* CONFIG_OBJTOOL */ |
| 183 | 183 | ||
| 184 | #endif /* _LINUX_OBJTOOL_H */ | 184 | #endif /* _LINUX_OBJTOOL_H */ |