efi_kaslr_get_phys_seed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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