Re: [PATCH 03/11] x86: Lock down IO port access in secure bootenvironments

From: Matthew Garrett
Date: Tue Sep 04 2012 - 12:16:55 EST


On Tue, Sep 04, 2012 at 05:16:03PM +0100, Alan Cox wrote:
> On Tue, 4 Sep 2012 11:55:09 -0400
> Matthew Garrett <mjg@xxxxxxxxxx> wrote:
>
> > IO port access would permit users to gain access to PCI configuration
> > registers, which in turn (on a lot of hardware) give access to MMIO register
> > space. This would potentially permit root to trigger arbitrary DMA, so lock
> > it down by default.
>
> You've missed a load of others, all over the kernel, let alone getting
> into devices with other paths to firmware reprogramming of which there
> are many.
>
> You need to enforce signing on request_firmware for example, and sign
> every firmware.

Sure, but that's going to depend on the module signing code which hasn't
landed yet. But for the most part, devices that are designed for these
platforms will only accept signed firmware at the device level.

--
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/