Re: 2.6.39.1 immediately reboots/resets on EFI system

From: Matthew Garrett
Date: Mon Jun 13 2011 - 14:00:25 EST


On Mon, Jun 13, 2011 at 07:52:42PM +0200, Maarten Lankhorst wrote:
> > + */
> > +
> > + if ((start <= virt_to_phys(_etext)-1 && end >= virt_to_phys(_text)) ||
> > + (start <= virt_to_phys(_edata)-1 && end >= virt_to_phys(_etext)) ||
> _etext -> _sdata perhaps?

_etext is used for the resource allocation earlier, which seems like
it's probably the relevant thing to be copying.

> > memblock_x86_reserve_range(start, start + size, "EFI Boot");
> > }
> > }
> Will test though. It might also be appropriate to put a WARN when that condition happens.

That'd end up triggering even in cases that are absolutely safe (ie, the
firmware doesn't have this bug). The amount of suck here is incredible.

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