Home
last modified time | relevance | path

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

/linux-6.6.21/include/linux/
Dstackprotector.h25 return get_random_long() & CANARY_MASK; in get_random_canary()
Drandom.h44 static inline unsigned long get_random_long(void) in get_random_long() function
/linux-6.6.21/arch/arm64/kvm/
Darm.c2162 hyp_ctxt->sys_regs[APIAKEYLO_EL1] = get_random_long(); in pkvm_hyp_init_ptrauth()
2163 hyp_ctxt->sys_regs[APIAKEYHI_EL1] = get_random_long(); in pkvm_hyp_init_ptrauth()
2164 hyp_ctxt->sys_regs[APIBKEYLO_EL1] = get_random_long(); in pkvm_hyp_init_ptrauth()
2165 hyp_ctxt->sys_regs[APIBKEYHI_EL1] = get_random_long(); in pkvm_hyp_init_ptrauth()
2166 hyp_ctxt->sys_regs[APDAKEYLO_EL1] = get_random_long(); in pkvm_hyp_init_ptrauth()
2167 hyp_ctxt->sys_regs[APDAKEYHI_EL1] = get_random_long(); in pkvm_hyp_init_ptrauth()
2168 hyp_ctxt->sys_regs[APDBKEYLO_EL1] = get_random_long(); in pkvm_hyp_init_ptrauth()
2169 hyp_ctxt->sys_regs[APDBKEYHI_EL1] = get_random_long(); in pkvm_hyp_init_ptrauth()
2170 hyp_ctxt->sys_regs[APGAKEYLO_EL1] = get_random_long(); in pkvm_hyp_init_ptrauth()
2171 hyp_ctxt->sys_regs[APGAKEYHI_EL1] = get_random_long(); in pkvm_hyp_init_ptrauth()
Dtrng.c37 bits[i] = get_random_long(); in kvm_trng_do_rnd()
Dva_layout.c77 tag_val |= get_random_long() & GENMASK_ULL(vabits_actual - 2, tag_lsb); in kvm_compute_layout()
/linux-6.6.21/mm/
Dutil.c327 random_variable = get_random_long(); in randomize_stack_top()
367 return start + (get_random_long() % range << PAGE_SHIFT); in randomize_page()
386 rnd = get_random_long() & ((1UL << mmap_rnd_compat_bits) - 1); in arch_mmap_rnd()
389 rnd = get_random_long() & ((1UL << mmap_rnd_bits) - 1); in arch_mmap_rnd()
Dshuffle.c113 ALIGN_DOWN(get_random_long() % z->spanned_pages, in __shuffle_zone()
Ddebug_vm_pgtable.c1021 random_pages = get_random_long() % total_user_pages; in get_random_vaddr()
Dslub.c4513 s->random = get_random_long(); in kmem_cache_open()
/linux-6.6.21/arch/x86/mm/
Dmmap.c74 return (get_random_long() & ((1UL << rndbits) - 1)) << PAGE_SHIFT; in arch_rnd()
/linux-6.6.21/arch/x86/kernel/
Despfix_64.c97 unsigned long rand = get_random_long(); in init_espfix_random()
/linux-6.6.21/arch/powerpc/lib/
Dcode-patching.c164 addr = (1 + (get_random_long() % (DEFAULT_MAP_WINDOW / PAGE_SIZE - 2))) << PAGE_SHIFT; in text_area_cpu_up_mm()
/linux-6.6.21/arch/sparc/kernel/
Dsys_sparc_64.c271 unsigned long val = get_random_long(); in mmap_rnd()
/linux-6.6.21/arch/powerpc/kernel/
Dprocess.c2000 current->thread.hashkeyr = get_random_long(); in start_thread()