public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] PCI: Constify 'struct bin_attribute'
@ 2024-12-02 19:02 Thomas Weißschuh
  2024-12-02 19:02 ` [PATCH 1/4] PCI/sysfs: " Thomas Weißschuh
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Thomas Weißschuh @ 2024-12-02 19:02 UTC (permalink / raw)
  To: Bjorn Helgaas, Logan Gunthorpe, Rafael J. Wysocki, Len Brown
  Cc: linux-pci, linux-kernel, linux-acpi, Thomas Weißschuh

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@weissschuh.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@weissschuh.net>


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-12-10 18:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-02 19:02 [PATCH 0/4] PCI: Constify 'struct bin_attribute' Thomas Weißschuh
2024-12-02 19:02 ` [PATCH 1/4] PCI/sysfs: " Thomas Weißschuh
2024-12-02 19:02 ` [PATCH 2/4] PCI/VPD: " Thomas Weißschuh
2024-12-02 19:02 ` [PATCH 3/4] PCI/P2PDMA: " Thomas Weißschuh
2024-12-02 19:07   ` Logan Gunthorpe
2024-12-02 19:03 ` [PATCH 4/4] PCI/ACPI: " Thomas Weißschuh
2024-12-10 18:23   ` Rafael J. Wysocki
2024-12-03 21:32 ` [PATCH 0/4] PCI: " Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox