We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cd3e37 commit e9d13b9Copy full SHA for e9d13b9
arch/x86/include/asm/cfi.h
@@ -8,6 +8,7 @@
8
* Copyright (C) 2022 Google LLC
9
*/
10
#include <linux/bug.h>
11
+#include <asm/ibt.h>
12
13
/*
14
* An overview of the various calling conventions...
@@ -138,4 +139,8 @@ static inline u32 cfi_get_func_hash(void *func)
138
139
}
140
#endif /* CONFIG_CFI_CLANG */
141
142
+#if HAS_KERNEL_IBT == 1
143
+#define CFI_NOSEAL(x) asm(IBT_NOSEAL(__stringify(x)))
144
+#endif
145
+
146
#endif /* _ASM_X86_CFI_H */
include/linux/cfi.h
@@ -46,4 +46,8 @@ static inline void module_cfi_finalize(const Elf_Ehdr *hdr,
46
#endif /* CONFIG_ARCH_USES_CFI_TRAPS */
47
#endif /* CONFIG_MODULES */
48
49
+#ifndef CFI_NOSEAL
50
+#define CFI_NOSEAL(x)
51
52
53
#endif /* _LINUX_CFI_H */
0 commit comments