[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241202-sysfs-const-bin_attr-pci-v1-0-c32360f495a7@weissschuh.net>
Date: Mon, 02 Dec 2024 20:02:56 +0100
From: Thomas Weißschuh <linux@...ssschuh.net>
To: Bjorn Helgaas <bhelgaas@...gle.com>,
Logan Gunthorpe <logang@...tatee.com>,
"Rafael J. Wysocki" <rafael@...nel.org>, Len Brown <lenb@...nel.org>
Cc: linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-acpi@...r.kernel.org,
Thomas Weißschuh <linux@...ssschuh.net>
Subject: [PATCH 0/4] PCI: Constify 'struct bin_attribute'
The sysfs core now allows instances of 'struct bin_attribute' to be
moved into read-only memory. Make use of that to protect them against
accidental or malicious modifications.
The usage of read_new/write_new/bin_attrs_new is a transition mechanism
and will be reverted after the transition is complete.
Signed-off-by: Thomas Weißschuh <linux@...ssschuh.net>
---
Thomas Weißschuh (4):
PCI/sysfs: Constify 'struct bin_attribute'
PCI/VPD: Constify 'struct bin_attribute'
PCI/P2PDMA: Constify 'struct bin_attribute'
PCI/ACPI: Constify 'struct bin_attribute'
drivers/pci/hotplug/acpiphp_ibm.c | 6 +++---
drivers/pci/p2pdma.c | 6 +++---
drivers/pci/pci-sysfs.c | 42 +++++++++++++++++++--------------------
drivers/pci/vpd.c | 14 ++++++-------
4 files changed, 34 insertions(+), 34 deletions(-)
---
base-commit: e70140ba0d2b1a30467d4af6bcfe761327b9ec95
change-id: 20241201-sysfs-const-bin_attr-pci-be2425e1a856
Best regards,
--
Thomas Weißschuh <linux@...ssschuh.net>
Powered by blists - more mailing lists