diff options
| author | Krzysztof Wilczyński <kwilczynski@kernel.org> | 2026-07-29 07:54:13 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2026-08-04 17:21:43 -0500 |
| commit | 3359e044d597dd5344f17613e4be6b6e12067f60 (patch) | |
| tree | e949f8deedeb0fe4d9f12001f0fd0778130a6591 /scripts/Makefile.thinlto | |
| parent | 4ff664a81d729b37f2eb65de80a670abfb61c9a0 (diff) | |
| download | linux-stable-3359e044d597dd5344f17613e4be6b6e12067f60.tar.gz linux-stable-3359e044d597dd5344f17613e4be6b6e12067f60.zip | |
PCI/proc: Warn on writes to kernel-exclusive config space regions
Currently, a driver can claim a region of a device's config space as
exclusive using pci_request_config_region_exclusive(), after which a write
to that region originating from user space is expected to emit a warning
and taint the kernel. The check is advisory only, as the write itself is
still allowed to proceed.
Since commit 278294798ac9 ("PCI: Allow drivers to request exclusive config
regions"), the sysfs config space attribute performs this check in
pci_write_config(), but the procfs interface was never updated. A write
performed through /proc/bus/pci/BB/DD.F therefore bypasses the detection
entirely, even though both interfaces offer the same level of access.
Add the same resource_is_exclusive() check to proc_bus_pci_write().
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260729075413.1215821-1-kwilczynski@kernel.org
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
