Home
last modified time | relevance | path

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

/arch/x86/mm/
Dkaslr.c62 } kaslr_regions[] = { variable
108 BUG_ON(kaslr_regions[0].base != &page_offset_base); in kernel_randomize_memory()
113 if (memory_tb < kaslr_regions[0].size_tb) in kernel_randomize_memory()
114 kaslr_regions[0].size_tb = memory_tb; in kernel_randomize_memory()
118 for (i = 0; i < ARRAY_SIZE(kaslr_regions); i++) in kernel_randomize_memory()
119 remain_entropy -= get_padding(&kaslr_regions[i]); in kernel_randomize_memory()
123 for (i = 0; i < ARRAY_SIZE(kaslr_regions); i++) { in kernel_randomize_memory()
130 entropy = remain_entropy / (ARRAY_SIZE(kaslr_regions) - i); in kernel_randomize_memory()
137 *kaslr_regions[i].base = vaddr; in kernel_randomize_memory()
143 vaddr += get_padding(&kaslr_regions[i]); in kernel_randomize_memory()