Searched refs:init_layout (Results 1 – 11 of 11) sorted by relevance
/linux-6.1.9/kernel/module/ |
D | strict_rwx.c | 79 layout_check_misalignment(&mod->init_layout); in module_check_misalignment() 85 !PAGE_ALIGNED(mod->init_layout.base)) in module_enable_x() 89 frob_text(&mod->init_layout, set_memory_x); in module_enable_x() 102 set_vm_flush_reset_perms(mod->init_layout.base); in module_enable_ro() 106 frob_text(&mod->init_layout, set_memory_ro); in module_enable_ro() 107 frob_rodata(&mod->init_layout, set_memory_ro); in module_enable_ro() 121 frob_rodata(&mod->init_layout, set_memory_nx); in module_enable_nx() 122 frob_writable_data(&mod->init_layout, set_memory_nx); in module_enable_nx()
|
D | tree_lookup.c | 81 mod->init_layout.mtn.mod = mod; in mod_tree_insert() 84 if (mod->init_layout.size) in mod_tree_insert() 85 __mod_tree_insert(&mod->init_layout.mtn, &mod_tree); in mod_tree_insert() 95 if (mod->init_layout.size) in mod_tree_remove_init() 96 __mod_tree_remove(&mod->init_layout.mtn, &mod_tree); in mod_tree_remove_init()
|
D | kallsyms.c | 119 symsect->sh_entsize = module_get_offset(mod, &mod->init_layout.size, symsect, in layout_symtab() 147 strsect->sh_entsize = module_get_offset(mod, &mod->init_layout.size, strsect, in layout_symtab() 152 mod->init_layout.size = ALIGN(mod->init_layout.size, in layout_symtab() 154 info->mod_kallsyms_init_off = mod->init_layout.size; in layout_symtab() 155 mod->init_layout.size += sizeof(struct mod_kallsyms); in layout_symtab() 156 info->init_typeoffs = mod->init_layout.size; in layout_symtab() 157 mod->init_layout.size += nsrc * sizeof(char); in layout_symtab() 158 mod->init_layout.size = strict_align(mod->init_layout.size); in layout_symtab() 176 mod->kallsyms = (void __rcu *)mod->init_layout.base + in add_kallsyms() 186 rcu_dereference(mod->kallsyms)->typetab = mod->init_layout.base + info->init_typeoffs; in add_kallsyms() [all …]
|
D | main.c | 115 if (mod->init_layout.size) in mod_update_bounds() 116 __mod_update_bounds(mod->init_layout.base, mod->init_layout.size, &mod_tree); in mod_update_bounds() 951 return sprintf(buffer, "%u\n", mk->mod->init_layout.size); in show_initsize() 1194 module_memfree(mod->init_layout.base); in free_module() 1484 s->sh_entsize = (module_get_offset(mod, &mod->init_layout.size, s, i) in layout_sections() 1490 mod->init_layout.size = strict_align(mod->init_layout.size); in layout_sections() 1491 mod->init_layout.text_size = mod->init_layout.size; in layout_sections() 1494 mod->init_layout.size = strict_align(mod->init_layout.size); in layout_sections() 1495 mod->init_layout.ro_size = mod->init_layout.size; in layout_sections() 1502 mod->init_layout.ro_after_init_size = mod->init_layout.ro_size; in layout_sections() [all …]
|
D | procfs.c | 76 size = mod->init_layout.size + mod->core_layout.size; in m_show()
|
/linux-6.1.9/include/linux/ |
D | module.h | 423 struct module_layout init_layout; member 591 return (unsigned long)mod->init_layout.base <= addr && in within_module_init() 592 addr < (unsigned long)mod->init_layout.base + mod->init_layout.size; in within_module_init()
|
/linux-6.1.9/arch/arm/kernel/ |
D | module-plts.c | 33 return loc - (u32)mod->init_layout.base < mod->init_layout.size; in in_init()
|
/linux-6.1.9/arch/arm64/kernel/ |
D | module-plts.c | 70 return (u64)loc - (u64)mod->init_layout.base < mod->init_layout.size; in in_init()
|
/linux-6.1.9/arch/parisc/kernel/ |
D | module.c | 83 return (loc >= me->init_layout.base && in in_init() 84 loc <= (me->init_layout.base + me->init_layout.size)); in in_init()
|
/linux-6.1.9/arch/ia64/kernel/ |
D | module.c | 491 return addr - (uint64_t) mod->init_layout.base < mod->init_layout.size; in in_init() 680 val -= (uint64_t) (in_init(mod, val) ? mod->init_layout.base : mod->core_layout.base); in do_reloc()
|
/linux-6.1.9/arch/arc/kernel/ |
D | unwind.c | 382 module->init_layout.base, module->init_layout.size, in unwind_add_table()
|