Skip to content
  • Kees Cook's avatar
    x86/KASLR: Clarify identity map interface · 11fdf97a
    Kees Cook authored
    This extracts the call to prepare_level4() into a top-level function
    that the user of the pagetable.c interface must call to initialize
    the new page tables. For clarity and to match the "finalize" function,
    it has been renamed to initialize_identity_maps(). This function also
    gains the initialization of mapping_info so we don't have to do it each
    time in add_identity_map().
    Additionally add copyright notice to the top, to make it clear that the
    bulk of the pagetable.c code was written by Yinghai, and that I just
    added bugs later. :)
    Signed-off-by: default avatarKees Cook <>
    Cc: Andrew Morton <>
    Cc: Andrey Ryabinin <>
    Cc: Andy Lutomirski <>
    Cc: Baoquan He <>
    Cc: Borislav Petkov <>
    Cc: Brian Gerst <>
    Cc: Denys Vlasenko <>
    Cc: Dmitry Vyukov <>
    Cc: H. Peter Anvin <>
    Cc: H.J. Lu <>
    Cc: Josh Poimboeuf <>
    Cc: Linus Torvalds <>
    Cc: Peter Zijlstra <>
    Cc: Thomas Gleixner <>
    Cc: Yinghai Lu <>
    Signed-off-by: default avatarIngo Molnar <>