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

Reply via email to