]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Lock down BAR access when the kernel is locked down
authorMatthew Garrett <mjg59@srcf.ucam.org>
Tue, 20 Aug 2019 00:17:47 +0000 (17:17 -0700)
committerJames Morris <jmorris@namei.org>
Tue, 20 Aug 2019 04:54:15 +0000 (21:54 -0700)
commitee80330b3d75e6ba3580565af1e859103aa149f8
tree9551483d5fd043ebee8c15e1e580d7587aa070ee
parent600377ad2516a9c31e1a9b2ab412407cf03c8ec9
PCI: Lock down BAR access when the kernel is locked down

Any hardware that can potentially generate DMA has to be locked down in
order to avoid it being possible for an attacker to modify kernel code,
allowing them to circumvent disabled module loading or module signing.
Default to paranoid - in future we can potentially relax this for
sufficiently IOMMU-isolated devices.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Matthew Garrett <mjg59@google.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
cc: linux-pci@vger.kernel.org
Signed-off-by: James Morris <jmorris@namei.org>
drivers/pci/pci-sysfs.c
drivers/pci/proc.c
drivers/pci/syscall.c
include/linux/security.h
security/lockdown/lockdown.c