[PATCH v5 11/23] alpha/PCI: Add security_locked_down() check to pci_mmap_resource()

Krzysztof Wilczyński kwilczynski at kernel.org
Wed Apr 22 05:50:42 AEST 2026


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


More information about the Linuxppc-dev mailing list