Re: [PATCH v5 11/23] alpha/PCI: Add security_locked_down() check to pci_mmap_resource()
Krzysztof Wilczyński <[email protected]>
| Newsgroups | gmane.linux.ports.ppc.embedded,gmane.linux.kernel.pci,gmane.linux.ports.alpha |
|---|---|
| Message-ID | <20260421195042.GD1684602@rocinante> |
Hello, > @@ -71,7 +72,11 @@ static int pci_mmap_resource(struct kobject *kobj, > struct resource *res = attr->private; > enum pci_mmap_state mmap_type; > struct pci_bus_region bar; > - int i; > + int i, ret; > + > + ret = security_locked_down(LOCKDOWN_PCI_ACCESS); > + if (ret) > + return ret; There is feedback from Sashiko about this: https://sashiko.dev/#/patchset/20260416180107.777065-1-kwilczynski%40kernel.org?part=11 Might be something to look into later. Out of scope for this series. Thank you! Krzysztof