Lines Matching +full:target +full:- +full:module
1 // SPDX-License-Identifier: GPL-2.0
15 unsigned long *target, u32 type) in report_cfi_failure() argument
17 if (target) in report_cfi_failure()
18 pr_err("CFI failure at %pS (target: %pS; expected type: 0x%08x)\n", in report_cfi_failure()
19 (void *)addr, (void *)*target, type); in report_cfi_failure()
21 pr_err("CFI failure at %pS (no target information)\n", in report_cfi_failure()
33 * Declare two non-existent functions with types that match bpf_func_t and
36 * arch-specific BPF JIT implementations to ensure indirectly callable JIT
64 /* Populates `kcfi_trap(_end)?` fields in `struct module`. */
66 struct module *mod) in module_cfi_finalize()
71 mod->kcfi_traps = NULL; in module_cfi_finalize()
72 mod->kcfi_traps_end = NULL; in module_cfi_finalize()
74 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_cfi_finalize()
76 for (i = 1; i < hdr->e_shnum; i++) { in module_cfi_finalize()
80 mod->kcfi_traps = (s32 *)sechdrs[i].sh_addr; in module_cfi_finalize()
81 mod->kcfi_traps_end = (s32 *)(sechdrs[i].sh_addr + sechdrs[i].sh_size); in module_cfi_finalize()
88 struct module *mod; in is_module_cfi_trap()
94 found = is_trap(addr, mod->kcfi_traps, mod->kcfi_traps_end); in is_module_cfi_trap()