Re: [Fastboot] Re: Announce: dumpfs v0.01 - common RAS output API
From: Eric W. Biederman
Date: Wed Jul 28 2004 - 20:18:10 EST
Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> writes:
> On Iau, 2004-07-29 at 00:11, Eric W. Biederman wrote:
> > If we can ensure the addresses where the new kernel will run will never
> > have DMA pointed at them I actually don't think so. This is why last
> > year I recommended building a kernel that runs at a non-default address
> > and finding a way to simply preload it there.
>
> We DMA into arbitary allocated pages anywhere in the memory space, so
> you never know where is safe other than areas preallocated during the
> old kernel run.
Alan I just reread what you said and it appears we are in violent agreement
about the facts.
Different methods but...
> Since you can just clear the master bit on each PCI device it isnt a big
> deal to protect against. (except a couple of devices that forget
> to honour it)
Or those devices that hang the machine when you clear it.
Or the ioapics which loose the ability to generate interrupts
when you clear the master bit, and with the i82559 timer behind
them you can't get your new kernel to boot.
Plus there are all of the non-pci devices.
And there is the fact that the pci configuration access methods
are frequently BIOS calls.
So I do see just clearing the master bit on each PCI devices to
as dangerous as calling the shutdown methods.
Eric
-
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/