Re: [PATCH 10/20] alpha/PCI: Add security_locked_down() check to pci_mmap_resource()
Krzysztof Wilczyński <[email protected]>
| Newsgroups | org.kernel.vger.linux-alpha,org.kernel.vger.linux-pci,org.ozlabs.lists.linuxppc-dev |
|---|---|
| Message-ID | <20260410111003.GA1750802@rocinante> |
Hello,
> > Currently, Alpha's pci_mmap_resource() does not check
> > security_locked_down(LOCKDOWN_PCI_ACCESS) before allowing
> > userspace to mmap PCI BARs.
> >
> > The generic version has had this check since commit eb627e17727e
> > ("PCI: Lock down BAR access when the kernel is locked down") to
> > prevent DMA attacks when the kernel is locked down.
> >
> > Add the same check to Alpha's pci_mmap_resource().
> >
> > Signed-off-by: Krzysztof Wilczyński <[email protected]>
>
> Maybe add Fixes: eb627e17727e ...
Good call, will do!
Thank you!
Krzysztof