Lines Matching refs:kaslr_regions
52 } kaslr_regions[] = { variable
101 kaslr_regions[0].size_tb = 1 << (MAX_PHYSMEM_BITS - TB_SHIFT); in kernel_randomize_memory()
102 kaslr_regions[1].size_tb = VMALLOC_SIZE_TB; in kernel_randomize_memory()
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()
120 vmemmap_size = (kaslr_regions[0].size_tb << (TB_SHIFT - PAGE_SHIFT)) * in kernel_randomize_memory()
122 kaslr_regions[2].size_tb = DIV_ROUND_UP(vmemmap_size, 1UL << TB_SHIFT); in kernel_randomize_memory()
126 for (i = 0; i < ARRAY_SIZE(kaslr_regions); i++) in kernel_randomize_memory()
127 remain_entropy -= get_padding(&kaslr_regions[i]); in kernel_randomize_memory()
131 for (i = 0; i < ARRAY_SIZE(kaslr_regions); i++) { in kernel_randomize_memory()
138 entropy = remain_entropy / (ARRAY_SIZE(kaslr_regions) - i); in kernel_randomize_memory()
142 *kaslr_regions[i].base = vaddr; in kernel_randomize_memory()
145 vaddr += get_padding(&kaslr_regions[i]); in kernel_randomize_memory()
152 if (kaslr_regions[i].end) in kernel_randomize_memory()
153 *kaslr_regions[i].end = __pa_nodebug(vaddr - 1); in kernel_randomize_memory()