Re: Firmware signing -- Re: [PATCH 00/27] security, efi: Add kernel lockdown

From: Linus Torvalds
Date: Tue Nov 14 2017 - 15:19:06 EST


On Tue, Nov 14, 2017 at 11:58 AM, Matthew Garrett <mjg59@xxxxxxxxxx> wrote:
>
> Our ability to determine that userland hasn't been tampered with
> depends on the kernel being trustworthy. If userland can upload
> arbitrary firmware to DMA-capable devices then we can no longer trust
> the kernel. So yes, firmware is special.

You're ignoring the whole "firmware is already signed by the hardware
manufacturer and we don't even have access to it" part.

You're also ignoring the fact that we can't trust firmware _anyway_,
as Alan pointed out.

Seriously. Some of the worst security issues have been with exactly
the fact that we can't trust the hardware to begin with, where
firmware/hardware combinations are not trusted to begin with.

This is all theoretical security masturbation. The _real_ attacks have
been elsewhere.

Linus