efi_kaslr_get_phys_seed(9)
π efi_kaslr_get_phys_seed β the kernel API manual, bestie edition β¨
okay so picture this: you're deep in Kernel API Manual territory, section 9, and the vibe is extremely EFI stub. say hi to efi_kaslr_get_phys_seed π β she's the one who goes and gets you a fresh little random seed so the kernel's physical mapping can be moved somewhere unpredictable. no cap, she eats.
πΈ NAME πΈ
efi_kaslr_get_phys_seed β get a random seed for physical kernel KASLR π²π
β¨ SYNOPSIS β¨
u32 efi_kaslr_get_phys_seed (efi_handle_t image_handle );
like, that's literally the whole call. one argument, one u32 coming back at you. slay. π
π ARGUMENTS π
image_handleβ handle to the image π«Ά that's the whole description, she's lowkey mysterious but we move.
π¦ DESCRIPTION π¦
okay so here's the tea β: if KASLR is not disabled, this function goes and obtains a random seed using EFI_RNG_PROTOCOL, and that seed is the thing that's gonna be used to move the kernel physical mapping. so like, the seed is the main character here and the physical mapping is just following her lead πβ¨
if KASLR is disabled? then she's not doing the seed thing. periodt. π
π‘ vibe check: no extra behaviour is documented here, so don't go inventing any. we report, we don't speculate. iykyk.
π RETURN π
she returns the random seed π² β a u32 of pure unpredictable goodness. obsessed. π₯
π§ SEE ALSO π§
- Kernel file
./drivers/firmware/efi/libstub/kaslr.cπ efi_kaslr_relocate_kernel(9)π«Ά β her bestie, go read that one next fr fr
πΈ alright babes, that's the whole page πΈ
cute little sign-off before you go: this one lives in ./drivers/firmware/efi/libstub, it's dated October 2026, and the page is literally efi_kaslr_get_phys_seed(9) β which, yes, is the same as the title, we love a consistent queen ππ bye bestie!! βπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms