Searched refs:random_offset (Results 1 – 3 of 3) sorted by relevance
21 #define RELOCATED_KASLR(x) ((void *)((long)x + random_offset))61 static inline void __init relocate_absolute(long random_offset) in relocate_absolute() argument209 unsigned long random_offset; in determine_relocation_address() local217 random_offset = get_random_boot() << 16; in determine_relocation_address()218 random_offset &= (CONFIG_RANDOMIZE_BASE_MAX_OFFSET - 1); in determine_relocation_address()219 if (random_offset < kernel_length) in determine_relocation_address()220 random_offset += ALIGN(kernel_length, 0xffff); in determine_relocation_address()275 static inline void __init update_reloc_offset(unsigned long *addr, long random_offset) in update_reloc_offset() argument285 unsigned long random_offset = 0; in relocate_kernel() local296 random_offset = (unsigned long)location_new - (unsigned long)(_text); in relocate_kernel()[all …]
28 unsigned int random_offset = 0; in efi_get_kimg_kaslr_address() local32 efi_get_random_bytes(sizeof(random_offset), (u8 *)&random_offset); in efi_get_kimg_kaslr_address()33 random_offset ^= (random_get_entropy() << 16); in efi_get_kimg_kaslr_address()34 random_offset &= (CONFIG_RANDOMIZE_BASE_MAX_OFFSET - 1); in efi_get_kimg_kaslr_address()35 random_offset = ALIGN(random_offset + SZ_64K, SZ_64K); in efi_get_kimg_kaslr_address()39 return PHYSADDR(VMLINUX_LOAD_ADDRESS) + random_offset; in efi_get_kimg_kaslr_address()
129 static u64 random_offset(u64 start, u64 end, u64 len, u64 align) in random_offset() function274 offset = random_offset(start, end, in i915_gem_gtt_insert()