lkml.org 
[lkml]   [2018]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v8 0/3] x86/boot/KASLR: Parse ACPI table and limit kaslr in immovable memory
    On Sat, Oct 13, 2018 at 05:45:51PM -0400, Masayoshi Mizuma wrote:
    > Yes, but I think we need to arrange the Chao's SRAT parsing to be used
    > from kernel_randomize_memory() because Chao's approach needs the SRAT
    > parsing before extract kernel and the padding size calculation needs
    > the parsing in start_kernel(), so they are living in different life
    > cycle and space.

    Or you would like to pass some info from the compressed kernel to kernel
    proper?

    For example, something like the passing in add_e820ext() and the consumtion
    in parse_setup_data():

    switch (data_type) {
    case SETUP_E820_EXT:
    e820__memory_setup_extended(pa_data, data_len);

    So info you need for your padding gets collected in
    arch/x86/boot/compressed/acpitb.c and you consume it in
    kernel_randomize_memory()?

    Would that work?

    :-)

    --
    Regards/Gruss,
    Boris.

    Good mailing practices for 400: avoid top-posting and trim the reply.

    \
     
     \ /
      Last update: 2018-10-14 00:07    [W:2.411 / U:0.852 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site