plpks_early_init_devtree(9)
π plpks_early_init_devtree(9) β Kernel API Manual β¨
okay so bestie, buckle up, because we're diving into the Kernel API Manual section 9 and this one's a little rescue mission π«Ά
πΈ NAME πΈ
plpks_early_init_devtree β literally goes and grabs the PLPKS password out of the DT during early init, then wipes it clean π§
β¨ SYNOPSIS β¨
void plpks_early_init_devtree (void );
π ARGUMENTS π
voidβ no arguments, babes. she takes nothing, she gives everything π
π¦ DESCRIPTION π¦
okay so here's the situation. once a password is registered with the hypervisor, it cannot be cleared without rebooting the LPAR β that's just the rules, no cap π. so to keep using the PLPKS across kexec boots, we have to recover the previous password from the FDT. iconic behavior honestly π
but it's not that simple, and there are a few challenges here, bestie:
- we do not want the password visible to users π, so we need to clear it from the FDT.
- this has to happen in early boot β° β like, first-thing energy.
- clearing it out of the FDT makes the FDT's checksum invalid π, so we have to manually cause the checksum to be recalculated.
it's giving main-character bugfix energy fr fr π₯
π SEE ALSO π
Kernel file ./arch/powerpc/platforms/pseries/plpks.c π
and the whole plpks friend group, assembled π:
plpks_get_version(9)plpks_get_objoverhead(9)plpks_get_maxpwsize(9)plpks_get_maxobjectsize(9)plpks_get_maxobjectlabelsize(9)plpks_get_totalsize(9)plpks_get_usedspace(9)plpks_get_supportedpolicies(9)plpks_get_maxlargeobjectsize(9)plpks_get_signedupdatealgorithms(9)plpks_get_wrappingfeatures(9)plpks_get_passwordlen(9)plpks_is_available(9)plpks_signed_update_var(9)plpks_write_var(9)plpks_remove_var(9)plpks_wrapping_is_supported(9)plpks_gen_wrapping_key(9)plpks_wrap_object(9)plpks_unwrap_object(9)plpks_read_os_var(9)plpks_read_fw_var(9)plpks_read_bootloader_var(9)plpks_populate_fdt(9)
lowkey obsessed with how many friends she has π
and that's the tea, bestie β this page lives in ./arch/powerpc/platforms/pseries, dated October 2026, and it's your girl plpks_early_init_devtree(9) signing off ππ
β¨
π¦ 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