]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Lock down BAR access when securelevel is enabled
authorMatthew Garrett <matthew.garrett@nebula.com>
Mon, 9 Sep 2013 22:49:37 +0000 (15:49 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 10 Aug 2015 16:24:05 +0000 (09:24 -0700)
commitf0eee24a0be0d54000cb86451fa8e60a12ce595f
treefe89a3b67b46e93694d5b20df6ba4fcb7ed407d5
parent056a345be53a86b7cfa1e6828feef47c9d818b72
PCI: Lock down BAR access when securelevel is enabled

Orabug: 21539498

Any hardware that can potentially generate DMA has to be locked down from
userspace in order to avoid it being possible for an attacker to modify
kernel code. This should be prevented if securelevel has been set. Default
to paranoid - in future we can potentially relax this for sufficiently
IOMMU-isolated devices.

Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/pci/pci-sysfs.c
drivers/pci/proc.c
drivers/pci/syscall.c