Contributors: 8
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Sami Tolvanen |
111 |
78.17% |
2 |
20.00% |
Jeremy Fitzhardinge |
11 |
7.75% |
1 |
10.00% |
Linus Torvalds (pre-git) |
6 |
4.23% |
2 |
20.00% |
Kai Germaschewski |
6 |
4.23% |
1 |
10.00% |
Peter Zijlstra |
4 |
2.82% |
1 |
10.00% |
Aaron Tomlin |
2 |
1.41% |
1 |
10.00% |
Greg Kroah-Hartman |
1 |
0.70% |
1 |
10.00% |
Andrew Morton |
1 |
0.70% |
1 |
10.00% |
Total |
142 |
|
10 |
|
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Clang Control Flow Integrity (CFI) support.
*
* Copyright (C) 2022 Google LLC
*/
#ifndef _LINUX_CFI_H
#define _LINUX_CFI_H
#include <linux/bug.h>
#include <linux/module.h>
#ifdef CONFIG_CFI_CLANG
enum bug_trap_type report_cfi_failure(struct pt_regs *regs, unsigned long addr,
unsigned long *target, u32 type);
static inline enum bug_trap_type report_cfi_failure_noaddr(struct pt_regs *regs,
unsigned long addr)
{
return report_cfi_failure(regs, addr, NULL, 0);
}
#ifdef CONFIG_ARCH_USES_CFI_TRAPS
bool is_cfi_trap(unsigned long addr);
#endif
#endif /* CONFIG_CFI_CLANG */
#ifdef CONFIG_MODULES
#ifdef CONFIG_ARCH_USES_CFI_TRAPS
void module_cfi_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
struct module *mod);
#else
static inline void module_cfi_finalize(const Elf_Ehdr *hdr,
const Elf_Shdr *sechdrs,
struct module *mod) {}
#endif /* CONFIG_ARCH_USES_CFI_TRAPS */
#endif /* CONFIG_MODULES */
#endif /* _LINUX_CFI_H */