On 01/09/2013 02:02 PM, Jordan Justen wrote:
> On Wed, Jan 9, 2013 at 11:12 AM, David Woodhouse <dw...@infradead.org> wrote:
>> We're supposed to zero everything in the kernel bootparams that we don't
>> explicitly initialise, other than the setup_header from 0x1f1 onwards
>> for a precisely defined length, which is copied from the bzImage.
>>
>> We're *not* supposed to just pass the garbage that we happened to find
>> in the bzImage file surrounding the setup_header.
> 
> In which case might this be garbage? A PE/COFF based image?
> 

For all kernels.  For non-EFI-stub kernels there will be a dummy boot
sector there; there is also garbage *after* the initialized header.

> For non-PE/COFF kernels, will be potentially be zero'ing out valuable
> config information built into the image?
> 

No.

        -hpa

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to