Home
last modified time | relevance | path

Searched refs:klp_info (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/arch/x86/kernel/
Dlivepatch.c23 info = patch->mod->klp_info; in arch_klp_init_object_loaded()
/Linux-v5.4/kernel/livepatch/
Dcore.c262 for (i = 1; i < pmod->klp_info->hdr.e_shnum; i++) { in klp_write_object_relocations()
263 sec = pmod->klp_info->sechdrs + i; in klp_write_object_relocations()
264 secname = pmod->klp_info->secstrings + sec->sh_name; in klp_write_object_relocations()
288 ret = apply_relocate_add(pmod->klp_info->sechdrs, in klp_write_object_relocations()
290 pmod->klp_info->symndx, i, pmod); in klp_write_object_relocations()
/Linux-v5.4/kernel/
Dmodule.c2100 size = sizeof(*mod->klp_info); in copy_module_elf()
2101 mod->klp_info = kmalloc(size, GFP_KERNEL); in copy_module_elf()
2102 if (mod->klp_info == NULL) in copy_module_elf()
2106 size = sizeof(mod->klp_info->hdr); in copy_module_elf()
2107 memcpy(&mod->klp_info->hdr, info->hdr, size); in copy_module_elf()
2111 mod->klp_info->sechdrs = kmemdup(info->sechdrs, size, GFP_KERNEL); in copy_module_elf()
2112 if (mod->klp_info->sechdrs == NULL) { in copy_module_elf()
2119 mod->klp_info->secstrings = kmemdup(info->secstrings, size, GFP_KERNEL); in copy_module_elf()
2120 if (mod->klp_info->secstrings == NULL) { in copy_module_elf()
2127 mod->klp_info->symndx = symndx; in copy_module_elf()
[all …]
/Linux-v5.4/include/linux/
Dmodule.h485 struct klp_modinfo *klp_info; member
/Linux-v5.4/Documentation/livepatch/
Dmodule-elf-format.rst318 module->klp_info, which is a klp_modinfo struct. When a livepatch module loads,