Searched refs:random_offset (Results 1 – 2 of 2) sorted by relevance
21 #define RELOCATED_KASLR(x) ((void *)((long)x + random_offset))45 static inline void __init relocate_absolute(long random_offset) in relocate_absolute() argument134 unsigned long random_offset; in determine_relocation_address() local142 random_offset = get_random_boot() << 16; in determine_relocation_address()143 random_offset &= (CONFIG_RANDOMIZE_BASE_MAX_OFFSET - 1); in determine_relocation_address()144 if (random_offset < kernel_length) in determine_relocation_address()145 random_offset += ALIGN(kernel_length, 0xffff); in determine_relocation_address()162 static inline void __init update_reloc_offset(unsigned long *addr, long random_offset) in update_reloc_offset() argument172 unsigned long random_offset = 0; in relocate_kernel() local183 random_offset = (unsigned long)location_new - (unsigned long)(_text); in relocate_kernel()[all …]
130 static u64 random_offset(u64 start, u64 end, u64 len, u64 align) in random_offset() function275 offset = random_offset(start, end, in i915_gem_gtt_insert()