lkml.org 
[lkml]   [2007]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [patches] [PATCH] [21/22] x86_64: Extend bzImage protocol for relocatable bzImage
    Date
    "H. Peter Anvin" <hpa@zytor.com> writes:

    > Jeremy Fitzhardinge wrote:
    >> Eric W. Biederman wrote:
    >>> All it does is set a flag that tells a bootloader.
    >>> "Hey. I can run when loaded a non-default address, and this is what
    >>> you have to align me to."
    >>>
    >>> All relocation processing happens in the kernel itself.
    >>>
    >>
    >> Is it possible to decompress and extract the kernel image from the
    >> bzImage without executing it? Ie, is there enough information to find
    >> the compressed data part of the bzImage by inspection?
    >>
    >> At some point we'll need to change the Xen domain builder to handle
    >> bzImage files, and it would be best if we didn't need to run them.
    >>
    >
    > Probabilistically, you might be able to (search for a gzip header), but
    > it is *definitely* not guaranteed by protocol.

    I suspect the issue isn't so much skipping the decompression
    but either getting at the Xen ELF notes or bypassing privileged instructions.


    Eric
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-04-29 20:13    [W:0.023 / U:89.148 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site