| /kernel/bpf/ |
| A D | ringbuf.c | 388 struct bpf_ringbuf_hdr *hdr) in bpf_ringbuf_rec_pg_off() argument 408 struct bpf_ringbuf_hdr *hdr; in __bpf_ringbuf_reserve() local 429 hdr_len = READ_ONCE(hdr->len); in __bpf_ringbuf_reserve() 452 hdr->len = size | BPF_RINGBUF_BUSY_BIT; in __bpf_ringbuf_reserve() 453 hdr->pg_off = pg_off; in __bpf_ringbuf_reserve() 460 return (void *)hdr + BPF_RINGBUF_HDR_SZ; in __bpf_ringbuf_reserve() 485 struct bpf_ringbuf_hdr *hdr; in bpf_ringbuf_commit() local 489 hdr = sample - BPF_RINGBUF_HDR_SZ; in bpf_ringbuf_commit() 490 rb = bpf_ringbuf_restore_from_rec(hdr); in bpf_ringbuf_commit() 496 xchg(&hdr->len, new_len); in bpf_ringbuf_commit() [all …]
|
| A D | btf.c | 260 struct btf_header hdr; member 1590 hdr = &btf->hdr; in btf_verifier_log_hdr() 1790 return &btf->hdr; in btf_header() 5257 hdr = &btf->hdr; in btf_check_all_metas() 5388 const struct btf_header *hdr = &env->btf->hdr; in btf_parse_type_sec() local 5415 hdr = &btf->hdr; in btf_parse_str_sec() 5428 if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_NAME_OFFSET || end[-1]) { in btf_parse_str_sec() 5462 hdr = &btf->hdr; in btf_check_sec_info() 5520 hdr = btf->data; in btf_parse_hdr() 5543 hdr = &btf->hdr; in btf_parse_hdr() [all …]
|
| A D | core.c | 1092 struct bpf_binary_header *hdr; in bpf_jit_binary_alloc() local 1106 hdr = bpf_jit_alloc_exec(size); in bpf_jit_binary_alloc() 1107 if (!hdr) { in bpf_jit_binary_alloc() 1113 bpf_fill_ill_insns(hdr, size); in bpf_jit_binary_alloc() 1115 hdr->size = size; in bpf_jit_binary_alloc() 1117 PAGE_SIZE - sizeof(*hdr)); in bpf_jit_binary_alloc() 1121 *image_ptr = &hdr->image[start]; in bpf_jit_binary_alloc() 1123 return hdr; in bpf_jit_binary_alloc() 1128 u32 size = hdr->size; in bpf_jit_binary_free() 1130 bpf_jit_free_exec(hdr); in bpf_jit_binary_free() [all …]
|
| /kernel/module/ |
| A D | main.c | 1855 info->hdr->e_machine); in elf_validity_ehdr() 1860 info->hdr->e_machine); in elf_validity_ehdr() 1910 sechdrs = (void *)info->hdr + info->hdr->e_shoff; in elf_validity_cache_sechdrs() 1972 || info->hdr->e_shstrndx >= info->hdr->e_shnum) { in elf_validity_cache_secstrings() 1974 info->hdr->e_shstrndx, info->hdr->e_shstrndx, in elf_validity_cache_secstrings() 1975 info->hdr->e_shnum); in elf_validity_cache_secstrings() 2220 name = (void *)info->hdr + in elf_validity_cache_index_versions() 2446 if (!info->hdr) in copy_module_from_user() 2458 vfree(info->hdr); in copy_module_from_user() 2468 vfree(info->hdr); in free_copy() [all …]
|
| A D | livepatch.c | 29 size = sizeof(mod->klp_info->hdr); in copy_module_elf() 30 memcpy(&mod->klp_info->hdr, info->hdr, size); in copy_module_elf() 33 size = sizeof(*info->sechdrs) * info->hdr->e_shnum; in copy_module_elf() 41 size = info->sechdrs[info->hdr->e_shstrndx].sh_size; in copy_module_elf()
|
| A D | strict_rwx.c | 90 int module_enforce_rwx_sections(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_enforce_rwx_sections() argument 100 for (i = 0; i < hdr->e_shnum; i++) { in module_enforce_rwx_sections() 135 void module_mark_ro_after_init(const Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_mark_ro_after_init() argument 140 for (i = 1; i < hdr->e_shnum; i++) { in module_mark_ro_after_init()
|
| A D | decompress.c | 317 info->hdr = vmap(info->pages, info->used_pages, VM_MAP, PAGE_KERNEL); in module_decompress() 318 if (!info->hdr) { in module_decompress() 335 if (info->hdr) in module_decompress_cleanup() 336 vunmap(info->hdr); in module_decompress_cleanup()
|
| A D | sysfs.c | 74 for (i = 0; i < info->hdr->e_shnum; i++) in add_sect_attrs() 92 for (i = 0; i < info->hdr->e_shnum; i++) { in add_sect_attrs() 161 for (i = 0; i < info->hdr->e_shnum; i++) in add_notes_attrs() 184 for (loaded = i = 0; i < info->hdr->e_shnum; ++i) { in add_notes_attrs()
|
| A D | internal.h | 68 Elf_Ehdr *hdr; member 335 int module_enforce_rwx_sections(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, 338 void module_mark_ro_after_init(const Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
|
| A D | kallsyms.c | 128 src = (void *)info->hdr + symsect->sh_offset; in layout_symtab() 134 is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum, in layout_symtab() 202 is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum, in add_kallsyms() 230 for (i = 0; i < info->hdr->e_shnum; i++) { in init_build_id()
|
| A D | signing.c | 75 const void *mod = info->hdr; in module_sig_check()
|
| /kernel/ |
| A D | cfi.c | 65 void module_cfi_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_cfi_finalize() argument 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()
|
| A D | kexec_handover.c | 237 struct khoser_mem_chunk_hdr hdr; member 251 chunk->hdr.order = order; in new_chunk() 253 KHOSER_STORE_PTR(cur_chunk->hdr.next, chunk); in new_chunk() 264 chunk = KHOSER_LOAD_PTR(chunk->hdr.next); in kho_mem_ser_free() 290 if (chunk->hdr.num_elms == ARRAY_SIZE(chunk->bitmaps)) { in kho_mem_serialize() 296 elm = &chunk->bitmaps[chunk->hdr.num_elms]; in kho_mem_serialize() 297 chunk->hdr.num_elms++; in kho_mem_serialize() 348 for (i = 0; i != chunk->hdr.num_elms; i++) in kho_mem_deserialize() 349 deserialize_bitmap(chunk->hdr.order, in kho_mem_deserialize() 351 chunk = KHOSER_LOAD_PTR(chunk->hdr.next); in kho_mem_deserialize()
|
| A D | auditsc.c | 2880 switch (friar->hdr.type) { in __audit_fanotify() 2889 response, friar->hdr.type, friar->rule_number, in __audit_fanotify()
|
| /kernel/bpf/preload/iterators/ |
| A D | iterators.bpf.c | 37 struct btf_header hdr; member 71 if (name_off >= btf->hdr.str_len) in get_name()
|
| /kernel/livepatch/ |
| A D | core.c | 830 for (i = 1; i < info->hdr.e_shnum; i++) { in klp_write_object_relocs()
|