Home
last modified time | relevance | path

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

/linux/arch/x86/mm/
H A Dkaslr.c52 } 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()
[all …]