Re: [GIT PULL] Kernel lockdown for secure boot

From: Matthew Garrett
Date: Tue Apr 03 2018 - 20:05:10 EST

On Tue, Apr 3, 2018 at 5:02 PM Linus Torvalds

> On Tue, Apr 3, 2018 at 4:47 PM, Matthew Garrett <mjg59@xxxxxxxxxx> wrote:
> >> Another way of looking at this: if lockdown is a good idea to enable
> >> when you booted using secure boot, then why isn't it a good idea when
> >> you *didn't* boot using secure boot?
> >
> > Because it's then trivial to circumvent and the restrictions aren't
> > the benefit.

> Bullshit.

> If there those restrictions cause problems, they need to be fixed

How? When there are random DMA-capable PCI devices that are driven by
userland tools that are mmap()ing the BARs out of sysfs, how do we
simultaneously avoid breaking those devices while also preventing the
majority of users from being vulnerable to an attacker just DMAing over the