All of lore.kernel.org
 help / color / mirror / Atom feed
* initrd change breaks binary compatibility
@ 2006-10-10 19:28 John Levon
  2006-10-10 20:31 ` Anthony Liguori
  0 siblings, 1 reply; 5+ messages in thread
From: John Levon @ 2006-10-10 19:28 UTC (permalink / raw)
  To: xen-devel


This change in 3.0.3-testing-rc3:

changeset:   11728:30f13007be3f
user:        kfraser@localhost.localdomain
date:        Mon Oct 09 13:50:00 2006 +0100
files:       tools/libxc/xc_linux_build.c
description:
[XEND] No need to decompress the initrd when building a domain.

breaks binary compatibility. In particular, it breaks Solaris, which
expects both grub and xen to uncompress the initrd for us. And it does
seem odd to differ from grub's behaviour needlessly.

I don't know what causes the broken Linux initrd's that the commit
message refers to, but it seems they need to be fixed another way.

regards,
john

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: initrd change breaks binary compatibility
  2006-10-10 19:28 initrd change breaks binary compatibility John Levon
@ 2006-10-10 20:31 ` Anthony Liguori
  2006-10-10 20:42   ` Keir Fraser
  0 siblings, 1 reply; 5+ messages in thread
From: Anthony Liguori @ 2006-10-10 20:31 UTC (permalink / raw)
  To: John Levon; +Cc: xen-devel

John Levon wrote:
> This change in 3.0.3-testing-rc3:
> 
> changeset:   11728:30f13007be3f
> user:        kfraser@localhost.localdomain
> date:        Mon Oct 09 13:50:00 2006 +0100
> files:       tools/libxc/xc_linux_build.c
> description:
> [XEND] No need to decompress the initrd when building a domain.
> 
> breaks binary compatibility. In particular, it breaks Solaris, which
> expects both grub and xen to uncompress the initrd for us. And it does
> seem odd to differ from grub's behaviour needlessly.
> 
> I don't know what causes the broken Linux initrd's that the commit
> message refers to, but it seems they need to be fixed another way.

I suspect that we're actually broken here.  I think the way we determine 
the uncompressed size (by reading the last couple bytes) is not 
something that can, in generally, be safely relied upon.

We could work around this by decompressing the initrd and dynamically 
expanding the buffer we're decompressing to as needed.

Regards,

Anthony Liguori

> regards,
> john

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: initrd change breaks binary compatibility
  2006-10-10 20:31 ` Anthony Liguori
@ 2006-10-10 20:42   ` Keir Fraser
  2006-10-10 21:34     ` John Levon
  0 siblings, 1 reply; 5+ messages in thread
From: Keir Fraser @ 2006-10-10 20:42 UTC (permalink / raw)
  To: Anthony Liguori, John Levon; +Cc: xen-devel

On 10/10/06 9:31 pm, "Anthony Liguori" <aliguori@us.ibm.com> wrote:

>> I don't know what causes the broken Linux initrd's that the commit
>> message refers to, but it seems they need to be fixed another way.
> 
> I suspect that we're actually broken here.  I think the way we determine
> the uncompressed size (by reading the last couple bytes) is not
> something that can, in generally, be safely relied upon.
> 
> We could work around this by decompressing the initrd and dynamically
> expanding the buffer we're decompressing to as needed.

Yes, we'll do this after 3.0.3-0. It's just a little bit too tricky to slip
in for the release. Unfortunately we have seen some (SLES9) initrd images
with this issue. Presumably they get built in a way that ends up padding
them to a multiple of a 'block' or something like that. It can be fixed by
laundering the initrd through gzip, of course.

 -- Keir

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: initrd change breaks binary compatibility
  2006-10-10 21:34     ` John Levon
@ 2006-10-10 21:26       ` Keir Fraser
  0 siblings, 0 replies; 5+ messages in thread
From: Keir Fraser @ 2006-10-10 21:26 UTC (permalink / raw)
  To: John Levon; +Cc: Anthony Liguori, xen-devel

On 10/10/06 10:34 pm, "John Levon" <levon@movementarian.org> wrote:

>>> I suspect that we're actually broken here.  I think the way we determine
>>> the uncompressed size (by reading the last couple bytes) is not
>>> something that can, in generally, be safely relied upon.
>>> 
>>> We could work around this by decompressing the initrd and dynamically
>>> expanding the buffer we're decompressing to as needed.
>> 
>> Yes, we'll do this after 3.0.3-0. It's just a little bit too tricky to slip
>> in for the release.
> 
> Does this mean the current change will be reverted?

Yes, that's now done.

 -- Keir

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: initrd change breaks binary compatibility
  2006-10-10 20:42   ` Keir Fraser
@ 2006-10-10 21:34     ` John Levon
  2006-10-10 21:26       ` Keir Fraser
  0 siblings, 1 reply; 5+ messages in thread
From: John Levon @ 2006-10-10 21:34 UTC (permalink / raw)
  To: Keir Fraser; +Cc: Anthony Liguori, xen-devel

On Tue, Oct 10, 2006 at 09:42:11PM +0100, Keir Fraser wrote:

> >> I don't know what causes the broken Linux initrd's that the commit
> >> message refers to, but it seems they need to be fixed another way.
> > 
> > I suspect that we're actually broken here.  I think the way we determine
> > the uncompressed size (by reading the last couple bytes) is not
> > something that can, in generally, be safely relied upon.
> > 
> > We could work around this by decompressing the initrd and dynamically
> > expanding the buffer we're decompressing to as needed.
> 
> Yes, we'll do this after 3.0.3-0. It's just a little bit too tricky to slip
> in for the release.

Does this mean the current change will be reverted?

regards,
john

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-10-10 21:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-10 19:28 initrd change breaks binary compatibility John Levon
2006-10-10 20:31 ` Anthony Liguori
2006-10-10 20:42   ` Keir Fraser
2006-10-10 21:34     ` John Levon
2006-10-10 21:26       ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.