File Index
Files and directories
Sign in
FILE

cfi.h

File preview with syntax highlighting.

linux-6.19.14/arch/riscv/include/asm/cfi.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef _ASM_RISCV_CFI_H
 3#define _ASM_RISCV_CFI_H
 4
 5/*
 6 * Clang Control Flow Integrity (CFI) support.
 7 *
 8 * Copyright (C) 2023 Google LLC
 9 */
10#include <linux/bug.h>
11
12struct pt_regs;
13
14#ifdef CONFIG_CFI
15enum bug_trap_type handle_cfi_failure(struct pt_regs *regs);
16#define __bpfcall
17#else
18static inline enum bug_trap_type handle_cfi_failure(struct pt_regs *regs)
19{
20	return BUG_TRAP_TYPE_NONE;
21}
22#endif /* CONFIG_CFI */
23
24#endif /* _ASM_RISCV_CFI_H */
~/ Read-only file preview.